mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
wallet: refactor GetNewDestination, use BResult
This commit is contained in:
@@ -146,11 +146,10 @@ public:
|
||||
void abortRescan() override { m_wallet->AbortRescan(); }
|
||||
bool backupWallet(const std::string& filename) override { return m_wallet->BackupWallet(filename); }
|
||||
std::string getWalletName() override { return m_wallet->GetName(); }
|
||||
bool getNewDestination(const OutputType type, const std::string label, CTxDestination& dest) override
|
||||
BResult<CTxDestination> getNewDestination(const OutputType type, const std::string label) override
|
||||
{
|
||||
LOCK(m_wallet->cs_wallet);
|
||||
bilingual_str error;
|
||||
return m_wallet->GetNewDestination(type, label, dest, error);
|
||||
return m_wallet->GetNewDestination(type, label);
|
||||
}
|
||||
bool getPubKey(const CScript& script, const CKeyID& address, CPubKey& pub_key) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user