HomePhabricator

[refactor] add const CChainParams& m_params to interface::ChainImpl

Description

[refactor] add const CChainParams& m_params to interface::ChainImpl

Summary:
this diff adds a constant reference to CChainParams& for the interface::ChainImpl so we can get it from
global state there instead of all over the place

Test Plan:

ninja all check-all
./src/bench/bitcoin-bench

cmake -GNinja .. -DENABLE_SANITIZERS="address;fuzzer" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja bitcoin-fuzzers link-fuzz-test_runner.py
./test/fuzz/test_runner.py -l DEBUG <path_to_corpus>

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6829

Details

Provenance
majcostaAuthored on Jun 22 2020, 15:15
majcostaPushed on Jul 6 2020, 22:16
Reviewer
Restricted Project
Differential Revision
D6829: [refactor] add const CChainParams& m_params to interface::ChainImpl
Parents
rABC35faecfbd153: [CI] Add a runOnDiff flag to the build configurations
Branches
Unknown
Tags
Unknown