Skip to content

Commit

Permalink
listtransactions: dont list the stake null tx vtx(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Aug 2, 2018
1 parent c748833 commit 65ac1fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,8 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
entry.push_back(Pair("vout", s.vout));
if (!wtx.IsCoinStake())
entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
else if (s.amount == 0 && s.vout == 0)
continue;
if (fLong)
WalletTxToJSON(wtx, entry);
ret.push_back(entry);
Expand Down

0 comments on commit 65ac1fa

Please sign in to comment.