mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 19:35:43 +00:00
Warp sync part I (#9227)
* Started warp sync * BABE & GRANDPA recovery * Warp sync protocol * Sync warp proofs first * Added basic documentation * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Style changes * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * fmt * Apply suggestions from code review Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> * Fixed chage trie pruning wrt missing blocks * Restore parent finalization * fmt * fmt * Revert pwasm-utils bump * Change error type & check API version * Apply suggestions from code review Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> * Build fix * Fixed target block check * Formatting Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
+1
@@ -302,6 +302,7 @@ impl<Block: BlockT, T: CacheItemT, S: Storage<Block, T>> ListCache<Block, T, S>
|
||||
let prev_operation = operations.operations.last();
|
||||
debug_assert!(
|
||||
entry_type != EntryType::Final ||
|
||||
self.unfinalized.is_empty() ||
|
||||
self.best_finalized_block.hash == parent.hash ||
|
||||
match prev_operation {
|
||||
Some(&CommitOperation::BlockFinalized(ref best_finalized_block, _, _)) =>
|
||||
|
||||
Reference in New Issue
Block a user