diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-19 14:05:01 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-19 14:12:14 +0200 |
commit | fa869ce2c2b906d8b087c4e7a5f1804a74b1c522 (patch) | |
tree | 00c82ada63af578381b0b0057d1814a129d7ec60 | |
parent | 948f5ba6363fcc64f95fed3f04dbda3d50d61827 (diff) |
Add missing includes to node/chainstate
This is needed for the next commit
-rwxr-xr-x | ci/test/06_script_b.sh | 1 | ||||
-rw-r--r-- | src/node/chainstate.cpp | 13 | ||||
-rw-r--r-- | src/node/chainstate.h | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/ci/test/06_script_b.sh b/ci/test/06_script_b.sh index 77358f93d9..b68bfe5cf1 100755 --- a/ci/test/06_script_b.sh +++ b/ci/test/06_script_b.sh @@ -42,6 +42,7 @@ if [ "${RUN_TIDY}" = "true" ]; then " src/compat"\ " src/init"\ " src/kernel/mempool_persist.cpp"\ + " src/node/chainstate.cpp"\ " src/policy/feerate.cpp"\ " src/policy/packages.cpp"\ " src/policy/settings.cpp"\ diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index 54ba5b7966..60a60f8665 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -4,10 +4,23 @@ #include <node/chainstate.h> +#include <chain.h> +#include <coins.h> #include <consensus/params.h> #include <node/blockstorage.h> +#include <sync.h> +#include <threadsafety.h> +#include <txdb.h> +#include <uint256.h> +#include <util/time.h> #include <validation.h> +#include <algorithm> +#include <atomic> +#include <cassert> +#include <memory> +#include <vector> + namespace node { std::optional<ChainstateLoadingError> LoadChainstate(bool fReset, ChainstateManager& chainman, diff --git a/src/node/chainstate.h b/src/node/chainstate.h index ff7935e8e0..5c495da229 100644 --- a/src/node/chainstate.h +++ b/src/node/chainstate.h @@ -11,9 +11,6 @@ class ChainstateManager; class CTxMemPool; -namespace Consensus { -struct Params; -} // namespace Consensus namespace node { enum class ChainstateLoadingError { |