CatapultServer
v0.5.0.1 (Elephant)
|
Node configuration settings. More...
Classes | |
struct | ConnectionsSubConfiguration |
Connections configuration. More... | |
struct | IncomingConnectionsSubConfiguration |
Incoming connections configuration. More... | |
struct | LocalSubConfiguration |
Local node configuration. More... | |
Static Public Member Functions | |
static NodeConfiguration | Uninitialized () |
Creates an uninitialized node configuration. More... | |
static NodeConfiguration | LoadFromBag (const utils::ConfigurationBag &bag) |
Loads a node configuration from bag. More... | |
Public Attributes | |
unsigned short | Port |
Server port. More... | |
unsigned short | ApiPort |
Server api port. More... | |
bool | ShouldAllowAddressReuse |
true if the server should reuse ports already in use. More... | |
bool | ShouldUseSingleThreadPool |
true if a single thread pool should be used, false if multiple thread pools should be used. More... | |
bool | ShouldUseCacheDatabaseStorage |
true if cache data should be saved in a database. More... | |
bool | ShouldEnableAutoSyncCleanup |
bool | ShouldEnableTransactionSpamThrottling |
true if transaction spam throttling should be enabled. More... | |
Amount | TransactionSpamThrottlingMaxBoostFee |
Maximum fee that will boost a transaction through the spam throttle when spam throttling is enabled. More... | |
uint32_t | MaxBlocksPerSyncAttempt |
Maximum number of blocks per sync attempt. More... | |
utils::FileSize | MaxChainBytesPerSyncAttempt |
Maximum chain bytes per sync attempt. More... | |
utils::TimeSpan | ShortLivedCacheTransactionDuration |
Duration of a transaction in the short lived cache. More... | |
utils::TimeSpan | ShortLivedCacheBlockDuration |
Duration of a block in the short lived cache. More... | |
utils::TimeSpan | ShortLivedCachePruneInterval |
Time between short lived cache pruning. More... | |
uint32_t | ShortLivedCacheMaxSize |
Maximum size of a short lived cache. More... | |
BlockFeeMultiplier | MinFeeMultiplier |
Minimum fee multiplier of transactions to propagate and include in blocks. More... | |
model::TransactionSelectionStrategy | TransactionSelectionStrategy |
Transaction selection strategy used for syncing and harvesting unconfirmed transactions. More... | |
utils::FileSize | UnconfirmedTransactionsCacheMaxResponseSize |
Maximum size of an unconfirmed transactions response. More... | |
uint32_t | UnconfirmedTransactionsCacheMaxSize |
Maximum size of the unconfirmed transactions cache. More... | |
utils::TimeSpan | ConnectTimeout |
Timeout for connecting to a peer. More... | |
utils::TimeSpan | SyncTimeout |
Timeout for syncing with a peer. More... | |
utils::FileSize | SocketWorkingBufferSize |
Initial socket working buffer size (socket reads will attempt to read buffers of roughly this size). More... | |
uint32_t | SocketWorkingBufferSensitivity |
utils::FileSize | MaxPacketDataSize |
Maximum packet data size. More... | |
uint32_t | BlockDisruptorSize |
Size of the block disruptor circular buffer. More... | |
uint32_t | BlockElementTraceInterval |
Multiple of elements at which a block element should be traced through queue and completion. More... | |
uint32_t | TransactionDisruptorSize |
Size of the transaction disruptor circular buffer. More... | |
uint32_t | TransactionElementTraceInterval |
Multiple of elements at which a transaction element should be traced through queue and completion. More... | |
bool | ShouldAbortWhenDispatcherIsFull |
true if the process should terminate when any dispatcher is full. More... | |
bool | ShouldAuditDispatcherInputs |
true if all dispatcher inputs should be audited. More... | |
ionet::ConnectionSecurityMode | OutgoingSecurityMode |
Security mode of outgoing connections initiated by this node. More... | |
ionet::ConnectionSecurityMode | IncomingSecurityModes |
Accepted security modes of incoming connections initiated by other nodes. More... | |
utils::FileSize | MaxCacheDatabaseWriteBatchSize |
Maximum cache database write batch size. More... | |
uint32_t | MaxTrackedNodes |
Maximum number of nodes to track in memory. More... | |
LocalSubConfiguration | Local |
Local node configuration. More... | |
ConnectionsSubConfiguration | OutgoingConnections |
Outgoing connections configuration. More... | |
IncomingConnectionsSubConfiguration | IncomingConnections |
Incoming connections configuration. More... | |
Private Member Functions | |
NodeConfiguration ()=default | |
Node configuration settings.
|
privatedefault |
|
static |
Loads a node configuration from bag.
|
static |
Creates an uninitialized node configuration.
unsigned short catapult::config::NodeConfiguration::ApiPort |
Server api port.
uint32_t catapult::config::NodeConfiguration::BlockDisruptorSize |
Size of the block disruptor circular buffer.
uint32_t catapult::config::NodeConfiguration::BlockElementTraceInterval |
Multiple of elements at which a block element should be traced through queue and completion.
utils::TimeSpan catapult::config::NodeConfiguration::ConnectTimeout |
Timeout for connecting to a peer.
IncomingConnectionsSubConfiguration catapult::config::NodeConfiguration::IncomingConnections |
Incoming connections configuration.
ionet::ConnectionSecurityMode catapult::config::NodeConfiguration::IncomingSecurityModes |
Accepted security modes of incoming connections initiated by other nodes.
LocalSubConfiguration catapult::config::NodeConfiguration::Local |
Local node configuration.
uint32_t catapult::config::NodeConfiguration::MaxBlocksPerSyncAttempt |
Maximum number of blocks per sync attempt.
utils::FileSize catapult::config::NodeConfiguration::MaxCacheDatabaseWriteBatchSize |
Maximum cache database write batch size.
utils::FileSize catapult::config::NodeConfiguration::MaxChainBytesPerSyncAttempt |
Maximum chain bytes per sync attempt.
utils::FileSize catapult::config::NodeConfiguration::MaxPacketDataSize |
Maximum packet data size.
uint32_t catapult::config::NodeConfiguration::MaxTrackedNodes |
Maximum number of nodes to track in memory.
BlockFeeMultiplier catapult::config::NodeConfiguration::MinFeeMultiplier |
Minimum fee multiplier of transactions to propagate and include in blocks.
ConnectionsSubConfiguration catapult::config::NodeConfiguration::OutgoingConnections |
Outgoing connections configuration.
ionet::ConnectionSecurityMode catapult::config::NodeConfiguration::OutgoingSecurityMode |
Security mode of outgoing connections initiated by this node.
unsigned short catapult::config::NodeConfiguration::Port |
Server port.
utils::TimeSpan catapult::config::NodeConfiguration::ShortLivedCacheBlockDuration |
Duration of a block in the short lived cache.
uint32_t catapult::config::NodeConfiguration::ShortLivedCacheMaxSize |
Maximum size of a short lived cache.
utils::TimeSpan catapult::config::NodeConfiguration::ShortLivedCachePruneInterval |
Time between short lived cache pruning.
utils::TimeSpan catapult::config::NodeConfiguration::ShortLivedCacheTransactionDuration |
Duration of a transaction in the short lived cache.
bool catapult::config::NodeConfiguration::ShouldAbortWhenDispatcherIsFull |
true
if the process should terminate when any dispatcher is full.
bool catapult::config::NodeConfiguration::ShouldAllowAddressReuse |
true
if the server should reuse ports already in use.
bool catapult::config::NodeConfiguration::ShouldAuditDispatcherInputs |
true
if all dispatcher inputs should be audited.
bool catapult::config::NodeConfiguration::ShouldEnableAutoSyncCleanup |
true
if temporary sync files should be automatically cleaned up.
false
if broker process is running. bool catapult::config::NodeConfiguration::ShouldEnableTransactionSpamThrottling |
true
if transaction spam throttling should be enabled.
bool catapult::config::NodeConfiguration::ShouldUseCacheDatabaseStorage |
true
if cache data should be saved in a database.
bool catapult::config::NodeConfiguration::ShouldUseSingleThreadPool |
true
if a single thread pool should be used, false
if multiple thread pools should be used.
uint32_t catapult::config::NodeConfiguration::SocketWorkingBufferSensitivity |
Socket working buffer sensitivity (lower values will cause memory to be more aggressively reclaimed).
0
will disable memory reclamation. utils::FileSize catapult::config::NodeConfiguration::SocketWorkingBufferSize |
Initial socket working buffer size (socket reads will attempt to read buffers of roughly this size).
utils::TimeSpan catapult::config::NodeConfiguration::SyncTimeout |
Timeout for syncing with a peer.
uint32_t catapult::config::NodeConfiguration::TransactionDisruptorSize |
Size of the transaction disruptor circular buffer.
uint32_t catapult::config::NodeConfiguration::TransactionElementTraceInterval |
Multiple of elements at which a transaction element should be traced through queue and completion.
model::TransactionSelectionStrategy catapult::config::NodeConfiguration::TransactionSelectionStrategy |
Transaction selection strategy used for syncing and harvesting unconfirmed transactions.
Amount catapult::config::NodeConfiguration::TransactionSpamThrottlingMaxBoostFee |
Maximum fee that will boost a transaction through the spam throttle when spam throttling is enabled.
utils::FileSize catapult::config::NodeConfiguration::UnconfirmedTransactionsCacheMaxResponseSize |
Maximum size of an unconfirmed transactions response.
uint32_t catapult::config::NodeConfiguration::UnconfirmedTransactionsCacheMaxSize |
Maximum size of the unconfirmed transactions cache.