HomePhabricator

Pass chain locked variables where needed

Description

Pass chain locked variables where needed

Summary:
This commit does not change behavior. All it does is pass new function
parameters.

Partial backport of core PR14437:
https://github.com/bitcoin/bitcoin/pull/14437/commits/081accb875412f38718f2e40ed7bbdf15e6f4ef8

Depends on D5075.

Test Plan:

cmake -GNinja .. -DENABLE_WERROR=ON -DCMAKE_BUILD_TYPE=Debug
ninja check check-fonctional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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