This is inspired by https://github.com/bitcoin/bitcoin/pull/24595/commits/69675ea4e73dcf5e9dd0f94802bd3463e4262081
I need ChainstateManager.GetConsensus as a dependency of core#25168
Differential D13244
validation: add Config to ChainstateManager PiRK on Mar 6 2023, 15:31. Authored by
Details
This is inspired by https://github.com/bitcoin/bitcoin/pull/24595/commits/69675ea4e73dcf5e9dd0f94802bd3463e4262081 I need ChainstateManager.GetConsensus as a dependency of core#25168 ninja all check-all
Diff Detail
Event TimelineComment Actions no need to review this until I figure out how to do the follow-ups. The next commit fails on checkpoints_tests.cpp, because this test uses a different config than the global one to pass to ChainstateManager member functions as parameters. Comment Actions rebase from hell i still don't know how to backport the rest of core#24595, but this commit is good enough on its own and unblocks a dependency in the assumeutxo stack Comment Actions Do you really need this ? Chainstate already has a public CChainParams member, can't this be used (it can be accessed from CChainstateManager.active_chainstate) instead ? Comment Actions I'm not actually sure. https://github.com/bitcoin/bitcoin/pull/25168 make heavy use of ChainstateManager::GetParams and ChainstateManager::GetConsensus. |