Skip to main content

assert_node_live

Function assert_node_live 

Source
pub async fn assert_node_live<P: SequencerPersistence>(
    node: &SequencerContext<Memory, P>,
    epoch_height: u64,
    epochs_ahead: u64,
)
Expand description

Asserts the node is live: it must advance epochs_ahead epochs (at least 1) past its current decided epoch, and, when the chain runs the self-building new protocol, sequence a newly submitted transaction. Inclusion is not asserted on legacy versions because the test-only legacy builder stops producing non-empty blocks after roughly a hundred views, independent of any stake table activity.