• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

monacoinのフォークのテスト


Commit MetaInfo

修订版5ac49c81884016689a3da0a1ccadd3021b5fe5e3 (tree)
时间2014-04-07 02:17:01
作者monacoinproject <monacoinproject@gmai...>
Commitermonacoinproject

Log Message

Remove "conflicted" as transaction category.

We were losing information about sent/received by overriding the
category in case of a conflicted transaction.

Hence, remove the "conflicted" category.

Conflicted status of a transaction can still be determined by looking
for confirmations<0.

更改概述

差异

--- a/src/rpcwallet.cpp
+++ b/src/rpcwallet.cpp
@@ -1002,10 +1002,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
10021002 Object entry;
10031003 entry.push_back(Pair("account", strSentAccount));
10041004 MaybePushAddress(entry, s.first);
1005- if (wtx.GetDepthInMainChain() < 0)
1006- entry.push_back(Pair("category", "conflicted"));
1007- else
1008- entry.push_back(Pair("category", "send"));
1005+ entry.push_back(Pair("category", "send"));
10091006 entry.push_back(Pair("amount", ValueFromAmount(-s.second)));
10101007 entry.push_back(Pair("fee", ValueFromAmount(-nFee)));
10111008 if (fLong)
@@ -1038,10 +1035,7 @@ void ListTransactions(const CWalletTx& wtx, const string& strAccount, int nMinDe
10381035 }
10391036 else
10401037 {
1041- if (wtx.GetDepthInMainChain() < 0)
1042- entry.push_back(Pair("category", "conflicted"));
1043- else
1044- entry.push_back(Pair("category", "receive"));
1038+ entry.push_back(Pair("category", "receive"));
10451039 }
10461040 entry.push_back(Pair("amount", ValueFromAmount(r.second)));
10471041 if (fLong)