sgns::GeniusNode::NetworkSettings¶
Network knobs resolved from network_config.json, passed between the InitNetwork helpers. Members the node owns outright (autodht_, bootstrap_peers_, reconnect_config_) are written directly instead.
Public Attributes¶
| Name | |
|---|---|
| std::string | bind_address PubSub bind address ("pubsub_bind_address"). |
| bool | upnp_enabled Whether UPnP/IGD mapping is attempted. |
| int | high_water Connection-manager high water mark. |
| int | low_water Connection-manager low water mark. |
| uint16_t | config_port "pubsub_port" override; zero when unset. |
| uint16_t | port_seed "port_seed", or the constructor param when the key is absent. |
| std::string | network_key |
| std::string | private_network_id |
| std::vector< std::string > | network_bootstrap_peers |
| bool | valid |
Public Attributes Documentation¶
variable bind_address¶
PubSub bind address ("pubsub_bind_address").
variable upnp_enabled¶
Whether UPnP/IGD mapping is attempted.
variable high_water¶
Connection-manager high water mark.
variable low_water¶
Connection-manager low water mark.
variable config_port¶
"pubsub_port" override; zero when unset.
variable port_seed¶
"port_seed", or the constructor param when the key is absent.
variable network_key¶
"network_key" pnet PSK; empty = public network. "private_network_id" public Ed25519 identity from the license NFT (D-01/D-02); 0x-prefixed hex of exactly 32 bytes; empty = public network.
variable private_network_id¶
"network_bootstrap_peers" offline-provisioned initial NetworkRegistry membership (libp2p PeerId base58 strings); consumed when private_network_id is set.
variable network_bootstrap_peers¶
variable valid¶
False when a fatal config divergence (malformed private_network_id or a half-provisioned private_network_id/network_key pair) must abort node start instead of silently running a misidentified node.
Updated on 2026-10-23 at 16:46:17 +0000