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 Mokrynskyi
2023-09-12 17:47:43 +03:00
committed by GitHub
parent 09630fc38f
commit ee6eeb7466
2 changed files with 0 additions and 3 deletions
@@ -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 &&