Return the maximal height in the chain. Is equal to chain.Tip() ? chain.Tip()->nHeight : -1. */
| 612 | |
| 613 | /** Return the maximal height in the chain. Is equal to chain.Tip() ? chain.Tip()->nHeight : -1. */ |
| 614 | int Height() const |
| 615 | { |
| 616 | return int(vChain.size()) - 1; |
| 617 | } |
| 618 | |
| 619 | /** Set/initialize a chain with a given tip. */ |
| 620 | void SetTip(CBlockIndex* pindex); |