0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

wallet: add displayAddress to interface

This commit is contained in:
Sjors Provoost 2019-09-16 19:00:55 +02:00
parent eef8d64529
commit 450cb40a34
No known key found for this signature in database
GPG key ID: 57FF9BDBCC301009
2 changed files with 8 additions and 0 deletions

View file

@ -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;

View file

@ -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);