#include <chain.h>
#include <tinyformat.h>
#include <util/check.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 136 of file chain.cpp.
◆ GetLocator()
Get a locator for a block index entry.
Definition at line 45 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 70 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 155 of file chain.cpp.
◆ LocatorEntries()
Construct a list of hash entries to put in a locator.
Definition at line 26 of file chain.cpp.