Skip to content

Commit

Permalink
Hotfix: don't panic when nested extrinsic events cannot be delimited,…
Browse files Browse the repository at this point in the history
… e.g. Polkadot block 8397991. Return error and skip the processing of the extrinsic.
  • Loading branch information
kukabi committed May 14, 2022
1 parent 0996980 commit 86a81ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions subvt-block-processor/src/extrinsic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ async fn consume_call_events(
events.drain(0..(delimiter_index + 1));
Ok(is_successful)
} else {
panic!(
"Call delimiter event not found (ExtrinsicSuccess, ExtrinsicFailed or ItemCompleted)."
);
Err(anyhow::anyhow!("Call delimiter event not found (ItemCompleted, BatchInterrupted, ProxyExecuted, MultisigExecuted, ExtrinsicSuccess, ExtrinsicFailed)."))
}
}

Expand Down

0 comments on commit 86a81ab

Please sign in to comment.