mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 03:03:58 +01:00
wallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets
With these new functions all vpwallets usage are removed and vpwallets is now a static variable (no external linkage).
This commit is contained in:
@@ -756,7 +756,7 @@ void MaybeCompactWalletDB()
|
||||
return;
|
||||
}
|
||||
|
||||
for (CWallet* pwallet : vpwallets) {
|
||||
for (CWallet* pwallet : GetWallets()) {
|
||||
WalletDatabase& dbh = pwallet->GetDBHandle();
|
||||
|
||||
unsigned int nUpdateCounter = dbh.nUpdateCounter;
|
||||
|
||||
Reference in New Issue
Block a user