Page MenuHomePhabricator

D6167.id20362.diff
No OneTemporary

D6167.id20362.diff

diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h
--- a/src/interfaces/wallet.h
+++ b/src/interfaces/wallet.h
@@ -234,6 +234,9 @@
// Get default change type.
virtual OutputType getDefaultChangeType() = 0;
+ // Remove wallet.
+ virtual void remove() = 0;
+
//! Register handler for unload message.
using UnloadFn = std::function<void()>;
virtual std::unique_ptr<Handler> handleUnload(UnloadFn fn) = 0;
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp
--- a/src/interfaces/wallet.cpp
+++ b/src/interfaces/wallet.cpp
@@ -441,6 +441,7 @@
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));
}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 6, 15:49 (16 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5082638
Default Alt Text
D6167.id20362.diff (933 B)

Event Timeline