Skip to content

Commit f6122ab

Browse files
committed
interfaces: Add remove to Wallet
1 parent 029d28a commit f6122ab

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/interfaces/wallet.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,10 @@ class WalletImpl : public Wallet
468468
bool IsWalletFlagSet(uint64_t flag) override { return m_wallet.IsWalletFlagSet(flag); }
469469
OutputType getDefaultAddressType() override { return m_wallet.m_default_address_type; }
470470
OutputType getDefaultChangeType() override { return m_wallet.m_default_change_type; }
471+
void remove() override
472+
{
473+
RemoveWallet(m_shared_wallet);
474+
}
471475
std::unique_ptr<Handler> handleUnload(UnloadFn fn) override
472476
{
473477
return MakeHandler(m_wallet.NotifyUnload.connect(fn));

src/interfaces/wallet.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ class Wallet
247247
// Get default change type.
248248
virtual OutputType getDefaultChangeType() = 0;
249249

250+
// Remove wallet.
251+
virtual void remove() = 0;
252+
250253
//! Register handler for unload message.
251254
using UnloadFn = std::function<void()>;
252255
virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;

0 commit comments

Comments
 (0)