MCPcopy Create free account
hub / github.com/SeismicSystems/summit / assert_state_root_consensus

Function assert_state_root_consensus

node/src/test_harness/common.rs:289–293  ·  view source on GitHub ↗

Assert that all validators share the same state trie root.

(
    queries: &HashMap<usize, FinalizerMailbox<MultisigScheme, Block>>,
)

Source from the content-addressed store, hash-verified

287
288 context.auditor().state()
289 })
290}
291
292/// Wait until every active (non-skipped) validator has captured state at the same
293/// `el_block_number`, then assert their state roots agree.
294///
295/// Validators finalize asynchronously and can be a block apart when sampled, so
296/// comparing their "current" state roots directly is a height race (it compares

Calls 1