CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace utils {
class ConfigurationBag; } }
30 namespace catapult {
namespace config {
uint32_t ShortLivedCacheMaxSize
Maximum size of a short lived cache.
Definition: NodeConfiguration.h:76
uint32_t TransactionElementTraceInterval
Multiple of elements at which a transaction element should be traced through queue and completion.
Definition: NodeConfiguration.h:116
IncomingConnectionsSubConfiguration IncomingConnections
Incoming connections configuration.
Definition: NodeConfiguration.h:183
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
static NodeConfiguration LoadFromBag(const utils::ConfigurationBag &bag)
Loads a node configuration from bag.
Definition: NodeConfiguration.cpp:33
bool ShouldUseSingleThreadPool
true if a single thread pool should be used, false if multiple thread pools should be used.
Definition: NodeConfiguration.h:45
uint32_t MaxTrackedNodes
Maximum number of nodes to track in memory.
Definition: NodeConfiguration.h:134
utils::TimeSpan SyncTimeout
Timeout for syncing with a peer.
Definition: NodeConfiguration.h:94
bool ShouldAbortWhenDispatcherIsFull
true if the process should terminate when any dispatcher is full.
Definition: NodeConfiguration.h:119
unsigned short ApiPort
Server api port.
Definition: NodeConfiguration.h:39
bool ShouldEnableAutoSyncCleanup
Definition: NodeConfiguration.h:52
BlockFeeMultiplier MinFeeMultiplier
Minimum fee multiplier of transactions to propagate and include in blocks.
Definition: NodeConfiguration.h:79
static NodeConfiguration Uninitialized()
Creates an uninitialized node configuration.
Definition: NodeConfiguration.cpp:29
Local node configuration.
Definition: NodeConfiguration.h:138
Amount TransactionSpamThrottlingMaxBoostFee
Maximum fee that will boost a transaction through the spam throttle when spam throttling is enabled.
Definition: NodeConfiguration.h:58
utils::FileSize MaxPacketDataSize
Maximum packet data size.
Definition: NodeConfiguration.h:104
bool ShouldUseCacheDatabaseStorage
true if cache data should be saved in a database.
Definition: NodeConfiguration.h:48
utils::FileSize UnconfirmedTransactionsCacheMaxResponseSize
Maximum size of an unconfirmed transactions response.
Definition: NodeConfiguration.h:85
uint16_t BacklogSize
Maximum size of the pending connections queue.
Definition: NodeConfiguration.h:175
LocalSubConfiguration Local
Local node configuration.
Definition: NodeConfiguration.h:154
utils::FileSize MaxCacheDatabaseWriteBatchSize
Maximum cache database write batch size.
Definition: NodeConfiguration.h:131
Node configuration settings.
Definition: NodeConfiguration.h:33
ConnectionsSubConfiguration OutgoingConnections
Outgoing connections configuration.
Definition: NodeConfiguration.h:180
uint16_t MaxConnections
Maximum number of active connections.
Definition: NodeConfiguration.h:160
Represents a time duration.
Definition: TimeSpan.h:30
ConnectionSecurityMode
Possible connection security modes.
Definition: ConnectionSecurityMode.h:36
A simple bag of properties.
Definition: ConfigurationBag.h:57
utils::TimeSpan ShortLivedCacheTransactionDuration
Duration of a transaction in the short lived cache.
Definition: NodeConfiguration.h:67
std::string FriendlyName
Node friendly name (leave empty to use address).
Definition: NodeConfiguration.h:143
uint32_t Version
Node version.
Definition: NodeConfiguration.h:146
uint16_t MaxConnectionAge
Maximum connection age.
Definition: NodeConfiguration.h:163
uint32_t SocketWorkingBufferSensitivity
Definition: NodeConfiguration.h:101
uint32_t TransactionDisruptorSize
Size of the transaction disruptor circular buffer.
Definition: NodeConfiguration.h:113
model::TransactionSelectionStrategy TransactionSelectionStrategy
Transaction selection strategy used for syncing and harvesting unconfirmed transactions.
Definition: NodeConfiguration.h:82
#define LOAD_NODE_PROPERTY(NAME)
uint16_t NumConsecutiveFailuresBeforeBanning
Number of consecutive connection failures before a connection is banned.
Definition: NodeConfiguration.h:169
uint32_t BlockDisruptorSize
Size of the block disruptor circular buffer.
Definition: NodeConfiguration.h:107
bool ShouldEnableTransactionSpamThrottling
true if transaction spam throttling should be enabled.
Definition: NodeConfiguration.h:55
uint16_t MaxConnectionBanAge
Maximum connection ban age.
Definition: NodeConfiguration.h:166
utils::TimeSpan ConnectTimeout
Timeout for connecting to a peer.
Definition: NodeConfiguration.h:91
NodeRoles
A node's role.
Definition: NodeRoles.h:28
uint32_t MaxBlocksPerSyncAttempt
Maximum number of blocks per sync attempt.
Definition: NodeConfiguration.h:61
Incoming connections configuration.
Definition: NodeConfiguration.h:173
Represents a file size.
Definition: FileSize.h:29
bool ShouldAuditDispatcherInputs
true if all dispatcher inputs should be audited.
Definition: NodeConfiguration.h:122
ionet::ConnectionSecurityMode IncomingSecurityModes
Accepted security modes of incoming connections initiated by other nodes.
Definition: NodeConfiguration.h:128
Connections configuration.
Definition: NodeConfiguration.h:158
TransactionSelectionStrategy
Strategy for selecting transactions.
Definition: TransactionSelectionStrategy.h:27
bool ShouldAllowAddressReuse
true if the server should reuse ports already in use.
Definition: NodeConfiguration.h:42
utils::TimeSpan ShortLivedCacheBlockDuration
Duration of a block in the short lived cache.
Definition: NodeConfiguration.h:70
ionet::NodeRoles Roles
Node roles.
Definition: NodeConfiguration.h:149
uint32_t UnconfirmedTransactionsCacheMaxSize
Maximum size of the unconfirmed transactions cache.
Definition: NodeConfiguration.h:88
unsigned short Port
Server port.
Definition: NodeConfiguration.h:36
ionet::ConnectionSecurityMode OutgoingSecurityMode
Security mode of outgoing connections initiated by this node.
Definition: NodeConfiguration.h:125
std::string Host
Node host (leave empty to auto-detect IP).
Definition: NodeConfiguration.h:140
utils::TimeSpan ShortLivedCachePruneInterval
Time between short lived cache pruning.
Definition: NodeConfiguration.h:73
Definition: AddressExtractionExtension.cpp:28
#define LOAD_OUT_CONNECTIONS_PROPERTY(NAME)
uint32_t BlockElementTraceInterval
Multiple of elements at which a block element should be traced through queue and completion.
Definition: NodeConfiguration.h:110
#define LOAD_IN_CONNECTIONS_PROPERTY(NAME)
utils::FileSize MaxChainBytesPerSyncAttempt
Maximum chain bytes per sync attempt.
Definition: NodeConfiguration.h:64
utils::FileSize SocketWorkingBufferSize
Initial socket working buffer size (socket reads will attempt to read buffers of roughly this size).
Definition: NodeConfiguration.h:97
NodeConfiguration()=default
#define LOAD_LOCALNODE_PROPERTY(NAME)