mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +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:
@@ -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