diff options
| author | Luke Dashjr <[email protected]> | 2017-03-09 20:11:36 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2017-06-05 21:04:42 +0000 |
| commit | 23fb9adaea01c7baece6e1269e65713571088c5f (patch) | |
| tree | a5d502424da92afc409064d65627fcacc6cb8d20 /src/wallet/wallet.cpp | |
| parent | Bugfix: wallet: Increment "update counter" when modifying account stuff (diff) | |
| download | discoin-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.cpp | 2 |
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); |