CChainState needed cuz setBlockIndexCandidates
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/21055 | core#21055]] [9/16]
https://github.com/bitcoin/bitcoin/pull/21055/commits/8cdb2f7e58dfd9a631a8cbb8f0ee7e8c0c304eb4#
Depends on D11213