5#ifndef BITCOIN_BLOCKINDEXCOMPARATORS_H
6#define BITCOIN_BLOCKINDEXCOMPARATORS_H
The block chain is a tree shaped structure starting with the genesis block at the root,...
arith_uint256 nChainWork
(memory only) Total amount of work (expected number of hashes) in the chain up to and including this ...
int32_t nSequenceId
(memory only) Sequential id assigned to distinguish order in which blocks are received.
int nHeight
height of the entry in the chain. The genesis block has height 0
bool operator()(const CBlockIndex *pa, const CBlockIndex *pb) const
Only compares the height of two block indices, doesn't try to tie-break.
bool operator()(const CBlockIndex *pa, const CBlockIndex *pb) const