MCPcopy Create free account
hub / github.com/ElementsProject/elements / CBlockIndexWorkComparator

Class CBlockIndexWorkComparator

src/node/blockstorage.h:64–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62typedef std::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
63
64struct CBlockIndexWorkComparator {
65 bool operator()(const CBlockIndex* pa, const CBlockIndex* pb) const;
66};
67
68/**
69 * Maintains a tree of blocks (stored in `m_block_index`) which is consulted

Callers 4

ActivateBestChainMethod · 0.85
InvalidateBlockMethod · 0.85
CheckBlockIndexMethod · 0.85
LoadBlockIndexMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected