Skip to content

Commit aaa4e5a

Browse files
committed
wallet: remove CWallet::GetExternalSigner()
1 parent 06a0673 commit aaa4e5a

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3594,19 +3594,6 @@ void ReserveDestination::ReturnDestination()
35943594
address = CNoDestination();
35953595
}
35963596

3597-
#ifdef ENABLE_EXTERNAL_SIGNER
3598-
ExternalSigner CWallet::GetExternalSigner()
3599-
{
3600-
const std::string command = gArgs.GetArg("-signer", "");
3601-
if (command == "") throw std::runtime_error(std::string(__func__) + ": restart bitcoind with -signer=<cmd>");
3602-
std::vector<ExternalSigner> signers;
3603-
ExternalSigner::Enumerate(command, signers, Params().NetworkIDString());
3604-
if (signers.empty()) throw std::runtime_error(std::string(__func__) + ": No external signers found");
3605-
// TODO: add fingerprint argument in case of multiple signers
3606-
return signers[0];
3607-
}
3608-
#endif
3609-
36103597
bool CWallet::DisplayAddress(const CTxDestination& dest)
36113598
{
36123599
#ifdef ENABLE_EXTERNAL_SIGNER
@@ -3619,7 +3606,7 @@ bool CWallet::DisplayAddress(const CTxDestination& dest)
36193606
if (signer_spk_man == nullptr) {
36203607
return false;
36213608
}
3622-
ExternalSigner signer = GetExternalSigner(); // TODO: move signer in spk_man
3609+
ExternalSigner signer = ExternalSignerScriptPubKeyMan::GetExternalSigner();
36233610
return signer_spk_man->DisplayAddress(scriptPubKey, signer);
36243611
#else
36253612
return false;

src/wallet/wallet.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,9 +845,6 @@ class CWallet final : public WalletStorage, public interfaces::Chain::Notificati
845845

846846
std::vector<OutputGroup> GroupOutputs(const std::vector<COutput>& outputs, bool separate_coins, const CFeeRate& effective_feerate, const CFeeRate& long_term_feerate, const CoinEligibilityFilter& filter, bool positive_only) const;
847847

848-
#ifdef ENABLE_EXTERNAL_SIGNER
849-
ExternalSigner GetExternalSigner() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
850-
#endif
851848
/** Display address on an external signer. Returns false if external signer support is not compiled */
852849
bool DisplayAddress(const CTxDestination& dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
853850

0 commit comments

Comments
 (0)