referrerpolicy=no-referrer-when-downgrade

Function polkadot_test_service::run_collator_node

source ·
pub fn run_collator_node(
    tokio_handle: Handle,
    key: Sr25519Keyring,
    storage_update_func: impl Fn(),
    boot_nodes: Vec<MultiaddrWithPeerId>,
    collator_pair: CollatorPair,
) -> PolkadotTestNode
Expand description

Run a test collator node that uses the test runtime.

The node will be using an in-memory socket, therefore you need to provide boot nodes if you want it to be connected to other nodes.

The storage_update_func function will be executed in an externalities provided environment and can be used to make adjustments to the runtime genesis storage.

§Note

The collator functionality still needs to be registered at the node! This can be done using PolkadotTestNode::register_collator.