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:
Nazar MokrynskyiandBastian Köcher authored and GitHub committed 2023-09-12 16:47:43 +02:00
1 parent 09630fc38f
commit ee6eeb7466
2 files changed
-3

No files matched your search

@@ -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 &&