mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
refactor: drop dependency miner on llmq::utils::IsV20Active
This commit is contained in:
parent
5d4b16a783
commit
db4379348c
@ -135,7 +135,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
|
|||||||
|
|
||||||
bool fDIP0003Active_context = DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_DIP0003);
|
bool fDIP0003Active_context = DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_DIP0003);
|
||||||
bool fDIP0008Active_context = DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_DIP0008);
|
bool fDIP0008Active_context = DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_DIP0008);
|
||||||
bool fV20Active_context = llmq::utils::IsV20Active(pindexPrev);
|
const bool fV20Active_context{DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_V20)};
|
||||||
|
|
||||||
pblock->nVersion = g_versionbitscache.ComputeBlockVersion(pindexPrev, chainparams.GetConsensus());
|
pblock->nVersion = g_versionbitscache.ComputeBlockVersion(pindexPrev, chainparams.GetConsensus());
|
||||||
// Non-mainnet only: allow overriding block.nVersion with
|
// Non-mainnet only: allow overriding block.nVersion with
|
||||||
@ -402,7 +402,7 @@ void BlockAssembler::addPackageTxs(int &nPackagesSelected, int &nDescendantsUpda
|
|||||||
// This credit pool is used only to check withdrawal limits and to find
|
// This credit pool is used only to check withdrawal limits and to find
|
||||||
// duplicates of indexes. There's used `BlockSubsidy` equaled to 0
|
// duplicates of indexes. There's used `BlockSubsidy` equaled to 0
|
||||||
std::optional<CCreditPoolDiff> creditPoolDiff;
|
std::optional<CCreditPoolDiff> creditPoolDiff;
|
||||||
if (llmq::utils::IsV20Active(pindexPrev)) {
|
if (DeploymentActiveAfter(pindexPrev, chainparams.GetConsensus(), Consensus::DEPLOYMENT_V20)) {
|
||||||
CCreditPool creditPool = creditPoolManager->GetCreditPool(pindexPrev, chainparams.GetConsensus());
|
CCreditPool creditPool = creditPoolManager->GetCreditPool(pindexPrev, chainparams.GetConsensus());
|
||||||
creditPoolDiff.emplace(std::move(creditPool), pindexPrev, chainparams.GetConsensus(), 0);
|
creditPoolDiff.emplace(std::move(creditPool), pindexPrev, chainparams.GetConsensus(), 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user