aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-03-27 14:56:18 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-04-05 21:18:26 -0400
commit198fd7b0bd5a99db4e45009c422a66c0b1285767 (patch)
tree9656b3f9577f8516d12e965f6e1f4d5bc679be0a /main.h
parent0a4cb8697645b61f781421aa10cf3f7841f776e5 (diff)
downloadbitcoin-198fd7b0bd5a99db4e45009c422a66c0b1285767.tar.xz
Report immature coinbase transactions in listtransactions
Report coin generation transactions as 'category':'immature' until they have 120 confirmations (when they are reported as 'category':'generate', as before). If the block they are in is not part of the main chain (you lost a 'block race'), then they are reported as 'category':'orphan' (with 0 confirmations).
Diffstat (limited to 'main.h')
-rw-r--r--main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.h b/main.h
index e9d0c00310..54f4a6b49b 100644
--- a/main.h
+++ b/main.h
@@ -882,7 +882,7 @@ public:
return nChangeCached;
}
- void GetAmounts(int64& nGenerated, list<pair<string /* address */, int64> >& listReceived,
+ void GetAmounts(int64& nGeneratedImmature, int64& nGeneratedMature, list<pair<string /* address */, int64> >& listReceived,
list<pair<string /* address */, int64> >& listSent, int64& nFee, string& strSentAccount) const;
void GetAccountAmounts(const string& strAccount, int64& nGenerated, int64& nReceived,