diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 74de55dcb52..6ad75d3d69b 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -732,13 +732,6 @@ public: */ mutable RecursiveMutex cs_wallet; - /** Get database handle used by this wallet. Ideally this function would - * not be necessary. - */ - WalletDatabase& GetDBHandle() - { - return *database; - } WalletDatabase& GetDatabase() const override { return *database; } /** diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index aa3b3c10b08..9ed98184793 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -943,7 +943,7 @@ void MaybeCompactWalletDB() } for (const std::shared_ptr& pwallet : GetWallets()) { - WalletDatabase& dbh = pwallet->GetDBHandle(); + WalletDatabase& dbh = pwallet->GetDatabase(); unsigned int nUpdateCounter = dbh.nUpdateCounter;