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.
This commit is contained in:
Ben Woosley 2018-05-13 23:39:53 -07:00
parent 81c533c6f4
commit 5b35b92768
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
3 changed files with 3 additions and 1 deletions

View File

@ -7,8 +7,8 @@
#define BITCOIN_CHAIN_H
#include <arith_uint256.h>
#include <consensus/params.h>
#include <primitives/block.h>
#include <pow.h>
#include <tinyformat.h>
#include <uint256.h>

View File

@ -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>

View File

@ -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>