Function create_node_with_keys

Source
pub fn create_node_with_keys<K: KeyType>(
    network: &str,
    instance: &str,
    allowed_keys: AllowedKeys<K>,
    key_pair: Option<K::Secret>,
    using_evm_address_for_handshake_verification: bool,
) -> TestNode<K>
Available on crate feature testing only.
Expand description

Helper to create a whitelisted test node

§Arguments

  • network - The network name
  • instance - The instance ID
  • allowed_keys - The allowed keys for the node
  • key_pair - The key pair for the node
  • using_evm_address_for_handshake_verification - Whether to use the EVM address for handshake verification

§Returns

Returns a new test node