TARAXA
taraxa::FullNodeConfig Struct Reference

#include <config.hpp>

Collaboration diagram for taraxa::FullNodeConfig:

Public Member Functions

 FullNodeConfig ()=default
 
 FullNodeConfig (const Json::Value &file_name_str_or_json_object, const Json::Value &wallet, const Json::Value &genesis=Json::Value::null, const std::string &config_file_path="")
 
void overwriteConfigFromJson (const Json::Value &config_json)
 
std::vector< logger::ConfigloadLoggingConfigs (const Json::Value &logging)
 
void scheduleLoggingConfigUpdate ()
 
void InitLogging (const addr_t &node_address)
 
auto net_file_path () const
 
void validate () const
 Validates config values, throws configexception if validation fails. More...
 

Public Attributes

std::string json_file_name
 
std::filesystem::file_time_type last_json_update_time
 
dev::Secret node_secret
 
vrf_wrapper::vrf_sk_t vrf_secret
 
fs::path data_path
 
fs::path db_path
 
fs::path log_path
 
NetworkConfig network
 
DBConfig db_config
 
GenesisConfig genesis
 
state_api::Opts opts_final_chain
 
std::vector< logger::Configlog_configs
 
bool is_light_node = false
 
uint64_t light_node_history = 0
 
uint32_t dag_expiry_limit = kDagExpiryLevelLimit
 
uint32_t max_levels_per_period = kMaxLevelsPerPeriod
 
bool enable_test_rpc = false
 
bool enable_debug = false
 
uint32_t final_chain_cache_in_blocks = 5
 
uint32_t transactions_pool_size = kDefaultTransactionPoolSize
 
bool report_malicious_behaviour = false
 

Static Public Attributes

static constexpr uint64_t kDefaultLightNodeHistoryDays = 7
 

Constructor & Destructor Documentation

◆ FullNodeConfig() [1/2]

taraxa::FullNodeConfig::FullNodeConfig ( )
default

◆ FullNodeConfig() [2/2]

taraxa::FullNodeConfig::FullNodeConfig ( const Json::Value &  file_name_str_or_json_object,
const Json::Value &  wallet,
const Json::Value &  genesis = Json::Value::null,
const std::string &  config_file_path = "" 
)
explicit

Member Function Documentation

◆ InitLogging()

void taraxa::FullNodeConfig::InitLogging ( const addr_t node_address)

◆ loadLoggingConfigs()

std::vector< logger::Config > taraxa::FullNodeConfig::loadLoggingConfigs ( const Json::Value &  logging)

◆ net_file_path()

auto taraxa::FullNodeConfig::net_file_path ( ) const
inline

◆ overwriteConfigFromJson()

void taraxa::FullNodeConfig::overwriteConfigFromJson ( const Json::Value &  config_json)

◆ scheduleLoggingConfigUpdate()

void taraxa::FullNodeConfig::scheduleLoggingConfigUpdate ( )

◆ validate()

void taraxa::FullNodeConfig::validate ( ) const

Validates config values, throws configexception if validation fails.

Returns

Member Data Documentation

◆ dag_expiry_limit

uint32_t taraxa::FullNodeConfig::dag_expiry_limit = kDagExpiryLevelLimit

◆ data_path

fs::path taraxa::FullNodeConfig::data_path

◆ db_config

DBConfig taraxa::FullNodeConfig::db_config

◆ db_path

fs::path taraxa::FullNodeConfig::db_path

◆ enable_debug

bool taraxa::FullNodeConfig::enable_debug = false

◆ enable_test_rpc

bool taraxa::FullNodeConfig::enable_test_rpc = false

◆ final_chain_cache_in_blocks

uint32_t taraxa::FullNodeConfig::final_chain_cache_in_blocks = 5

◆ genesis

GenesisConfig taraxa::FullNodeConfig::genesis

◆ is_light_node

bool taraxa::FullNodeConfig::is_light_node = false

◆ json_file_name

std::string taraxa::FullNodeConfig::json_file_name

◆ kDefaultLightNodeHistoryDays

constexpr uint64_t taraxa::FullNodeConfig::kDefaultLightNodeHistoryDays = 7
staticconstexpr

◆ last_json_update_time

std::filesystem::file_time_type taraxa::FullNodeConfig::last_json_update_time

◆ light_node_history

uint64_t taraxa::FullNodeConfig::light_node_history = 0

◆ log_configs

std::vector<logger::Config> taraxa::FullNodeConfig::log_configs

◆ log_path

fs::path taraxa::FullNodeConfig::log_path

◆ max_levels_per_period

uint32_t taraxa::FullNodeConfig::max_levels_per_period = kMaxLevelsPerPeriod

◆ network

NetworkConfig taraxa::FullNodeConfig::network

◆ node_secret

dev::Secret taraxa::FullNodeConfig::node_secret

◆ opts_final_chain

state_api::Opts taraxa::FullNodeConfig::opts_final_chain

◆ report_malicious_behaviour

bool taraxa::FullNodeConfig::report_malicious_behaviour = false

◆ transactions_pool_size

uint32_t taraxa::FullNodeConfig::transactions_pool_size = kDefaultTransactionPoolSize

◆ vrf_secret

vrf_wrapper::vrf_sk_t taraxa::FullNodeConfig::vrf_secret

The documentation for this struct was generated from the following files: