TARAXA
Loading...
Searching...
No Matches
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 std::vector< Json::Value > &wallets_jsons, const Json::Value &genesis=Json::Value::null, const std::string &config_file_path="")
 
void overwriteConfigFromJson (const Json::Value &config_json)
 
const WalletConfiggetFirstWallet () const
 
std::string toString () const
 
auto net_file_path () const
 
void validate () const
 Validates config values, throws configexception if validation fails.
 

Public Attributes

std::string json_file_name
 
std::vector< WalletConfigwallets
 
fs::path data_path
 
fs::path db_path
 
NetworkConfig network
 
DBConfig db_config
 
GenesisConfig genesis
 
state_api::Opts opts_final_chain
 
LoggingConfig logging
 
bool is_light_node = false
 
uint64_t light_node_history = 0
 
uint32_t dag_expiry_limit = kDagExpiryLevelLimit
 
uint32_t max_levels_per_period = kMaxLevelsPerPeriod
 
uint32_t final_chain_cache_in_blocks = 5
 
uint64_t propose_dag_gas_limit = 0x1E0A6E0
 
uint64_t propose_pbft_gas_limit = 0x12C684C0
 
uint32_t transactions_pool_size = kDefaultTransactionPoolSize
 
bool blocks_gas_pricer = false
 
bool report_malicious_behaviour = false
 

Static Public Attributes

static constexpr uint64_t kDefaultLightNodeHistoryDays = 1
 

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 std::vector< Json::Value > &  wallets_jsons,
const Json::Value &  genesis = Json::Value::null,
const std::string &  config_file_path = "" 
)
explicit

Member Function Documentation

◆ getFirstWallet()

const WalletConfig & taraxa::FullNodeConfig::getFirstWallet ( ) const
Returns
first (main) wallet from the list of wallets

◆ net_file_path()

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

◆ overwriteConfigFromJson()

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

◆ toString()

std::string taraxa::FullNodeConfig::toString ( ) const

◆ validate()

void taraxa::FullNodeConfig::validate ( ) const

Validates config values, throws configexception if validation fails.

Returns

Member Data Documentation

◆ blocks_gas_pricer

bool taraxa::FullNodeConfig::blocks_gas_pricer = false

◆ 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

◆ 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 = 1
staticconstexpr

◆ light_node_history

uint64_t taraxa::FullNodeConfig::light_node_history = 0

◆ logging

LoggingConfig taraxa::FullNodeConfig::logging

◆ max_levels_per_period

uint32_t taraxa::FullNodeConfig::max_levels_per_period = kMaxLevelsPerPeriod

◆ network

NetworkConfig taraxa::FullNodeConfig::network

◆ opts_final_chain

state_api::Opts taraxa::FullNodeConfig::opts_final_chain

◆ propose_dag_gas_limit

uint64_t taraxa::FullNodeConfig::propose_dag_gas_limit = 0x1E0A6E0

◆ propose_pbft_gas_limit

uint64_t taraxa::FullNodeConfig::propose_pbft_gas_limit = 0x12C684C0

◆ report_malicious_behaviour

bool taraxa::FullNodeConfig::report_malicious_behaviour = false

◆ transactions_pool_size

uint32_t taraxa::FullNodeConfig::transactions_pool_size = kDefaultTransactionPoolSize

◆ wallets

std::vector<WalletConfig> taraxa::FullNodeConfig::wallets

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