Page MenuHomePhabricator

get config via chainstatemanager when possible (1/n)
ClosedPublic

Authored by PiRK on Mar 28 2024, 08:39.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCbd69d55d4624: get config via chainstatemanager when possible (1/n)
Summary

This removes the need for passing config as a function argument through the whole validation stack, when a reference is already available via ChainstateManager.options.

In this diff we apply this idea to AcceptToMemoryPool, ProcessNewPackages and ConnectTip (and to the whole stake of functions that needed a Config for the only purpose calling these 3)

There are more places where this can be applied, but I noticed the diff is starting to get big, so let's do the rest in separate diffs.

Test Plan

ninja all check-all