diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-04-23 07:58:41 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-04-23 07:59:02 +0200 |
| commit | 65d7083f152e480b20235a65109ed009e840b18d (patch) | |
| tree | 395fe22dbda70681be9da8dc5fa74c8bd13a533c /src/interfaces/node.cpp | |
| parent | Merge #12998: Default to defining endian-conversion DECLs in compat w/o config (diff) | |
| parent | wallet: Add HasWallets (diff) | |
| download | discoin-65d7083f152e480b20235a65109ed009e840b18d.tar.xz discoin-65d7083f152e480b20235a65109ed009e840b18d.zip | |
Merge #13017: Add wallets management functions
3c058fd wallet: Add HasWallets (João Barbosa)
373aee2 wallet: Add AddWallet, RemoveWallet, GetWallet and GetWallets (João Barbosa)
6efd964 refactor: Drop CWalletRef typedef (João Barbosa)
Pull request description:
This is a small step towards dynamic wallet load/unload. The wallets *registry* `vpwallets` is used in several places. With these new functions all `vpwallets` usage are removed and `vpwallets` is now a static variable (no external linkage).
The typedef `CWalletRef` is also removed as it is narrowly used.
Tree-SHA512: 2ea19da2e17b521ad678bfe10f3257e497ccaf7ab9fd0b6647f9d829f1d6131cfa68db8e8492421711c6da399859432b963a568bdd4ca40a77dd95b597839423
Diffstat (limited to 'src/interfaces/node.cpp')
| -rw-r--r-- | src/interfaces/node.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index ddd5496a8..e55cba3c6 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -236,7 +236,7 @@ class NodeImpl : public Node { #ifdef ENABLE_WALLET std::vector<std::unique_ptr<Wallet>> wallets; - for (CWalletRef wallet : ::vpwallets) { + for (CWallet* wallet : GetWallets()) { wallets.emplace_back(MakeWallet(*wallet)); } return wallets; |