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:
parent
eef8d64529
commit
450cb40a34
2 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue