MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CBlockIndexWorkComparator

Class CBlockIndexWorkComparator

src/node/blockstorage.h:140–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138using BlockMap = std::unordered_map<uint256, CBlockIndex, BlockHasher>;
139
140struct CBlockIndexWorkComparator {
141 bool operator()(const CBlockIndex* pa, const CBlockIndex* pb) const;
142 using is_transparent = void;
143};
144
145struct CBlockIndexHeightOnlyComparator {
146 /* Only compares the height of two block indices, doesn't try to tie-break */

Callers 7

ActivateBestChainMethod · 0.85
InvalidateBlockMethod · 0.85
LoadBlockIndexMethod · 0.85
CheckBlockIndexMethod · 0.85
validation.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected