aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSjors Provoost <sjors@sprovoost.nl>2019-09-16 19:00:55 +0200
committerSjors Provoost <sjors@sprovoost.nl>2021-05-27 14:01:54 +0200
commit450cb40a344605dda3bcc39495c35869580b9fc2 (patch)
treed88a64c0ca21bbad8d0506edad90b19b9e4c4702 /src
parenteef8d6452962cd4a8956d9ad268164715365b9ab (diff)
wallet: add displayAddress to interface
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/wallet.h3
-rw-r--r--src/wallet/interfaces.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h
index 6ccfd7fc20..988e59b65a 100644
--- a/src/interfaces/wallet.h
+++ b/src/interfaces/wallet.h
@@ -121,6 +121,9 @@ public:
//! Get dest values with prefix.
virtual std::vector<std::string> getDestValues(const std::string& prefix) = 0;
+ //! Display address on external signer
+ virtual bool displayAddress(const CTxDestination& dest) = 0;
+
//! Lock coin.
virtual void lockCoin(const COutPoint& output) = 0;
diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp
index 64ce09d1d1..bc39450eb3 100644
--- a/src/wallet/interfaces.cpp
+++ b/src/wallet/interfaces.cpp
@@ -214,6 +214,11 @@ public:
LOCK(m_wallet->cs_wallet);
return m_wallet->GetDestValues(prefix);
}
+ bool displayAddress(const CTxDestination& dest) override
+ {
+ LOCK(m_wallet->cs_wallet);
+ return m_wallet->DisplayAddress(dest);
+ }
void lockCoin(const COutPoint& output) override
{
LOCK(m_wallet->cs_wallet);