op_reth::node::utils

Function advance_chain

Source
pub async fn advance_chain(
    length: usize,
    node: &mut NodeTestContext<NodeAdapter<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>, <<OpNode as Node<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::ComponentsBuilder as NodeComponentsBuilder<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::Components>, <OpNode as Node<FullNodeTypesAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<TempDatabase<DatabaseEnv>>>>>>>::AddOns>,
    wallet: Arc<Mutex<Wallet>>,
) -> Result<Vec<(OpBuiltPayload, OpPayloadBuilderAttributes)>, Report>
Available on crate features optimism and test-utils only.
Expand description

Advance the chain with sequential payloads returning them in the end.