Modules§
Structs§
- Client
Config - ClientConfig where some fields can be updated at runtime.
- Dump
Config - Configures how to dump state to external storage.
- External
Storage Config - GCConfig
- Configuration for garbage collection.
- Genesis
Genesis
has an invariant thattotal_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 totest_loading_localnet_genesis
to see an example of serialized Genesis JSON.- Genesis
Change Config - Config for changes applied to state dump.
- Genesis
Config - Genesis
Records - Records in storage at genesis (get split into shards at genesis creation).
- Mutable
Config Value - 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. Seeexpected_shutdown
for an example how to use it. - Protocol
Config - Protocol
Config View - Resharding
Config - Configuration for resharding.
- Resharding
Handle - State
Sync Config - Options for dumping state to S3.
- Updateable
Client Config - A subset of Config that can be updated white the node is running.
Enums§
- External
Storage Location - Genesis
Contents - Genesis
Validation Mode - LogSummary
Style - Sync
Config - Configures how to fetch state parts during state sync.
Constants§
- DEFAULT_
GC_ NUM_ EPOCHS_ TO_ KEEP - Default number of epochs for which we keep store data
- DEFAULT_
STATE_ SYNC_ NUM_ CONCURRENT_ REQUESTS_ EXTERNAL - Default number of concurrent requests to external storage to fetch state parts.
- DEFAULT_
STATE_ SYNC_ NUM_ CONCURRENT_ REQUESTS_ ON_ CATCHUP_ EXTERNAL - MIN_
GC_ NUM_ EPOCHS_ TO_ KEEP - Minimum number of epochs for which we keep store data
- TEST_
STATE_ SYNC_ TIMEOUT
Functions§
- default_
enable_ multiline_ logging - default_
header_ sync_ expected_ height_ per_ second - default_
header_ sync_ initial_ timeout - default_
header_ sync_ progress_ timeout - default_
header_ sync_ stall_ ban_ timeout - default_
log_ summary_ period - default_
produce_ chunk_ add_ transactions_ time_ limit - default_
state_ sync - default_
state_ sync_ enabled - default_
state_ sync_ timeout - default_
sync_ check_ period - default_
sync_ height_ threshold - default_
sync_ step_ period - default_
transaction_ pool_ size_ limit - default_
trie_ viewer_ state_ size_ limit - default_
tx_ routing_ height_ horizon - default_
view_ client_ threads - default_
view_ client_ throttle_ period - get_
initial_ supply - stream_
records_ from_ file - The file can be a JSON with comments