|
|
@ -56,7 +56,7 @@ extern uint64_t nPruneTarget;
|
|
|
|
// we ever switch to another associative container, we need to either use a
|
|
|
|
// we ever switch to another associative container, we need to either use a
|
|
|
|
// container that has stable addressing (true of all std associative
|
|
|
|
// container that has stable addressing (true of all std associative
|
|
|
|
// containers), or make the key a `std::unique_ptr<CBlockIndex>`
|
|
|
|
// containers), or make the key a `std::unique_ptr<CBlockIndex>`
|
|
|
|
typedef std::unordered_map<uint256, CBlockIndex, BlockHasher> BlockMap;
|
|
|
|
using BlockMap = std::unordered_map<uint256, CBlockIndex, BlockHasher>;
|
|
|
|
|
|
|
|
|
|
|
|
struct CBlockIndexWorkComparator {
|
|
|
|
struct CBlockIndexWorkComparator {
|
|
|
|
bool operator()(const CBlockIndex* pa, const CBlockIndex* pb) const;
|
|
|
|
bool operator()(const CBlockIndex* pa, const CBlockIndex* pb) const;
|
|
|
|