Module massa_models::config::constants

source ·
Expand description

DEFAULT VALUES USED TO INITIALIZE DIVERS CONFIGURATIONS STRUCTURES

§Default hard-coded

Each crates may contains a settings.rs or a config.rs the Default implementation of each object take the default Values from the following file.

These values are the hard-coded values that make sens to never be modified by a user. Generally, this values are passed with dependency injection in a cfg parameter for each worker, that is convenient for unit tests.

A parallel file with the same constant definitions exist for the testing case. (default_testing.rs) But as for the current file you shouldn’t modify it.

Structs§

  • node chain id (to avoid replay attacks)
  • TESTNET: time when the blockclique is ended.
  • KeyPair to sign genesis blocks.
  • Time in milliseconds when the blockclique started. In sandbox mode, the value depends on starting time and on the –restart-from-snapshot-at-period argument in CLI, so that the network starts or restarts 10 seconds after launch
  • number of cycle misses (strictly) above which stakers are deactivated
  • node version

Constants§

Functions§