Crates.io | near-chain-configs |
lib.rs | near-chain-configs |
version | 0.23.0 |
source | src |
created_at | 2021-10-04 06:33:05.093996 |
updated_at | 2024-06-17 17:38:02.653482 |
description | This crate provides typed interfaces to the NEAR Genesis and Chain Configs |
homepage | |
repository | https://github.com/near/nearcore |
max_upload_size | |
id | 459983 |
size | 116,565 |
This crate provides typed interfaces to the NEAR Genesis and Client Configs, together with the functions to validate their correctness.
Genesis config is the one that 'defines' the chain. It was set at the beginning and generally is not mutable.
Client config is the part of the config that client can configure on their own - it controls things like: how many peers it should connect to before syncing, which shards to track etc.
This is the type that is spanning over GenesisConfig and RuntimeConfig. People should not use it directly, but use the ProtocolConfigView class instead.