diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-01-17 17:37:46 +0000 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-02-12 22:07:45 +0000 |
commit | f6122abe03699423faca29035f16f3afc527f4d3 (patch) | |
tree | a71d1af59576a741a86f52b94bde5a9550aea674 /src/interfaces/wallet.cpp | |
parent | 029d28a7aa5619973eb59fe445b9a4186c0c2a58 (diff) |
interfaces: Add remove to Wallet
Diffstat (limited to 'src/interfaces/wallet.cpp')
-rw-r--r-- | src/interfaces/wallet.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 206227b101..5b5430037c 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -468,6 +468,10 @@ public: bool IsWalletFlagSet(uint64_t flag) override { return m_wallet.IsWalletFlagSet(flag); } OutputType getDefaultAddressType() override { return m_wallet.m_default_address_type; } OutputType getDefaultChangeType() override { return m_wallet.m_default_change_type; } + void remove() override + { + RemoveWallet(m_shared_wallet); + } std::unique_ptr<Handler> handleUnload(UnloadFn fn) override { return MakeHandler(m_wallet.NotifyUnload.connect(fn)); |