Port Network upgrade detection back to our KMD flavor
This commit is contained in:
@@ -146,10 +146,8 @@ void ThreadNotifyWallets(CBlockIndex *pindexLastTip)
|
|||||||
// the Sapling activation height. Otherwise, the last anchor was the
|
// the Sapling activation height. Otherwise, the last anchor was the
|
||||||
// empty root.
|
// empty root.
|
||||||
SaplingMerkleTree oldSaplingTree;
|
SaplingMerkleTree oldSaplingTree;
|
||||||
if (chainParams.GetConsensus().NetworkUpgradeActive(
|
if (NetworkUpgradeActive(pindex->pprev->GetHeight(),Params().GetConsensus(), Consensus::UPGRADE_SAPLING)) {
|
||||||
pindex->pprev->GetHeight(), Consensus::UPGRADE_SAPLING)) {
|
assert(pcoinsTip->GetSaplingAnchorAt(pindex->pprev->hashFinalSaplingRoot, oldSaplingTree));
|
||||||
assert(pcoinsTip->GetSaplingAnchorAt(
|
|
||||||
pindex->pprev->hashFinalSaplingRoot, oldSaplingTree));
|
|
||||||
} else {
|
} else {
|
||||||
assert(pcoinsTip->GetSaplingAnchorAt(SaplingMerkleTree::empty_root(), oldSaplingTree));
|
assert(pcoinsTip->GetSaplingAnchorAt(SaplingMerkleTree::empty_root(), oldSaplingTree));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user