aboutsummaryrefslogtreecommitdiff
path: root/src/external_signer.h
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.h
parentc1f480fb234856a60e9b1f4bf97114bfd9b3d0b0 (diff)
downloadbitcoin-54569cc6d6f54788169061004026e62e1c08440e.tar.xz
refactor: move all signer code inside ENABLE_EXTERNAL_SIGNER #ifdefs
Diffstat (limited to 'src/external_signer.h')
-rw-r--r--src/external_signer.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/external_signer.h b/src/external_signer.h
index 17428ba2f9..15436213b2 100644
--- a/src/external_signer.h
+++ b/src/external_signer.h
@@ -10,6 +10,8 @@
#include <univalue.h>
#include <util/system.h>
+#ifdef ENABLE_EXTERNAL_SIGNER
+
struct PartiallySignedTransaction;
class ExternalSignerException : public std::runtime_error {
@@ -43,7 +45,6 @@ public:
const std::string NetworkArg() const;
-#ifdef ENABLE_EXTERNAL_SIGNER
//! Obtain a list of signers. Calls `<command> enumerate`.
//! @param[in] command the command which handles interaction with the external signer
//! @param[in,out] signers vector to which new signers (with a unique master key fingerprint) are added
@@ -66,8 +67,8 @@ public:
//! Calls `<command> signtransaction` and passes the PSBT via stdin.
//! @param[in,out] psbt PartiallySignedTransaction to be signed
bool SignTransaction(PartiallySignedTransaction& psbt, std::string& error);
-
-#endif
};
+#endif // ENABLE_EXTERNAL_SIGNER
+
#endif // BITCOIN_EXTERNAL_SIGNER_H