Skip to content

Commit 021feb3

Browse files
committed
refactor: Drop redudant CWallet::GetDBHandle
1 parent 7e37329 commit 021feb3

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/wallet/wallet.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -732,13 +732,6 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
732732
*/
733733
mutable RecursiveMutex cs_wallet;
734734

735-
/** Get database handle used by this wallet. Ideally this function would
736-
* not be necessary.
737-
*/
738-
WalletDatabase& GetDBHandle()
739-
{
740-
return *database;
741-
}
742735
WalletDatabase& GetDatabase() const override { return *database; }
743736

744737
/**

src/wallet/walletdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ void MaybeCompactWalletDB()
943943
}
944944

945945
for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) {
946-
WalletDatabase& dbh = pwallet->GetDBHandle();
946+
WalletDatabase& dbh = pwallet->GetDatabase();
947947

948948
unsigned int nUpdateCounter = dbh.nUpdateCounter;
949949

0 commit comments

Comments
 (0)