Skip to content

Commit

Permalink
fix(core): add missing queue diff hash check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexagon committed Nov 7, 2024
1 parent c0e1d04 commit f664b2c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/block_strider/provider/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,12 @@ impl ProofChecker {

let block_storage = self.storage.block_storage();

// TODO: Check `queue_diff` using data from `virt_block` or `virt_block_info`
anyhow::ensure!(
&virt_block.out_msg_queue_updates.diff_hash == queue_diff.diff_hash(),
"queue diff mismatch (expected: {}, got: {})",
virt_block.out_msg_queue_updates.diff_hash,
queue_diff.diff_hash(),
);

if is_masterchain {
let block_handles = self.storage.block_handle_storage();
Expand Down

0 comments on commit f664b2c

Please sign in to comment.