@@ -256,6 +256,31 @@ class CWalletTx : public CMerkleTx
256
256
const CWallet* pwallet;
257
257
258
258
public:
259
+ /* *
260
+ * Key/value map with information about the transaction.
261
+ *
262
+ * The following keys can be read and written through the map and are
263
+ * serialized in the wallet database:
264
+ *
265
+ * "comment", "to" - comment strings provided to sendtoaddress,
266
+ * sendfrom, sendmany wallet RPCs
267
+ * "replaces_txid" - txid (as HexStr) of transaction replaced by
268
+ * bumpfee on transaction created by bumpfee
269
+ * "replaced_by_txid" - txid (as HexStr) of transaction created by
270
+ * bumpfee on transaction replaced by bumpfee
271
+ * "from", "message" - obsolete fields that could be set in UI prior to
272
+ * 2011 (removed in commit 4d9b223)
273
+ *
274
+ * The following keys are serialized in the wallet database, but shouldn't
275
+ * be read or written through the map (they will be temporarily added and
276
+ * removed from the map during serialization):
277
+ *
278
+ * "fromaccount" - serialized strFromAccount value
279
+ * "n" - serialized nOrderPos value
280
+ * "timesmart" - serialized nTimeSmart value
281
+ * "spent" - serialized vfSpent value that existed prior to
282
+ * 2014 (removed in commit 93a18a3)
283
+ */
259
284
mapValue_t mapValue;
260
285
std::vector<std::pair<std::string, std::string> > vOrderForm;
261
286
unsigned int fTimeReceivedIsTxTime ;
@@ -369,7 +394,6 @@ class CWalletTx : public CMerkleTx
369
394
}
370
395
371
396
mapValue.erase (" fromaccount" );
372
- mapValue.erase (" version" );
373
397
mapValue.erase (" spent" );
374
398
mapValue.erase (" n" );
375
399
mapValue.erase (" timesmart" );
0 commit comments