Struct NodeConfig
Node config
Fields
Name | Type | Description |
block_catchup_interval
|
core.time.Duration | The duration between requests for retrieving the latest blocks
from all other nodes
|
data_dir
|
string | Path to the data directory to store metadata and blockchain data
|
max_listeners
|
ulong | Maximum number of listeners to connect to
|
max_retries
|
ulong | Maximum number of retries to issue before a request is considered failed
|
min_fee_pct
|
ushort | Minimum fee percentage for transactions to be added to the pool
|
min_listeners
|
ulong | The minimum number of listeners to connect to
before discovery is considered complete
|
network_discovery_interval
|
core.time.Duration | The duration between requests for doing periodic network discovery
|
public_addresses
|
immutable(Address[]) | Register addresses for this interface, i.e. reverse proxy configurations
|
realm
|
immutable(Domain) | The realm to which this node belongs (a domain name)
|
register
|
configy.Attributes.SetInfo!(string) | Register CNAME record for this interface
|
relay_tx_cache_exp
|
core.time.Duration | Transaction put into the relay queue will expire, and will be removed
after relay_tx_cache_exp .
|
relay_tx_interval
|
core.time.Duration | Transaction relay batch is triggered in every relay_tx_interval .
Value 0 means, the transaction will be relayed immediately.
|
relay_tx_max_num
|
uint | The maximum number of transactions relayed in every batch.
Value 0 means no limit.
|
relay_tx_min_fee
|
Amount | The minimum amount of fee a transaction has to have to be relayed.
The fee is adjusted by the transaction size:
adjusted fee = fee / transaction size in bytes.
|
retry_delay
|
core.time.Duration | Time to wait between request retries
|
test_validators
|
ubyte | Should only be set if test is set, can be set to the number of desired
enrollment in the test Genesis block (1 - 6)
|
testing
|
bool | If set to true will run in testing mode and use different
genesis block (agora.consensus.data.genesis.Test)
and TODO: addresses should be different prefix (e.g. TN... for TestNet)
|
timeout
|
core.time.Duration | Timeout for each request
|
Methods
Name | Description |
validate
()
|
Validate this struct
|