From 373aee26c3df233f4e0a7e806f45ac7cb5aab1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Tue, 17 Apr 2018 18:22:23 +0100 Subject: 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). --- src/interfaces/node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/node.cpp') diff --git a/src/interfaces/node.cpp b/src/interfaces/node.cpp index 6d49117de..c8ffca02c 100644 --- a/src/interfaces/node.cpp +++ b/src/interfaces/node.cpp @@ -239,7 +239,7 @@ class NodeImpl : public Node { #ifdef ENABLE_WALLET std::vector> wallets; - for (CWallet* wallet : ::vpwallets) { + for (CWallet* wallet : GetWallets()) { wallets.emplace_back(MakeWallet(*wallet)); } return wallets; -- cgit v1.2.3