Module hard_forks

Source
Expand description

§Hard-Forks

Monero use hard-forks to update it’s protocol, this module contains a HFVotes struct which keeps track of current blockchain voting, and has a method HFVotes::current_fork to check if the next hard-fork should be activated.

Structs§

HFInfo
Information about a given hard-fork.
HFVotes
A struct holding the current voting state of the blockchain.
HFsInfo
Information about every hard-fork Monero has had.

Enums§

HardFork
An identifier for every hard-fork Monero has had.
HardForkError
An error working with a HardFork.

Constants§

NUMB_OF_HARD_FORKS

Functions§

check_block_version_vote
Checks a blocks version and vote, assuming that hf is the current hard-fork.
votes_needed
Returns the votes needed for a hard-fork.