HomePhabricator

pass active_chainstate to buildRandomProof

Description

pass active_chainstate to buildRandomProof

Summary:
This was the last use of global chainstate in the unit tests, except for the actual test fixture setup code itself (which will be removed in the two final commits of core#21866 that remain to be backported).

Depends on D11739

Test Plan:
ninja check-avalanche

Check for other use of the global chainstate in unit tests:

grep -r "g_chainman" src/test/ src/*/test
grep -r "::Chain\w*Active" src/test/ src/*/test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
PiRKAuthored on Jul 13 2022, 09:27
PiRKPushed on Jul 15 2022, 07:34
Reviewer
Restricted Project
Differential Revision
D11742: pass active_chainstate to buildRandomProof
Parents
rABC6c8d3340dc7f: [avalanche] pass chainman to Proof::verify
Branches
Unknown
Tags
Unknown