diff --git a/src/evo/providertx.h b/src/evo/providertx.h index 16875e8402..337ac039c7 100644 --- a/src/evo/providertx.h +++ b/src/evo/providertx.h @@ -13,21 +13,13 @@ #include #include #include +#include #include class CBlockIndex; class CCoinsViewCache; class CValidationState; -struct maybe_error{ - bool did_err{false}; - ValidationInvalidReason reason{ValidationInvalidReason::CONSENSUS}; - std::string_view error_str; - - constexpr maybe_error() = default; - constexpr maybe_error(ValidationInvalidReason reasonIn, std::string_view err): did_err(true), reason(reasonIn), error_str(err) {}; -}; - class CProRegTx { public: diff --git a/src/evo/specialtx.h b/src/evo/specialtx.h index f7ea847848..7eb1adaa1d 100644 --- a/src/evo/specialtx.h +++ b/src/evo/specialtx.h @@ -5,14 +5,25 @@ #ifndef BITCOIN_EVO_SPECIALTX_H #define BITCOIN_EVO_SPECIALTX_H +#include #include #include #include #include #include +#include #include +struct maybe_error { + bool did_err{false}; + ValidationInvalidReason reason{ValidationInvalidReason::CONSENSUS}; + std::string_view error_str; + + constexpr maybe_error() = default; + constexpr maybe_error(ValidationInvalidReason reasonIn, std::string_view err): did_err(true), reason(reasonIn), error_str(err) {}; +}; + template inline bool GetTxPayload(const std::vector& payload, T& obj) { diff --git a/src/evo/specialtxman.cpp b/src/evo/specialtxman.cpp index 6f61303472..7a85c790bb 100644 --- a/src/evo/specialtxman.cpp +++ b/src/evo/specialtxman.cpp @@ -2,7 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include +#include #include #include diff --git a/src/evo/specialtxman.h b/src/evo/specialtxman.h index 2980f6dad1..e526a20a90 100644 --- a/src/evo/specialtxman.h +++ b/src/evo/specialtxman.h @@ -13,6 +13,9 @@ class CBlock; class CBlockIndex; class CCoinsViewCache; class CValidationState; +namespace llmq { +class CQuorumBlockProcessor; +} // namespace llmq extern CCriticalSection cs_main;