CatapultServer  v0.5.0.1 (Elephant)
BlockChainConfiguration.cpp File Reference
Include dependency graph for BlockChainConfiguration.cpp:

Namespaces

 catapult
 
 catapult::model
 

Macros

#define LOAD_NETWORK_PROPERTY(NAME)   utils::LoadIniProperty(bag, "network", #NAME, config.Network.NAME)
 
#define LOAD_CHAIN_PROPERTY(NAME)   utils::LoadIniProperty(bag, "chain", #NAME, config.NAME)
 

Functions

UnresolvedMosaicId catapult::model::GetUnresolvedCurrencyMosaicId (const BlockChainConfiguration &config)
 Gets unresolved currency mosaic id from config. More...
 
utils::TimeSpan catapult::model::CalculateFullRollbackDuration (const BlockChainConfiguration &config)
 Calculates the duration of a full rollback for the block chain described by config. More...
 
utils::TimeSpan catapult::model::CalculateRollbackVariabilityBufferDuration (const BlockChainConfiguration &config)
 Calculates the duration of the rollback variability buffer for the block chain described by config. More...
 
utils::TimeSpan catapult::model::CalculateTransactionCacheDuration (const BlockChainConfiguration &config)
 Calculates the duration of time that expired transactions should be cached for the block chain described by config. More...
 
uint64_t catapult::model::CalculateDifficultyHistorySize (const BlockChainConfiguration &config)
 Calculates the number of historical difficulties to cache in memory for the block chain described by config. More...
 

Macro Definition Documentation

◆ LOAD_CHAIN_PROPERTY

#define LOAD_CHAIN_PROPERTY (   NAME)    utils::LoadIniProperty(bag, "chain", #NAME, config.NAME)

◆ LOAD_NETWORK_PROPERTY

#define LOAD_NETWORK_PROPERTY (   NAME)    utils::LoadIniProperty(bag, "network", #NAME, config.Network.NAME)