diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1209,8 +1209,6 @@ std::string fromAccount, CReserveKey &reservekey, CConnman *connman, CValidationState &state); - bool AddAccountingEntry(const CAccountingEntry &); - bool AddAccountingEntry(const CAccountingEntry &, WalletBatch *batch); bool DummySignTx(CMutableTransaction &txNew, const std::set &txouts, bool use_max_sig = false) const { std::vector v_txouts(txouts.size()); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3482,25 +3482,6 @@ return true; } -bool CWallet::AddAccountingEntry(const CAccountingEntry &acentry) { - WalletBatch batch(*database); - - return AddAccountingEntry(acentry, &batch); -} - -bool CWallet::AddAccountingEntry(const CAccountingEntry &acentry, - WalletBatch *batch) { - if (!batch->WriteAccountingEntry(++nAccountingEntryNumber, acentry)) { - return false; - } - - laccentries.push_back(acentry); - CAccountingEntry &entry = laccentries.back(); - wtxOrdered.insert(std::make_pair(entry.nOrderPos, TxPair(nullptr, &entry))); - - return true; -} - DBErrors CWallet::LoadWallet(bool &fFirstRunRet) { auto locked_chain = chain().lock(); LOCK(cs_wallet);