Skip to content

Commit 450cb40

Browse files
committed
wallet: add displayAddress to interface
1 parent eef8d64 commit 450cb40

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

src/wallet/interfaces.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@ class WalletImpl : public Wallet
214214
LOCK(m_wallet->cs_wallet);
215215
return m_wallet->GetDestValues(prefix);
216216
}
217+
bool displayAddress(const CTxDestination& dest) override
218+
{
219+
LOCK(m_wallet->cs_wallet);
220+
return m_wallet->DisplayAddress(dest);
221+
}
217222
void lockCoin(const COutPoint& output) override
218223
{
219224
LOCK(m_wallet->cs_wallet);

0 commit comments

Comments
 (0)