#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 146 of file chain.cpp.
◆ GetLocator()
Get a locator for a block index entry.
Definition at line 50 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 80 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 165 of file chain.cpp.
◆ LocatorEntries()
Construct a list of hash entries to put in a locator.
Definition at line 31 of file chain.cpp.