mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-08 11:44:14 +01:00
refactor: Drop redudant CWallet::GetDBHandle
This commit is contained in:
@@ -732,13 +732,6 @@ public:
|
|||||||
*/
|
*/
|
||||||
mutable RecursiveMutex cs_wallet;
|
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; }
|
WalletDatabase& GetDatabase() const override { return *database; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -943,7 +943,7 @@ void MaybeCompactWalletDB()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) {
|
for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) {
|
||||||
WalletDatabase& dbh = pwallet->GetDBHandle();
|
WalletDatabase& dbh = pwallet->GetDatabase();
|
||||||
|
|
||||||
unsigned int nUpdateCounter = dbh.nUpdateCounter;
|
unsigned int nUpdateCounter = dbh.nUpdateCounter;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user