wallet: add displayAddress to interface

This commit is contained in:
Sjors Provoost committed 2021-05-27 14:01:54 +02:00
1 parent eef8d64529
commit 450cb40a34
2 files changed
+8

No files matched your search

+3
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;
+5
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);