From 9c7722b7c5ce49130bd978b932f73b629ce5cebe Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Sun, 27 May 2012 23:06:09 +0000 Subject: Store a fixed order of transactions (and accounting) in the wallet For backward compatibility, new accounting data is stored after a \0 in the comment string. This way, old versions and third-party software should load and store them, but all actual use (listtransactions, for example) ignores it. --- src/wallet.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/wallet.cpp') diff --git a/src/wallet.cpp b/src/wallet.cpp index 821b8851a..3d380c827 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -336,7 +336,10 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) wtx.BindWallet(this); bool fInsertedNew = ret.second; if (fInsertedNew) + { wtx.nTimeReceived = GetAdjustedTime(); + wtx.nOrderPos = nOrderPosNext++; + } bool fUpdated = false; if (!fInsertedNew) -- cgit v1.2.3