From 7d8602103afed3836096c7c1cecd9c41eb40d3ef Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Sat, 28 Dec 2024 08:13:30 +0000 Subject: [PATCH] refactor: trim some unused headers, group Dash-specific headers together --- src/init.cpp | 38 +++++++++---------------- src/test/util/setup_common.cpp | 27 ++++++++---------- src/validation.cpp | 7 +---- test/lint/lint-circular-dependencies.py | 3 -- 4 files changed, 26 insertions(+), 49 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 39f5b1bcc59a33..9275ff51ca3317 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -71,43 +71,35 @@ #include #include #include - #include +#include -#include +#include #include #include -#ifdef ENABLE_WALLET -#include -#include -#endif // ENABLE_WALLET #include #include +#include #include #include +#include +#include +#include +#include #include +#include #include #include #include #include #include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - #include +#ifdef ENABLE_WALLET +#include +#include +#endif // ENABLE_WALLET + #include #include #include @@ -121,8 +113,6 @@ #include #include -#include - #ifndef WIN32 #include #include @@ -334,8 +324,6 @@ void PrepareShutdown(NodeContext& node) } DashChainstateSetupClose(node.chain_helper, node.cpoolman, node.dmnman, node.mnhf_manager, node.llmq_ctx, Assert(node.mempool.get())); - node.mnhf_manager.reset(); - node.evodb.reset(); } for (const auto& client : node.chain_clients) { client->stop(); diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 54e911f1e51867..eb34f1d3fa7d79 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -12,18 +12,9 @@ #include #include #include -#include -#include #include #include #include -#include -#include -#include -#include -#include -#include -#include #include #include #include @@ -38,8 +29,6 @@ #include #include