aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-05-13 23:39:53 -0700
committerBen Woosley <ben.woosley@gmail.com>2018-05-14 18:36:39 -0700
commit5b35b9276858f6841ab4b688883461f602e9f937 (patch)
tree9d602a85eb9cfb6c687ce336dcaa0e147e941c2c /src/test
parent81c533c6f481ebf6a4f6349c05731306e3a2402f (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/blockencodings_tests.cpp1
-rw-r--r--src/test/test_bitcoin.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test/blockencodings_tests.cpp b/src/test/blockencodings_tests.cpp
index 8cffacbffe..3dd5356164 100644
--- a/src/test/blockencodings_tests.cpp
+++ b/src/test/blockencodings_tests.cpp
@@ -5,6 +5,7 @@
#include <blockencodings.h>
#include <consensus/merkle.h>
#include <chainparams.h>
+#include <pow.h>
#include <random.h>
#include <test/test_bitcoin.h>
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index fe816a6f79..9857827f05 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -11,6 +11,7 @@
#include <validation.h>
#include <miner.h>
#include <net_processing.h>
+#include <pow.h>
#include <ui_interface.h>
#include <streams.h>
#include <rpc/server.h>