Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F12944876
D6167.id20362.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
933 B
Subscribers
None
D6167.id20362.diff
View Options
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
Details
Attached
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)
Attached To
D6167: [backport#15195] interfaces: Add remove to Wallet
Event Timeline
Log In to Comment