Skip to main content

Module config

Module config 

Source
Expand description

cuprated config

Structs§

Config
The config for all of Cuprate.
DryRunResult
Result of a single check from Config::dry_run_check.
P2PConfig
P2P config.
RpcConfig
RPC config.
StorageConfig
The storage config.
TxpoolConfig
The tx-pool config.

Functions§

find_config
Finds and reads a config file from the default locations.
p2p_port
Gets the port to listen on for p2p connections.
resolve_max_memory
Resolves target_max_memory from system RAM if unset.
restricted_rpc_port
Gets the port to listen on for restricted RPC connections.
unrestricted_rpc_port
Gets the port to listen on for unrestricted RPC connections.