Struct NodeConfig

Node config

struct NodeConfig ;

Fields

NameTypeDescription
block_catchup_interval core.time.DurationThe duration between requests for retrieving the latest blocks from all other nodes
data_dir stringPath to the data directory to store metadata and blockchain data
max_listeners ulongMaximum number of listeners to connect to
max_retries ulongMaximum number of retries to issue before a request is considered failed
min_fee_pct ushortMinimum fee percentage for transactions to be added to the pool
min_listeners ulongThe minimum number of listeners to connect to before discovery is considered complete
network_discovery_interval core.time.DurationThe 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.DurationTransaction put into the relay queue will expire, and will be removed after relay_tx_cache_exp.
relay_tx_interval core.time.DurationTransaction relay batch is triggered in every relay_tx_interval. Value 0 means, the transaction will be relayed immediately.
relay_tx_max_num uintThe maximum number of transactions relayed in every batch. Value 0 means no limit.
relay_tx_min_fee AmountThe 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.DurationTime to wait between request retries
test_validators ubyteShould only be set if test is set, can be set to the number of desired enrollment in the test Genesis block (1 - 6)
testing boolIf 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.DurationTimeout for each request

Methods

NameDescription
validate () Validate this struct