mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-13 00:28:03 +00:00
Merge pull request #3720
b96f6a7
Remove "conflicted" as transaction category. (Wladimir J. van der Laan)
This commit is contained in:
commit
39fae6cfdd
@ -1114,9 +1114,6 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
|
|||||||
Object entry;
|
Object entry;
|
||||||
entry.push_back(Pair("account", strSentAccount));
|
entry.push_back(Pair("account", strSentAccount));
|
||||||
MaybePushAddress(entry, s.first);
|
MaybePushAddress(entry, s.first);
|
||||||
if (wtx.GetDepthInMainChain() < 0)
|
|
||||||
entry.push_back(Pair("category", "conflicted"));
|
|
||||||
else
|
|
||||||
entry.push_back(Pair("category", "send"));
|
entry.push_back(Pair("category", "send"));
|
||||||
entry.push_back(Pair("amount", ValueFromAmount(-s.second)));
|
entry.push_back(Pair("amount", ValueFromAmount(-s.second)));
|
||||||
entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
|
entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
|
||||||
@ -1150,9 +1147,6 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (wtx.GetDepthInMainChain() < 0)
|
|
||||||
entry.push_back(Pair("category", "conflicted"));
|
|
||||||
else
|
|
||||||
entry.push_back(Pair("category", "receive"));
|
entry.push_back(Pair("category", "receive"));
|
||||||
}
|
}
|
||||||
entry.push_back(Pair("amount", ValueFromAmount(r.second)));
|
entry.push_back(Pair("amount", ValueFromAmount(r.second)));
|
||||||
|
Loading…
Reference in New Issue
Block a user