|
|
@ -5960,20 +5960,6 @@ bool static LoadBlockIndexDB() |
|
|
|
pblocktree->ReadFlag("spentindex", fSpentIndex); |
|
|
|
LogPrintf("%s: spent index %s\n", __func__, fSpentIndex ? "enabled" : "disabled"); |
|
|
|
|
|
|
|
// Fill in-memory data
|
|
|
|
BOOST_FOREACH(const PAIRTYPE(uint256, CBlockIndex*)& item, mapBlockIndex) |
|
|
|
{ |
|
|
|
CBlockIndex* pindex = item.second; |
|
|
|
// - This relationship will always be true even if pprev has multiple
|
|
|
|
// children, because hashSproutAnchor is technically a property of pprev,
|
|
|
|
// not its children.
|
|
|
|
// - This will miss chain tips; we handle the best tip below, and other
|
|
|
|
// tips will be handled by ConnectTip during a re-org.
|
|
|
|
if (pindex->pprev) { |
|
|
|
pindex->pprev->hashFinalSproutRoot = pindex->hashSproutAnchor; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Load pointer to end of best chain
|
|
|
|
BlockMap::iterator it = mapBlockIndex.find(pcoinsTip->GetBestBlock()); |
|
|
|
if (it == mapBlockIndex.end()) |
|
|
|