Struct ConsensusConfig
Fields
Name | Type | Description |
block_interval
|
core.time.Duration | How often a block should be created
|
chain_id
|
ulong | Chain ID to be used while calculating hashes
Used to protect against replay attacks between networks
By conveniention, we use 0 for CoinNet and 1 for TestNet
|
genesis_timestamp
|
TimePoint | The timestamp at which Genesis was mined
|
max_tx_set_size_kbs
|
uint | Max TX set size in KBs
|
min_fee
|
Amount | The minimum (transaction size adjusted) fee.
Transaction size adjusted fee = tx fee / tx size in bytes.
|
payout_period
|
uint | How frequent the payments to Validators will be in blocks
|
quorum_shuffle_interval
|
uint | The maximum number of blocks before a quorum shuffle takes place.
Note that a shuffle may occur before the cycle ends if the active
validator set changes (new enrollments, expired enrollments..)
|
quorum_threshold
|
uint | Threshold to use in the autogenerated quorum. Between 1 and 100.
|
tx_payload_fee_factor
|
uint | The factor to calculate for the fee of data payload
|
tx_payload_max_size
|
uint | The maximum size of data payload
|
validator_cycle
|
uint | The cycle length for a validator
|
validator_tx_fee_cut
|
ubyte | The share that Validators would get out of the transction fees (Out of 100)
The rest would go to the Commons Budget
|
Methods
Name | Description |
validate
()
|
Validate this struct
|