Module darkfi_sdk::blockchain

source ·
Expand description

Blockchain structures

Functions§

  • Auxiliary function to calculate provided block height epoch. Each epoch is defined by the fixed intervals rewards change. Genesis block is on epoch 0.
  • Auxiliary function to calculate provided block height block version. Currently, a single version(1) exists.
  • Auxiliary function to calculate provided block height expected reward value. Genesis block always returns reward value 0. Rewards are halfed at fixed intervals, called epochs. After last epoch has started, reward value is based on DARK token-economics.