pub async fn test_exex_context_with_chain_spec(
chain_spec: Arc<ChainSpec>,
) -> Result<(ExExContext<Adapter>, TestExExHandle)>
Expand description
Creates a new ExExContext
.
This is a convenience function that does the following:
- Sets up an
ExExContext
with all dependencies. - Inserts the genesis block of the provided (chain spec)[
ChainSpec
] into the storage. - Creates a channel for receiving events from the Execution Extension.
- Creates a channel for sending notifications to the Execution Extension.
§Warning
The genesis block is not sent to the notifications channel. The caller is responsible for doing this.