Module near_primitives::epoch_manager

source ·

Modules§

Structs§

  • AllEpochConfig manages protocol configs that might be changing throughout epochs (hence EpochConfig). The main function in AllEpochConfig is ::for_protocol_version which takes a protocol version and returns the EpochConfig that should be used for this protocol version.
  • Testing overrides to apply to the EpochConfig returned by the for_protocol_version. All fields should be optional and the default should be a no-op.
  • Information per each block.
  • Epoch config, determines validator assignment for given epoch. Can change from epoch to epoch depending on the sharding and other parameters, etc.
  • Information per epoch.
  • Additional configuration parameters for the new validator selection algorithm. See https://github.com/near/NEPs/pull/167 for details.

Enums§

  • State that a slashed validator can be in.

Constants§

Type Aliases§