Skip to content

Commit

Permalink
Merge #656: [Wallet] Fix double locked coin when wallet and MN are on…
Browse files Browse the repository at this point in the history
… same machine

9aaae52 fix double locked coin when wallet and MN are on same machine (Tim Uy)

Tree-SHA512: c7690e88c1b13a5c934699068c0579a5ecb0a7e3c9b4f5834e25745a948459990275d2a7ffc50a26a4171cc39a3e5b9ed86750a92c99ad95b76212c891bcc41e
  • Loading branch information
Mrs-X committed Aug 5, 2018
2 parents 4a68c9e + 9aaae52 commit 5272a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet.cpp
Expand Up @@ -1203,7 +1203,7 @@ CAmount CWalletTx::GetLockedCredit() const
}

// Add masternode collaterals which are handled likc locked coins
if (fMasterNode && vout[i].nValue == 10000 * COIN) {
else if (fMasterNode && vout[i].nValue == 10000 * COIN) {
nCredit += pwallet->GetCredit(txout, ISMINE_SPENDABLE);
}

Expand Down Expand Up @@ -1322,7 +1322,7 @@ CAmount CWalletTx::GetLockedWatchOnlyCredit() const
}

// Add masternode collaterals which are handled likc locked coins
if (fMasterNode && vout[i].nValue == 10000 * COIN) {
else if (fMasterNode && vout[i].nValue == 10000 * COIN) {
nCredit += pwallet->GetCredit(txout, ISMINE_WATCH_ONLY);
}

Expand Down

0 comments on commit 5272a4f

Please sign in to comment.