Skip to main content

local_validator_config

Function local_validator_config 

Source
pub(crate) fn local_validator_config(
    staking_key: BLSPrivKey,
    state_key: StateSignKey,
    x25519_key: &SecretKey,
    advertise_addr: Option<NetAddr>,
    is_da: bool,
) -> ValidatorConfig<SeqTypes>
Expand description

This node’s own validator config, which status/keys reports.

The x25519 key is the cliquenet identity the node runs with, however it was configured (mnemonic, key file or explicit key), so it is always recorded. When no key is configured, KeySet generates a random one at startup, so the reported key is only stable across restarts if the operator configured it.

p2p_addr is the address peers dial, so it is only the configured advertise address. The bind address is not recorded: its default is 0.0.0.0, which nobody can dial, and on real networks the dialable address lives in the stake table rather than in node config.

What is published into the stake table is decided separately by orchestrator_registration.