Expand description
Get context and calculate difficulty for the next block.
Functionsยง
- adjust_
difficulty_ ๐and_ time_ for_ testnet - Adjust the difficulty and time for the testnet minimum difficulty rule.
- best_
relevant_ ๐chain_ and_ history_ tree - Do a consistency check by checking the finalized tip before and after all other database queries.
- check_
best_ tip_ block_ commitments - Checks that
blockis an NU5 or later direct child of the best tip, and that its header commits to the best tipโs chain history and to the blockโs own authorizing data. - check_
best_ tip_ header - Checks that
headeratheightis a direct child of the best tip, and that its difficulty threshold and time are valid in that context. - difficulty_
time_ ๐and_ history_ tree - Returns the
GetBlockTemplateChainInfofor the suppliedrelevant_data, tip,network,history_tree, and captured local timenow, or an error if no valid timestamp is available. - get_
block_ template_ chain_ info - Returns the
GetBlockTemplateChainInfofor the current best chain. - mining_
candidate_ ๐chain_ info - Returns the
GetBlockTemplateChainInfofor mining on top ofblock, and the note commitment trees afterblock, without committing it. - solution_
rate - Accepts a
non_finalized_state,ZebraDb,num_blocks, and a block hash to start at.