diff options
| author | Wladimir J. van der Laan <[email protected]> | 2014-10-13 13:56:54 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-10-13 13:57:07 +0200 |
| commit | d7e195048342afae9168377cebfc22ab000728a5 (patch) | |
| tree | ee5b07604ef073ef35d8aa13598fb7d6a4877bc4 /src/rpcwallet.cpp | |
| parent | Merge pull request #5073 (diff) | |
| parent | [Wallet] Watch-only fixes (diff) | |
| download | discoin-d7e195048342afae9168377cebfc22ab000728a5.tar.xz discoin-d7e195048342afae9168377cebfc22ab000728a5.zip | |
Merge pull request #4937
ccca27a [Wallet] Watch-only fixes (Cozz Lovan)
Diffstat (limited to 'src/rpcwallet.cpp')
| -rw-r--r-- | src/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index d7c0c0ef5..d11455e38 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1539,7 +1539,7 @@ Value gettransaction(const Array& params, bool fHelp) throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Invalid or non-wallet transaction id"); const CWalletTx& wtx = pwalletMain->mapWallet[hash]; - CAmount nCredit = wtx.GetCredit(filter != 0); + CAmount nCredit = wtx.GetCredit(filter); CAmount nDebit = wtx.GetDebit(filter); CAmount nNet = nCredit - nDebit; CAmount nFee = (wtx.IsFromMe(filter) ? wtx.GetValueOut() - nDebit : 0); |