File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3165,10 +3165,10 @@ int GetsStakeSubTotal(vStakePeriodRange_T& aRange)
3165
3165
nElement++;
3166
3166
3167
3167
// 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 ;
3170
3170
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 );
3172
3172
3173
3173
3174
3174
// scan the range
You can’t perform that action at this time.
0 commit comments