From 54569cc6d6f54788169061004026e62e1c08440e Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 13 Apr 2021 14:55:58 +0800 Subject: refactor: move all signer code inside ENABLE_EXTERNAL_SIGNER #ifdefs --- src/external_signer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/external_signer.cpp') diff --git a/src/external_signer.cpp b/src/external_signer.cpp index b82dcc503d..be8b06eaba 100644 --- a/src/external_signer.cpp +++ b/src/external_signer.cpp @@ -9,6 +9,8 @@ #include #include +#ifdef ENABLE_EXTERNAL_SIGNER + ExternalSigner::ExternalSigner(const std::string& command, const std::string& fingerprint, std::string chain, std::string name): m_command(command), m_fingerprint(fingerprint), m_chain(chain), m_name(name) {} const std::string ExternalSigner::NetworkArg() const @@ -16,8 +18,6 @@ const std::string ExternalSigner::NetworkArg() const return " --chain " + m_chain; } -#ifdef ENABLE_EXTERNAL_SIGNER - bool ExternalSigner::Enumerate(const std::string& command, std::vector& signers, std::string chain, bool ignore_errors) { // Call enumerate @@ -116,4 +116,4 @@ bool ExternalSigner::SignTransaction(PartiallySignedTransaction& psbtx, std::str return true; } -#endif +#endif // ENABLE_EXTERNAL_SIGNER -- cgit v1.2.3