aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2017-03-09 20:11:36 +0000
committerLuke Dashjr <[email protected]>2017-06-05 21:04:42 +0000
commit23fb9adaea01c7baece6e1269e65713571088c5f (patch)
treea5d502424da92afc409064d65627fcacc6cb8d20 /src/wallet/wallet.cpp
parentBugfix: wallet: Increment "update counter" when modifying account stuff (diff)
downloaddiscoin-23fb9adaea01c7baece6e1269e65713571088c5f.tar.xz
discoin-23fb9adaea01c7baece6e1269e65713571088c5f.zip
wallet: Move nAccountingEntryNumber from static/global to CWallet
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 3e000d2a9..547daf5c6 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2871,7 +2871,7 @@ bool CWallet::AddAccountingEntry(const CAccountingEntry& acentry)
bool CWallet::AddAccountingEntry(const CAccountingEntry& acentry, CWalletDB *pwalletdb)
{
- if (!pwalletdb->WriteAccountingEntry_Backend(acentry))
+ if (!pwalletdb->WriteAccountingEntry(++nAccountingEntryNumber, acentry))
return false;
laccentries.push_back(acentry);