Returns the index entry for the tip of this chain, or nullptr if none. */
| 583 | |
| 584 | /** Returns the index entry for the tip of this chain, or nullptr if none. */ |
| 585 | CBlockIndex* Tip() const |
| 586 | { |
| 587 | return vChain.size() > 0 ? vChain[vChain.size() - 1] : nullptr; |
| 588 | } |
| 589 | |
| 590 | /** Returns the index entry at a particular height in this chain, or nullptr if no such height exists. */ |
| 591 | CBlockIndex* operator[](int nHeight) const |