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.
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.
7 | @@ -8,7 +8,7 @@ 8 | 9 | #include <arith_uint256.h> 10 | #include <primitives/block.h> 11 | -#include <pow.h> 12 | +#include <consensus/params.h>
nit, sort.
Tested ACK 53dd65a, circular dependency is removed.
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.
Sorted includes
utACK
It compiles and tests pass ACK https://github.com/bitcoin/bitcoin/pull/13234/commits/5b35b9276858f6841ab4b688883461f602e9f937
utACK 5b35b9276858f6841ab4b688883461f602e9f937
Very nice! Thanks for tackling this.