Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Aura: Do not verify on state import #13058

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions client/consensus/aura/src/import_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ where
&mut self,
mut block: BlockImportParams<B, ()>,
) -> Result<(BlockImportParams<B, ()>, Option<Vec<(CacheKeyId, Vec<u8>)>>), String> {
if block.with_state() {
// When importing whole state we don't verify the seal as the state is not available.
return Ok((block, Default::default()))
}

let hash = block.header.hash();
let parent_hash = *block.header.parent_hash();
let authorities = authorities(
Expand Down