File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3165,10 +3165,10 @@ int GetsStakeSubTotal(vStakePeriodRange_T& aRange)
31653165 nElement++;
31663166
31673167 // use the cached amount if available
3168- if (pcoin->fCreditCached && pcoin->fDebitCached )
3169- nAmount = pcoin->nCreditCached - pcoin->nDebitCached ;
3168+ if (( pcoin->fCreditCached || pcoin-> fColdStakingCreditCached ) && ( pcoin->fDebitCached || pcoin-> fColdStakingDebitCached ) )
3169+ nAmount = pcoin->nCreditCached + pcoin-> nColdStakingCreditCached - pcoin->nDebitCached - pcoin-> nColdStakingDebitCached ;
31703170 else
3171- nAmount = pcoin->GetCredit (ISMINE_SPENDABLE) - pcoin->GetDebit (ISMINE_SPENDABLE);
3171+ nAmount = pcoin->GetCredit (ISMINE_SPENDABLE) + pcoin-> GetCredit (ISMINE_STAKABLE) - pcoin->GetDebit (ISMINE_SPENDABLE) - pcoin-> GetDebit (ISMINE_STAKABLE );
31723172
31733173
31743174 // scan the range
You can’t perform that action at this time.
0 commit comments