Skip to content

Commit

Permalink
wallet: add displayAddress to interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed May 27, 2021
1 parent eef8d64 commit 450cb40
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/interfaces/wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ class Wallet
//! 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;

Expand Down
5 changes: 5 additions & 0 deletions src/wallet/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 450cb40

Please sign in to comment.