Browse Source

Merge pull request 'rm hashFinalSproutRoot' (#250) from onryo/hush3:dev into dev

Reviewed-on: #250
pull/252/head
duke 1 year ago
parent
commit
4257b257df
  1. 14
      src/main.cpp

14
src/main.cpp

@ -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())

Loading…
Cancel
Save