Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: don't rely on BlockHeightByHash for prune height
calculations Since BlockHeightByHash only returns the heights for blocks that are in the main chain, when a block that is stale gets pruned, this will cause an error in the block height lookup and cause an error in block processing. Look up the node directly from the index and if the node isn't found, just skip that node. For utxoCache.lastFlushHash, if that isn't found, just force a flush.
- Loading branch information