aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Yanofsky <[email protected]>2016-12-12 11:40:00 -0500
committerRussell Yanofsky <[email protected]>2016-12-12 11:40:00 -0500
commit654e0443fb240ca403ee2fc8cbccf3c74d53ef77 (patch)
treec0dbdeb127292dc7f08cf846f93bc630ce288c43 /src
parentMerge #9309: [qa] Wallet needs to stay unlocked for whole test (diff)
downloaddiscoin-654e0443fb240ca403ee2fc8cbccf3c74d53ef77.tar.xz
discoin-654e0443fb240ca403ee2fc8cbccf3c74d53ef77.zip
[trivial] Add comment documenting CWalletTx::mapValue
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h
index f7103b6a8..36f7cd47b 100644
--- a/src/wallet/wallet.h
+++ b/src/wallet/wallet.h
@@ -248,6 +248,31 @@ private:
const CWallet* pwallet;
public:
+ /**
+ * Key/value map with information about the transaction.
+ *
+ * The following keys can be read and written through the map and are
+ * serialized in the wallet database:
+ *
+ * "comment", "to" - comment strings provided to sendtoaddress,
+ * sendfrom, sendmany wallet RPCs
+ * "from", "message" - obsolete fields that could be set in UI prior to
+ * 2011 (removed in commit 4d9b223)
+ *
+ * The following keys are serialized in the wallet database, but shouldn't
+ * be read or written through the map (they will be temporarily added and
+ * removed from the map during serialization):
+ *
+ * "fromaccount" - serialized strFromAccount value
+ * "n" - serialized nOrderPos value
+ * "timesmart" - serialized nTimeSmart value
+ * "spent" - serialized vfSpent value that existed prior to
+ * 2014 (removed in commit 93a18a3)
+ *
+ * A mapValue.erase("version") statement also appears in the code,
+ * originating from commit 865c3a2 in 2010, but it does not appear that any
+ * "version" entries were actually ever created by any version of bitcoin.
+ */
mapValue_t mapValue;
std::vector<std::pair<std::string, std::string> > vOrderForm;
unsigned int fTimeReceivedIsTxTime;