Efficiently check whether a block is present in this chain. */
| 597 | |
| 598 | /** Efficiently check whether a block is present in this chain. */ |
| 599 | bool Contains(const CBlockIndex* pindex) const |
| 600 | { |
| 601 | return (*this)[pindex->nHeight] == pindex; |
| 602 | } |
| 603 | |
| 604 | /** Find the successor of a block in this chain, or nullptr if the given index is not found or is the tip. */ |
| 605 | CBlockIndex* Next(const CBlockIndex* pindex) const |
no outgoing calls