mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-08 01:10:43 +02:00
wallet: add displayAddress to interface
This commit is contained in:
@ -121,6 +121,9 @@ public:
|
|||||||
//! Get dest values with prefix.
|
//! Get dest values with prefix.
|
||||||
virtual std::vector<std::string> getDestValues(const std::string& prefix) = 0;
|
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.
|
//! Lock coin.
|
||||||
virtual void lockCoin(const COutPoint& output) = 0;
|
virtual void lockCoin(const COutPoint& output) = 0;
|
||||||
|
|
||||||
|
@ -214,6 +214,11 @@ public:
|
|||||||
LOCK(m_wallet->cs_wallet);
|
LOCK(m_wallet->cs_wallet);
|
||||||
return m_wallet->GetDestValues(prefix);
|
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
|
void lockCoin(const COutPoint& output) override
|
||||||
{
|
{
|
||||||
LOCK(m_wallet->cs_wallet);
|
LOCK(m_wallet->cs_wallet);
|
||||||
|
Reference in New Issue
Block a user