Skip to content

Commit

Permalink
remove unused CompareBlocksByHeightMain comparator
Browse files Browse the repository at this point in the history
  • Loading branch information
DeckerSU committed Dec 1, 2023
1 parent 0d37ff3 commit 6deae3e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2145,20 +2145,6 @@ bool GetAddressUnspent(uint160 addressHash, int type,
return true;
}

struct CompareBlocksByHeightMain
{
bool operator()(const CBlockIndex* a, const CBlockIndex* b) const
{
/* Make sure that unequal blocks with the same height do not compare
equal. Use the pointers themselves to make a distinction. */

if (a->nHeight != b->nHeight)
return (a->nHeight > b->nHeight);

return a < b;
}
};

/****
* @brief add a transaction to the mempool
* @param[in] tx the transaction
Expand Down

0 comments on commit 6deae3e

Please sign in to comment.