#include <chain.h>
#include <tinyformat.h>
#include <util/time.h>
Go to the source code of this file.
◆ GetBlockProof()
◆ GetBlockProofEquivalentTime()
Return the time it would take to redo the work difference between from and to, assuming the current hashrate corresponds to the difficulty at tip, in seconds.
Definition at line 145 of file chain.cpp.
◆ GetSkipHeight()
static int GetSkipHeight |
( |
int |
height | ) |
|
|
inlinestatic |
◆ InvertLowestOne()
static int InvertLowestOne |
( |
int |
n | ) |
|
|
inlinestatic |
Turn the lowest '1' bit in the binary representation of a number into a '0'.
Definition at line 79 of file chain.cpp.
◆ LastCommonAncestor()
Find the last common ancestor two blocks have.
Find the forking point between two chain tips.
Both pa and pb must be non-nullptr.
Definition at line 164 of file chain.cpp.