Fix tallying for Sprout/Sapling value pools.
This commit is contained in:
parent
bf4de896e7
commit
cb6df4b0cc
|
@ -4092,7 +4092,6 @@ bool static LoadBlockIndexDB()
|
|||
} else {
|
||||
pindex->nChainSproutValue = boost::none;
|
||||
}
|
||||
|
||||
if (pindex->pprev->nChainSaplingValue) {
|
||||
pindex->nChainSaplingValue = *pindex->pprev->nChainSaplingValue + pindex->nSaplingValue;
|
||||
} else {
|
||||
|
|
|
@ -337,7 +337,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
|
|||
CAmount sproutValueDummy = sproutValue;
|
||||
CAmount saplingValueDummy = saplingValue;
|
||||
|
||||
sproutValueDummy += -tx.valueBalance;
|
||||
saplingValueDummy += -tx.valueBalance;
|
||||
|
||||
for (auto js : tx.vjoinsplit) {
|
||||
sproutValueDummy += js.vpub_old;
|
||||
|
|
Loading…
Reference in New Issue