From 5b35b9276858f6841ab4b688883461f602e9f937 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Sun, 13 May 2018 23:39:53 -0700 Subject: [PATCH] Break circular dependency: chain -> pow -> chain chain.h does not actually depend on the methods defined in pow.h, just its include of consensus/params.h, which is standalone and can be included instead. Confirmed by inspection and successful build. --- src/chain.h | 2 +- src/test/blockencodings_tests.cpp | 1 + src/test/test_bitcoin.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/chain.h b/src/chain.h index 757840bb2..8e6ac8d82 100644 --- a/src/chain.h +++ b/src/chain.h @@ -7,8 +7,8 @@ #define BITCOIN_CHAIN_H #include +#include #include -#include #include #include diff --git a/src/test/blockencodings_tests.cpp b/src/test/blockencodings_tests.cpp index 8cffacbff..3dd535616 100644 --- a/src/test/blockencodings_tests.cpp +++ b/src/test/blockencodings_tests.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index fe816a6f7..9857827f0 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include