From fad0fafd5aca699cfab7673f8eb18211139aeb18 Mon Sep 17 00:00:00 2001 From: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> Date: Thu, 1 Feb 2024 12:55:38 +0100 Subject: [PATCH] refactor: Fix timedata includes --- src/chain.h | 7 ++++++- src/headerssync.cpp | 2 +- src/net_processing.cpp | 2 +- src/node/miner.cpp | 2 +- src/rpc/mining.cpp | 2 +- src/test/miner_tests.cpp | 1 - src/test/util/setup_common.cpp | 1 - src/test/validation_chainstatemanager_tests.cpp | 1 - src/timedata.h | 3 --- src/validation.cpp | 2 +- 10 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/chain.h b/src/chain.h index f9121fb861..fa165a4aa7 100644 --- a/src/chain.h +++ b/src/chain.h @@ -11,15 +11,20 @@ #include #include #include +#include #include #include #include +#include +#include +#include +#include #include /** * Maximum amount of time that a block timestamp is allowed to exceed the - * current network-adjusted time before the block will be accepted. + * current time before the block will be accepted. */ static constexpr int64_t MAX_FUTURE_BLOCK_TIME = 2 * 60 * 60; diff --git a/src/headerssync.cpp b/src/headerssync.cpp index e1dfe10483..e14de004f5 100644 --- a/src/headerssync.cpp +++ b/src/headerssync.cpp @@ -5,8 +5,8 @@ #include #include #include -#include #include +#include #include // The two constants below are computed using the simulation script in diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 1cf72771b5..c8da927763 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -41,12 +41,12 @@ #include #include #include +#include #include #include #include #include -#include #include #include #include diff --git a/src/node/miner.cpp b/src/node/miner.cpp index 89498fb976..87f40e993f 100644 --- a/src/node/miner.cpp +++ b/src/node/miner.cpp @@ -20,8 +20,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 4050cb1996..f1abfb6396 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -27,11 +27,11 @@ #include