@@ -21,19 +21,17 @@ const std::string ExternalSigner::NetworkArg() const
21
21
return " --chain " + m_chain;
22
22
}
23
23
24
- bool ExternalSigner::Enumerate (const std::string& command, std::vector<ExternalSigner>& signers, std::string chain, bool ignore_errors )
24
+ bool ExternalSigner::Enumerate (const std::string& command, std::vector<ExternalSigner>& signers, std::string chain)
25
25
{
26
26
// Call <command> enumerate
27
27
const UniValue result = RunCommandParseJSON (command + " enumerate" );
28
28
if (!result.isArray ()) {
29
- if (ignore_errors) return false ;
30
29
throw ExternalSignerException (strprintf (" '%s' received invalid response, expected array of signers" , command));
31
30
}
32
31
for (UniValue signer : result.getValues ()) {
33
32
// Check for error
34
33
const UniValue& error = find_value (signer, " error" );
35
34
if (!error.isNull ()) {
36
- if (ignore_errors) return false ;
37
35
if (!error.isStr ()) {
38
36
throw ExternalSignerException (strprintf (" '%s' error" , command));
39
37
}
@@ -42,7 +40,6 @@ bool ExternalSigner::Enumerate(const std::string& command, std::vector<ExternalS
42
40
// Check if fingerprint is present
43
41
const UniValue& fingerprint = find_value (signer, " fingerprint" );
44
42
if (fingerprint.isNull ()) {
45
- if (ignore_errors) return false ;
46
43
throw ExternalSignerException (strprintf (" '%s' received invalid response, missing signer fingerprint" , command));
47
44
}
48
45
std::string fingerprintStr = fingerprint.get_str ();
0 commit comments