pub struct NodeConfig {
pub genesis: GenesisConfig,
pub listen_address: SocketAddr,
pub external_address: SocketAddr,
pub network: NetworkConfiguration,
pub consensus_public_key: PublicKey,
pub consensus_secret_key: SecretKey,
pub service_public_key: PublicKey,
pub service_secret_key: SecretKey,
pub api: NodeApiConfig,
pub mempool: MemoryPoolConfig,
pub services_configs: BTreeMap<String, Value>,
pub database: DbOptions,
pub connect_list: ConnectListConfig,
}
Configuration for the Node
.
Initial config that will be written in the first block.
Network listening address.
Remote Network address used by this node.
Memory pool configuration.
Additional config, usable for services.
Optional database configuration.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more
Serializes content of a transaction with the given serializer.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static