Skip to content

Commit b36fd6b

Browse files
committed
Add displayAddress to wallet interface
1 parent d244c2a commit b36fd6b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/interfaces/wallet.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ class WalletImpl : public Wallet
203203
LOCK(m_wallet->cs_wallet);
204204
return m_wallet->GetDestValues(prefix);
205205
}
206+
bool displayAddress(const CTxDestination& dest) override
207+
{
208+
LOCK(m_wallet->cs_wallet);
209+
return m_wallet->DisplayAddress(dest);
210+
}
206211
void lockCoin(const COutPoint& output) override
207212
{
208213
LOCK(m_wallet->cs_wallet);

src/interfaces/wallet.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ class Wallet
121121
//! Get dest values with prefix.
122122
virtual std::vector<std::string> getDestValues(const std::string& prefix) = 0;
123123

124+
//! Display address on external signer
125+
virtual bool displayAddress(const CTxDestination& dest) = 0;
126+
124127
//! Lock coin.
125128
virtual void lockCoin(const COutPoint& output) = 0;
126129

0 commit comments

Comments
 (0)