Skip to content

Commit

Permalink
Update wallet.cpp
Browse files Browse the repository at this point in the history
fix gui -  mn locked balance
  • Loading branch information
Deviantcoin authored Jun 29, 2018
1 parent 1191c7d commit e40361b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,9 +1200,9 @@ CAmount CWalletTx::GetLockedCredit() const
}

// Add masternode collaterals which are handled likc locked coins
if (fMasterNode && vout[i].nValue == 5000 * COIN) {
nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
}
//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");
Expand Down Expand Up @@ -5334,4 +5334,4 @@ bool CWallet::DatabaseMint(CDeterministicMint& dMint)
CWalletDB walletdb(strWalletFile);
zdevTracker->Add(dMint, true);
return true;
}
}

0 comments on commit e40361b

Please sign in to comment.