We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ab136 commit df53688Copy full SHA for df53688
src/chain.h
@@ -398,12 +398,6 @@ class CChain {
398
return vChain[nHeight];
399
}
400
401
- /** Compare two chains efficiently. */
402
- friend bool operator==(const CChain &a, const CChain &b) {
403
- return a.vChain.size() == b.vChain.size() &&
404
- a.vChain[a.vChain.size() - 1] == b.vChain[b.vChain.size() - 1];
405
- }
406
-
407
/** Efficiently check whether a block is present in this chain. */
408
bool Contains(const CBlockIndex *pindex) const {
409
return (*this)[pindex->nHeight] == pindex;
0 commit comments