Skip to content

Commit

Permalink
Merge pull request #43 from Bushstar/master
Browse files Browse the repository at this point in the history
IsCoinStake check "staked"
  • Loading branch information
Jenova7 committed May 21, 2019
2 parents 7a619f2 + e23637d commit 81cec8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
else
entry.push_back(Pair("category", "generate"));
} else {
entry.push_back(Pair("category", pwalletMain->IsMine(wtx.vout[1]) ? "staked" : "receive"));
entry.push_back(Pair("category", wtx.IsCoinStake() && pwalletMain->IsMine(wtx.vout[1]) ? "staked" : "receive"));
}
entry.push_back(Pair("amount", ValueFromAmount(r.amount)));
entry.push_back(Pair("vout", r.vout));
Expand Down

0 comments on commit 81cec8d

Please sign in to comment.