Module zebra_state::service::read::difficulty
source ยท Expand description
Get context and calculate difficulty for the next block.
Constantsยง
- The amount of extra time we allow for a miner to mine a standard difficulty block on testnet.
Functionsยง
- Adjust the difficulty and time for the testnet minimum difficulty rule.
- Do a consistency check by checking the finalized tip before and after all other database queries.
- Returns the
GetBlockTemplateChainInfo
for the suppliedrelevant_chain
, tip,network
, andhistory_tree
. - Returns the
GetBlockTemplateChainInfo
for the current best chain.