mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-05 10:17:30 -05:00
d168458d1f
This is a follow-up to previous commits moving the chain constants out of chainparamsbase. The script removes the chainparamsbase header in all files where it is included, but not used. This is done by filtering against all defined symbols of the header as well as its respective .cpp file. The kernel chainparams now no longer relies on chainparamsbase. -BEGIN VERIFY SCRIPT- sed -i '/#include <chainparamsbase.h>/d' $( git grep -l 'chainparamsbase.h' | xargs grep -L 'CBaseChainParams\|CreateBaseChainParams\|SetupChainParamsBaseOptions\|BaseParams\|SelectBaseParams\|chainparamsbase.cpp' ) -END VERIFY SCRIPT- |
||
---|---|---|
.. | ||
blockfilter.cpp | ||
blockfilter.h | ||
chainstate.h | ||
coins.cpp | ||
coins.h | ||
json.cpp | ||
json.h | ||
logging.cpp | ||
logging.h | ||
mining.cpp | ||
mining.h | ||
net.cpp | ||
net.h | ||
poolresourcetester.h | ||
random.h | ||
README.md | ||
script.cpp | ||
script.h | ||
setup_common.cpp | ||
setup_common.h | ||
str.cpp | ||
str.h | ||
transaction_utils.cpp | ||
transaction_utils.h | ||
txmempool.cpp | ||
txmempool.h | ||
validation.cpp | ||
validation.h | ||
xoroshiro128plusplus.h |
Test library
This contains files for the test library, which is used by the test binaries (unit tests, benchmarks, fuzzers, gui tests).
Generally, the files in this folder should be well-separated modules. New code should be added to existing modules or (when in doubt) a new module should be created.
The utilities in here are compiled into a library, which does not hold any state. However, the main file setup_common
defines the common test setup for all test binaries. The test binaries will handle the global state when they
instantiate the BasicTestingSetup
(or one of its derived classes).