From 450cb40a344605dda3bcc39495c35869580b9fc2 Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Mon, 16 Sep 2019 19:00:55 +0200 Subject: [PATCH] wallet: add displayAddress to interface --- src/interfaces/wallet.h | 3 +++ src/wallet/interfaces.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 6ccfd7fc205..988e59b65a0 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -121,6 +121,9 @@ class Wallet //! Get dest values with prefix. virtual std::vector 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 64ce09d1d12..bc39450eb39 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -214,6 +214,11 @@ class WalletImpl : public Wallet 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);