This removes usage of global chainstate for Bitcoin ABC specific code.
Also make the functions static.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rABC645dcc26aba7: miner_tests: pass chainman and active_chainstate to helper functions
ninja check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 19430 Build 38593: Build Diff lint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang Build 38592: arc lint + arc unit
Event Timeline
src/test/miner_tests.cpp | ||
---|---|---|
226 | Don't pass the whole node context when all you need is the chain manager and the mempool. This is more robust because you don't have to assume that they are non null. |