sgns::node_config¶
#include <node_config.hpp>
Public Functions¶
| Name | |
|---|---|
| node_config() | |
| node_config(uint16_t , sgns::logging const & ) | |
| sgns::error_ | serialize_json(sgns::jsonconfig & ) const |
| sgns::error_ | deserialize_json(bool & , sgns::jsonconfig & ) |
| sgns::error_ | serialize_toml(sgns::tomlconfig & ) const |
| sgns::error_ | deserialize_toml(sgns::tomlconfig & ) |
| bool | upgrade_json(unsigned , sgns::jsonconfig & ) |
| sgns::account | random_representative() const |
| void | deserialize_address(std::string const & , std::vector< std::pair< std::string, uint16_t > > & ) const |
| unsigned | json_version() |
Public Attributes¶
Public Functions Documentation¶
function node_config¶
function node_config¶
function serialize_json¶
function deserialize_json¶
function serialize_toml¶
function deserialize_toml¶
function upgrade_json¶
function random_representative¶
function deserialize_address¶
void deserialize_address(
std::string const & ,
std::vector< std::pair< std::string, uint16_t > > &
) const
Entry is ignored if it cannot be parsed as a valid address:port
function json_version¶
Public Attributes Documentation¶
variable network_params¶
variable peering_port¶
variable logging¶
variable work_peers¶
variable secondary_work_peers¶
variable preconfigured_peers¶
variable preconfigured_representatives¶
variable bootstrap_fraction_numerator¶
variable receive_minimum¶
variable vote_minimum¶
variable vote_generator_delay¶
variable vote_generator_threshold¶
variable online_weight_minimum¶
variable online_weight_quorum¶
variable password_fanout¶
variable io_threads¶
variable network_threads¶
variable work_threads¶
variable signature_checker_threads¶
variable enable_voting¶
variable bootstrap_connections¶
variable bootstrap_connections_max¶
variable bootstrap_initiator_threads¶
unsigned bootstrap_initiator_threads { network_params.network.is_test_network () ? 1u : std::min<unsigned> (2, std::max<unsigned> (1, std::thread::hardware_concurrency ())) };
variable confirmation_history_size¶
variable callback_address¶
variable callback_port¶
variable callback_target¶
variable deprecated_lmdb_max_dbs¶
variable allow_local_peers¶
variable external_address¶
variable external_port¶
variable block_processor_batch_max_time¶
variable unchecked_cutoff_time¶
variable tcp_io_timeout¶
std::chrono::seconds tcp_io_timeout { (network_params.network.is_test_network () && !is_sanitizer_build) ? std::chrono::seconds (5) : std::chrono::seconds (15) };
Timeout for initiated async operations
variable pow_sleep_interval¶
variable active_elections_size¶
variable tcp_incoming_connections_max¶
Default maximum incoming TCP connections, including realtime network & bootstrap
variable use_memory_pools¶
variable bandwidth_limit¶
Default outbound traffic shaping is 5MB/s
variable bandwidth_limit_burst_ratio¶
By default, allow bursts of 15MB/s (not sustainable)
variable conf_height_processor_batch_min_time¶
variable backup_before_upgrade¶
variable work_watcher_period¶
variable max_work_generate_multiplier¶
variable max_queued_requests¶
variable keepalive_period¶
variable keepalive_cutoff¶
variable wallet_backup_interval¶
Updated on 2026-03-04 at 13:10:43 -0800