mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
refactor: drop public llmq::utils::IsV20Active method
This commit is contained in:
parent
bc0f0bf852
commit
917089d542
@ -38,6 +38,11 @@ static bool IsV19Active(gsl::not_null<const CBlockIndex*> pindexPrev)
|
||||
return DeploymentActiveAfter(pindexPrev, Params().GetConsensus(), Consensus::DEPLOYMENT_V19);
|
||||
}
|
||||
|
||||
static bool IsV20Active(gsl::not_null<const CBlockIndex*> pindexPrev)
|
||||
{
|
||||
return llmq_versionbitscache.State(pindexPrev, Params().GetConsensus(), Consensus::DEPLOYMENT_V20) == ThresholdState::ACTIVE;
|
||||
}
|
||||
|
||||
namespace llmq
|
||||
{
|
||||
|
||||
@ -686,11 +691,6 @@ bool IsQuorumRotationEnabled(const Consensus::LLMQParams& llmqParams, gsl::not_n
|
||||
return DeploymentActiveAfter(pindex->GetAncestor(cycleQuorumBaseHeight - 1), Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0024);
|
||||
}
|
||||
|
||||
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex)
|
||||
{
|
||||
return llmq_versionbitscache.State(pindex, Params().GetConsensus(), Consensus::DEPLOYMENT_V20) == ThresholdState::ACTIVE;
|
||||
}
|
||||
|
||||
uint256 DeterministicOutboundConnection(const uint256& proTxHash1, const uint256& proTxHash2)
|
||||
{
|
||||
// We need to deterministically select who is going to initiate the connection. The naive way would be to simply
|
||||
|
@ -77,8 +77,6 @@ std::vector<std::reference_wrapper<const Consensus::LLMQParams>> GetEnabledQuoru
|
||||
|
||||
// TODO options
|
||||
bool IsQuorumRotationEnabled(const Consensus::LLMQParams& llmqParams, gsl::not_null<const CBlockIndex*> pindex);
|
||||
// TODO deployments
|
||||
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex);
|
||||
|
||||
/// Returns the state of `-llmq-data-recovery`
|
||||
// TODO options
|
||||
|
Loading…
Reference in New Issue
Block a user