wallet: Move nAccountingEntryNumber from static/global to CWallet

This commit is contained in:
Luke Dashjr
2017-03-09 20:11:36 +00:00
parent 9d15d5548d
commit 23fb9adaea
4 changed files with 6 additions and 11 deletions

View File

@@ -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);