diff options
| author | João Barbosa <[email protected]> | 2018-04-17 18:22:23 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-04-18 22:07:33 +0100 |
| commit | 373aee26c3df233f4e0a7e806f45ac7cb5aab1e6 (patch) | |
| tree | 9594af3ef3b909ff0c70bb73917785b460308d67 /src/wallet/walletdb.cpp | |
| parent | refactor: Drop CWalletRef typedef (diff) | |
| download | discoin-373aee26c3df233f4e0a7e806f45ac7cb5aab1e6.tar.xz discoin-373aee26c3df233f4e0a7e806f45ac7cb5aab1e6.zip | |
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).
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -rw-r--r-- | src/wallet/walletdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 0e8a12ee9..5b275131a 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -756,7 +756,7 @@ void MaybeCompactWalletDB() return; } - for (CWallet* pwallet : vpwallets) { + for (CWallet* pwallet : GetWallets()) { WalletDatabase& dbh = pwallet->GetDBHandle(); unsigned int nUpdateCounter = dbh.nUpdateCounter; |