mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
Allow justifications on non-finalized blocks (#1211)
One assertion was unnecessary because of the check right above it, second assertion resolves https://github.com/paritytech/polkadot-sdk/issues/1159 --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -552,7 +552,6 @@ where
|
||||
.into(),
|
||||
))
|
||||
}
|
||||
assert!(block.justifications.is_some());
|
||||
let mut authority_set = self.authority_set.inner_locked();
|
||||
authority_set.authority_set_changes.insert(number);
|
||||
crate::aux_schema::update_authority_set::<Block, _, _>(
|
||||
|
||||
@@ -603,8 +603,6 @@ where
|
||||
.block_gap
|
||||
.map_or(false, |(start, _)| *import_headers.post().number() == start);
|
||||
|
||||
assert!(justifications.is_some() && finalized || justifications.is_none() || gap_block);
|
||||
|
||||
// the block is lower than our last finalized block so it must revert
|
||||
// finality, refusing import.
|
||||
if status == blockchain::BlockStatus::Unknown &&
|
||||
|
||||
Reference in New Issue
Block a user