Skip to main content

publish_sparse_trie

Function publish_sparse_trie 

Source
pub fn publish_sparse_trie<N: NodePrimitives>(
    pending_trie_rx: &Receiver<PendingSparseTrie>,
    overlay_manager: &OverlayManager<N>,
    block_hash: B256,
    state_root: B256,
)
Expand description

Publishes a matching completed root for reuse after its block has been accepted.

Does nothing if the producer has not handed off a trie or its root differs.