fix double count on getlockedcredit/getunlockedcredit
@@ -870,7 +870,6 @@ public:
const CTxOut& txout = vout[i];
if (IsSpent(i) || pwallet->IsLockedCoin(hashTx, i)) continue;
- if (fMasterNode && vout[i].nValue == 5000 * COIN) continue; // do not count MN-like outputs
nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
if (!MoneyRange(nCredit))
@@ -900,11 +899,6 @@ public:
nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
}
- // Add masternode collaterals which are handled like locked coins
- if (fMasterNode && vout[i].nValue == 5000 * COIN) {
- nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
- }
-
if (!MoneyRange(nCredit))
throw std::runtime_error("CWalletTx::GetLockedCredit() : value out of range");
}
