mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-27 07:18:33 +02: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