| 124 | } |
| 125 | |
| 126 | static int ComputeNextBlockAndDepth(const CBlockIndex& tip, const CBlockIndex& blockindex, const CBlockIndex*& next) |
| 127 | { |
| 128 | next = tip.GetAncestor(blockindex.nHeight + 1); |
| 129 | if (next && next->pprev == &blockindex) { |
| 130 | return tip.nHeight - blockindex.nHeight + 1; |
| 131 | } |
| 132 | next = nullptr; |
| 133 | return &blockindex == &tip ? 1 : -1; |
| 134 | } |
| 135 | |
| 136 | static const CBlockIndex* ParseHashOrHeight(const UniValue& param, ChainstateManager& chainman) |
| 137 | { |
no test coverage detected