Structs§
- Context
ToVerify Block - This struct contains the data needed to verify a block, implementers MUST make sure the data in this struct is calculated correctly.
Enums§
Constants§
- PENALTY_
FREE_ ZONE_ 1 - PENALTY_
FREE_ ZONE_ 2 - PENALTY_
FREE_ ZONE_ 5 - RX_
SEEDHASH_ EPOCH_ BLOCKS - RX_
SEEDHASH_ EPOCH_ LAG
Traits§
- RandomX
- A trait to represent the
RandomX
VM.
Functions§
- calculate_
pow_ hash - Calculates the POW hash of this block.
- check_
block - Checks the block is valid returning the blocks hard-fork
VOTE
and the amount of coins generated in this block. - check_
block_ pow - Returns if the blocks POW hash is valid for the current difficulty.
- check_
block_ weight - Sanity check on the block weight.
- check_
timestamp - Checks the blocks timestamp is in the valid range.
- is_
randomx_ seed_ height - Returns if this height is a
RandomX
seed height. - penalty_
free_ zone - Returns the penalty free zone
- randomx_
seed_ height - Returns the
RandomX
seed height for this block.