Module grin_core::global

source ·
Expand description

Values that should be shared across all modules, without necessarily having to pass them all over the place, but aren’t consensus values. should be used sparingly.

Structs§

  • Global acccept fee base that must be initialized once on node startup. This is accessed via get_acccept_fee_base() which allows the global value to be overridden on a per-thread basis (for testing).
  • Global chain_type that must be initialized once on node startup. This is accessed via get_chain_type() which allows the global value to be overridden on a per-thread basis (for testing).
  • Global future time limit that must be initialized once on node startup. This is accessed via get_future_time_limit() which allows the global value to be overridden on a per-thread basis (for testing).
  • Global feature flag for NRD kernel support. If enabled NRD kernels are treated as valid after HF3 (based on header version). If disabled NRD kernels are invalid regardless of header version or block height.

Enums§

  • Types of chain a server can run with, dictates the genesis block and and mining parameters used.

Constants§

Functions§