aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2021-04-13 15:02:10 +0800
committerfanquake <fanquake@gmail.com>2021-04-13 20:09:33 +0800
commitf4652bf1259d5c52ff0d500c732f40ba41256817 (patch)
treea04165b097cff9d19d3fe26ab8d2ef753b31c127
parent54569cc6d6f54788169061004026e62e1c08440e (diff)
downloadbitcoin-f4652bf1259d5c52ff0d500c732f40ba41256817.tar.xz
refactor: add missing includes to external signer code
-rw-r--r--src/external_signer.cpp3
-rw-r--r--src/external_signer.h6
-rw-r--r--src/rpc/external_signer.cpp3
-rw-r--r--src/wallet/external_signer_scriptpubkeyman.cpp7
-rw-r--r--src/wallet/external_signer_scriptpubkeyman.h2
5 files changed, 19 insertions, 2 deletions
diff --git a/src/external_signer.cpp b/src/external_signer.cpp
index be8b06eaba..9278d07f49 100644
--- a/src/external_signer.cpp
+++ b/src/external_signer.cpp
@@ -9,6 +9,9 @@
#include <util/system.h>
#include <external_signer.h>
+#include <string>
+#include <vector>
+
#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) {}
diff --git a/src/external_signer.h b/src/external_signer.h
index 15436213b2..070589dac0 100644
--- a/src/external_signer.h
+++ b/src/external_signer.h
@@ -5,11 +5,13 @@
#ifndef BITCOIN_EXTERNAL_SIGNER_H
#define BITCOIN_EXTERNAL_SIGNER_H
-#include <stdexcept>
-#include <string>
#include <univalue.h>
#include <util/system.h>
+#include <stdexcept>
+#include <string>
+#include <vector>
+
#ifdef ENABLE_EXTERNAL_SIGNER
struct PartiallySignedTransaction;
diff --git a/src/rpc/external_signer.cpp b/src/rpc/external_signer.cpp
index 0f8f197ad8..05d4ce2c91 100644
--- a/src/rpc/external_signer.cpp
+++ b/src/rpc/external_signer.cpp
@@ -9,6 +9,9 @@
#include <util/strencodings.h>
#include <rpc/protocol.h>
+#include <string>
+#include <vector>
+
#ifdef ENABLE_EXTERNAL_SIGNER
static RPCHelpMan enumeratesigners()
diff --git a/src/wallet/external_signer_scriptpubkeyman.cpp b/src/wallet/external_signer_scriptpubkeyman.cpp
index a113c128d7..fe2c810afa 100644
--- a/src/wallet/external_signer_scriptpubkeyman.cpp
+++ b/src/wallet/external_signer_scriptpubkeyman.cpp
@@ -6,6 +6,13 @@
#include <external_signer.h>
#include <wallet/external_signer_scriptpubkeyman.h>
+#include <iostream>
+#include <memory>
+#include <stdexcept>
+#include <string>
+#include <utility>
+#include <vector>
+
#ifdef ENABLE_EXTERNAL_SIGNER
bool ExternalSignerScriptPubKeyMan::SetupDescriptor(std::unique_ptr<Descriptor> desc)
diff --git a/src/wallet/external_signer_scriptpubkeyman.h b/src/wallet/external_signer_scriptpubkeyman.h
index e60d7b8004..1786958912 100644
--- a/src/wallet/external_signer_scriptpubkeyman.h
+++ b/src/wallet/external_signer_scriptpubkeyman.h
@@ -8,6 +8,8 @@
#ifdef ENABLE_EXTERNAL_SIGNER
#include <wallet/scriptpubkeyman.h>
+#include <memory>
+
class ExternalSignerScriptPubKeyMan : public DescriptorScriptPubKeyMan
{
public: