CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
22 #include <boost/filesystem/path.hpp>
25 namespace catapult {
namespace utils {
class ConfigurationBag; } }
27 namespace catapult {
namespace networkheight {
Network height configuration settings.
Definition: NetworkHeightConfiguration.h:30
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
uint8_t MaxNodes
Number of nodes that this node should communicate with during network height detection.
Definition: NetworkHeightConfiguration.h:33
static NetworkHeightConfiguration Uninitialized()
Creates an uninitialized network height configuration.
Definition: NetworkHeightConfiguration.cpp:30
A simple bag of properties.
Definition: ConfigurationBag.h:57
#define LOAD_NETWORKHEIGHT_PROPERTY(NAME)
static NetworkHeightConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a network height configuration from bag.
Definition: NetworkHeightConfiguration.cpp:34
Definition: AddressExtractionExtension.cpp:28
NetworkHeightConfiguration()=default
static NetworkHeightConfiguration LoadFromPath(const boost::filesystem::path &resourcesPath)
Loads a network height configuration from resourcesPath.
Definition: NetworkHeightConfiguration.cpp:49