Config for the Chunk Distribution Network feature.
This allows nodes to push and pull chunks from a central stream.
The two benefits of this approach are: (1) less request/response traffic
on the peer-to-peer network and (2) lower latency for RPC nodes indexing the chain.
URIs for the Chunk Distribution Network feature.
ClientConfig where some fields can be updated at runtime.
Configures how to dump state to external storage.
Configuration for garbage collection.
Genesis
has an invariant that total_supply
is equal to the supply seen in the records.
However, we can’t enforce that invariant. All fields are public, but the clients are expected to
use the provided methods for instantiation, serialization and deserialization.
Refer to test_loading_localnet_genesis
to see an example of serialized Genesis JSON.
Config for changes applied to state dump.
Records in storage at genesis (get split into shards at genesis creation).
A wrapper for a config value that can be updated while the node is running.
When initializing sub-objects (e.g. ShardsManager
), please make sure to
pass this wrapper instead of passing a value from a single moment in time.
See expected_shutdown
for an example how to use it.
Configuration for resharding.
Options for dumping state to S3.
A subset of Config that can be updated white the node is running.
Criterion for kicking out block producers.
Criterion for kicking out chunk producers.
Criterion for kicking out chunk validators.
Default number of epochs for which we keep store data
Default number of concurrent requests to external storage to fetch state parts.
Expected epoch length.
Fishermen stake threshold.
The rate at which the gas price can be adjusted (alpha in the formula).
The formula is
gas_price_t = gas_price_{t-1} * (1 + (gas_used/gas_limit - 1/2) * alpha))
Initial gas limit.
Maximum inflation rate per year
Expected block production time in ms.
Initial and minimum gas price.
Minimum number of epochs for which we keep store data
One NEAR, divisible by 10^24.
Expected number of blocks per year
Number of seats for block producers
Protocol treasury reward
Protocol treasury account
Protocol upgrade stake threshold.
Number of blocks for which a given transaction is valid