mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
wallet: Move nAccountingEntryNumber from static/global to CWallet
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user