aboutsummaryrefslogtreecommitdiff
path: root/src/external_signer.cpp
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-04-13 14:55:58 +0800
committerfanquake <fanquake@gmail.com>2021-04-13 20:09:33 +0800
commit54569cc6d6f54788169061004026e62e1c08440e (patch)
tree552c94e798bdb2a5b3b8caeea8feecb6f17eaff2 /src/external_signer.cpp
parentc1f480fb234856a60e9b1f4bf97114bfd9b3d0b0 (diff)
downloadbitcoin-54569cc6d6f54788169061004026e62e1c08440e.tar.xz
refactor: move all signer code inside ENABLE_EXTERNAL_SIGNER #ifdefs
Diffstat (limited to 'src/external_signer.cpp')
-rw-r--r--src/external_signer.cpp6
1 files changed, 3 insertions, 3 deletions
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 <util/system.h>
#include <external_signer.h>
+#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<ExternalSigner>& signers, std::string chain, bool ignore_errors)
{
// Call <command> enumerate
@@ -116,4 +116,4 @@ bool ExternalSigner::SignTransaction(PartiallySignedTransaction& psbtx, std::str
return true;
}
-#endif
+#endif // ENABLE_EXTERNAL_SIGNER