File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,10 @@ class WalletImpl : public Wallet
468
468
bool IsWalletFlagSet (uint64_t flag) override { return m_wallet.IsWalletFlagSet (flag); }
469
469
OutputType getDefaultAddressType () override { return m_wallet.m_default_address_type ; }
470
470
OutputType getDefaultChangeType () override { return m_wallet.m_default_change_type ; }
471
+ void remove () override
472
+ {
473
+ RemoveWallet (m_shared_wallet);
474
+ }
471
475
std::unique_ptr<Handler> handleUnload (UnloadFn fn) override
472
476
{
473
477
return MakeHandler (m_wallet.NotifyUnload .connect (fn));
Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ class Wallet
247
247
// Get default change type.
248
248
virtual OutputType getDefaultChangeType () = 0;
249
249
250
+ // Remove wallet.
251
+ virtual void remove () = 0;
252
+
250
253
// ! Register handler for unload message.
251
254
using UnloadFn = std::function<void ()>;
252
255
virtual std::unique_ptr<Handler> handleUnload (UnloadFn fn) = 0;
You can’t perform that action at this time.
0 commit comments