Page MenuHomePhabricator

pass active_chainstate to buildRandomProof
ClosedPublic

Authored by PiRK on Jul 13 2022, 09:37.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCc9189fd7a317: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable