From 030007231054520d333e4409b87d2ad82cccefa8 Mon Sep 17 00:00:00 2001 From: Alexandru Vasile Date: Tue, 9 Jan 2024 18:28:04 +0200 Subject: [PATCH] backend: Disable panic for order testing Signed-off-by: Alexandru Vasile --- subxt/src/backend/unstable/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subxt/src/backend/unstable/mod.rs b/subxt/src/backend/unstable/mod.rs index c9b2252ade..e75ab50a2e 100644 --- a/subxt/src/backend/unstable/mod.rs +++ b/subxt/src/backend/unstable/mod.rs @@ -591,9 +591,9 @@ impl Backend for UnstableBackend { } SeenBlock::Finalized(block_refs) => { for block_ref in block_refs { - if !seen_blocks.contains_key(&block_ref.hash()) { - panic!("Finalized before new Finalized {:#?}\n initBlock {:#?} \nMEMLOG{:#?}\n SeenBlocks{:#?} \n Other{:#?}", block_ref.hash(), unsafe { &FIN_BLOCK }, mem_log, seen_blocks, seen_other); - } + // if !seen_blocks.contains_key(&block_ref.hash()) { + // panic!("Finalized before new Finalized {:#?}\n initBlock {:#?} \nMEMLOG{:#?}\n SeenBlocks{:#?} \n Other{:#?}", block_ref.hash(), unsafe { &FIN_BLOCK }, mem_log, seen_blocks, seen_other); + // } let entry = seen_blocks.entry(block_ref.hash()).or_insert(( SeenBlockMarker::Finalized,