Another fix for listtransactions
@@ -1210,13 +1210,13 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
}
// PoS Reward and Amount
- if (wtx.IsCoinStake())
+ if (wtx.IsCoinStake() && nFee !=0)
{
entry.push_back(Pair("amount", ValueFromAmount(r.amount)));
entry.push_back(Pair("reward", ValueFromAmount(-nFee)));
stop = true;
//FortunaStake PoS Reward - D E N A R I U S
- } else if (wtx.IsCoinStake() && ValueFromAmount(-nFee) == 0) {
+ } else if (wtx.IsCoinStake() && nFee == 0) {
entry.push_back(Pair("reward", ValueFromAmount(r.amount)));
stop = true;
}
