From f2f60196202f388508a187c3fcbd5055d59e174d Mon Sep 17 00:00:00 2001 From: onryo Date: Sun, 4 Dec 2022 13:57:07 +0000 Subject: [PATCH] rm hashFinalSproutRoot related to https://git.hush.is/hush/hush3/issues/248 --- src/main.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index acef0dd50..6f39e16ee 100644 --- a/src/main.cpp +++ b/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())