mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Merge bitcoin/bitcoin#24595: deploymentstatus: move g_versionbitscache global to ChainstateManager
bb5c24b120validation: move g_versionbitscache into ChainstateManager (Anthony Towns)eca22c726atest/versionbits: make versionbitscache a parameter (Anthony Towns)d603f1d8a7deploymentstatus: make versionbitscache a parameter (Anthony Towns)78adef1753refactor: use chainman instead of chainParams for DeploymentActive* (Anthony Towns)deffe0df6cdeploymentstatus: allow chainman in place of consensusParams (Anthony Towns)eaa2e3f25cvalidation: move UpdateUncommittedBlockStructures and GenerateCoinbaseCommitment into ChainstateManager (Anthony Towns)5c67e84d37validation: replace ::Params() calls with chainstate/chainman member (Anthony Towns)38860f93b6validation: remove redundant CChainParams params from ChainstateManager methods (Anthony Towns)69675ea4e7validation: add CChainParams to ChainstateManager (Anthony Towns) Pull request description: Gives `ChainstateManager` a reference to the `CChainParams` its working on, and simplifies some of the functions that would otherwise take that as a parameter. Removes the `g_versionbitscache` global by moving it into `ChainstateManager`. ACKs for top commit: dongcarl: reACKbb5c24b120MarcoFalke: review ACKbb5c24b120📙 Tree-SHA512: 3fa74905e5df561e3e74bb0b8fce6085c5311e6633e7d74c0fb0c82a907f5bbb1fd4ebc5d11d4f0b1c019bb51eabb9f6e4bcc4652a696d36a5878c807b85f121
This commit is contained in:
@@ -1424,7 +1424,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) {
|
||||
node.mempool = std::make_unique<CTxMemPool>(node.fee_estimator.get(), mempool_check_ratio);
|
||||
|
||||
node.chainman = std::make_unique<ChainstateManager>();
|
||||
node.chainman = std::make_unique<ChainstateManager>(chainparams);
|
||||
ChainstateManager& chainman = *node.chainman;
|
||||
|
||||
const bool fReset = fReindex;
|
||||
|
||||
Reference in New Issue
Block a user