referrerpolicy=no-referrer-when-downgrade

Function polkadot_test_service::node_config

source ·
pub fn node_config(
    storage_update_func: impl Fn(),
    tokio_handle: Handle,
    key: Sr25519Keyring,
    boot_nodes: Vec<MultiaddrWithPeerId>,
    is_validator: bool,
) -> Configuration
Expand description

Create a Polkadot Configuration.

By default an in-memory socket will be used, therefore you need to provide boot nodes if you want the future node 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.