Module actions

Module actions 

Source
Expand description

Actions that can be performed in tests.

Re-exports§

pub use custom_fcu::BlockReference;
pub use custom_fcu::FinalizeBlock;
pub use custom_fcu::SendForkchoiceUpdate;
pub use engine_api::ExpectedPayloadStatus;
pub use engine_api::SendNewPayload;
pub use engine_api::SendNewPayloads;
pub use fork::CreateFork;
pub use fork::ForkBase;
pub use fork::SetForkBase;
pub use fork::SetForkBaseFromBlockInfo;
pub use fork::ValidateFork;
pub use node_ops::AssertChainTip;
pub use node_ops::CaptureBlockOnNode;
pub use node_ops::CompareNodeChainTips;
pub use node_ops::SelectActiveNode;
pub use node_ops::ValidateBlockTag;
pub use node_ops::WaitForSync;
pub use produce_blocks::AssertMineBlock;
pub use produce_blocks::BroadcastLatestForkchoice;
pub use produce_blocks::BroadcastNextNewPayload;
pub use produce_blocks::CheckPayloadAccepted;
pub use produce_blocks::ExpectFcuStatus;
pub use produce_blocks::GenerateNextPayload;
pub use produce_blocks::GeneratePayloadAttributes;
pub use produce_blocks::PickNextBlockProducer;
pub use produce_blocks::ProduceBlocks;
pub use produce_blocks::ProduceBlocksLocally;
pub use produce_blocks::ProduceInvalidBlocks;
pub use produce_blocks::TestFcuToTag;
pub use produce_blocks::UpdateBlockInfo;
pub use produce_blocks::UpdateBlockInfoToLatestPayload;
pub use produce_blocks::ValidateCanonicalTag;
pub use reorg::ReorgTarget;
pub use reorg::ReorgTo;
pub use reorg::SetReorgTarget;

Modules§

custom_fcu
Custom forkchoice update actions for testing specific FCU scenarios.
engine_api
Engine API specific actions for testing.
fork
Fork creation actions for the e2e testing framework.
node_ops
Node-specific operations for multi-node testing.
produce_blocks
Block production actions for the e2e testing framework.
reorg
Reorg actions for the e2e testing framework.

Structs§

ActionBox
Simplified action container for storage in tests
CaptureBlock
Action that captures the current block and tags it with a name for later reference
MakeCanonical
Action that makes the current latest block canonical by broadcasting a forkchoice update
Sequence
Run a sequence of actions in series.

Traits§

Action
An action that can be performed on an instance.

Functions§

expect_fcu_invalid
Expects that the ForkchoiceUpdated response status is INVALID.
expect_fcu_not_syncing_or_accepted
Expects that the ForkchoiceUpdated response status is not SYNCING and not ACCEPTED.
expect_fcu_syncing_or_accepted
Expects that the ForkchoiceUpdated response status is either SYNCING or ACCEPTED.
expect_fcu_valid
Expects that the ForkchoiceUpdated response status is VALID.
validate_fcu_response
Validates a forkchoice update response and returns an error if invalid