mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
refactor: drop public method llmq::utils::IsV19Active
This commit is contained in:
parent
55abf7fa8d
commit
5d4b16a783
@ -34,6 +34,11 @@ static constexpr int TESTNET_LLMQ_25_67_ACTIVATION_HEIGHT = 847000;
|
|||||||
*/
|
*/
|
||||||
std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlockIndex* pindex);
|
std::optional<std::pair<CBLSSignature, uint32_t>> GetNonNullCoinbaseChainlock(const CBlockIndex* pindex);
|
||||||
|
|
||||||
|
static bool IsV19Active(gsl::not_null<const CBlockIndex*> pindexPrev)
|
||||||
|
{
|
||||||
|
return DeploymentActiveAfter(pindexPrev, Params().GetConsensus(), Consensus::DEPLOYMENT_V19);
|
||||||
|
}
|
||||||
|
|
||||||
namespace llmq
|
namespace llmq
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -682,11 +687,6 @@ bool IsQuorumRotationEnabled(const Consensus::LLMQParams& llmqParams, gsl::not_n
|
|||||||
return DeploymentActiveAfter(pindex->GetAncestor(cycleQuorumBaseHeight - 1), Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0024);
|
return DeploymentActiveAfter(pindex->GetAncestor(cycleQuorumBaseHeight - 1), Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0024);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsV19Active(gsl::not_null<const CBlockIndex*> pindex)
|
|
||||||
{
|
|
||||||
return pindex->nHeight + 1 >= Params().GetConsensus().V19Height;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex)
|
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex)
|
||||||
{
|
{
|
||||||
return llmq_versionbitscache.State(pindex, Params().GetConsensus(), Consensus::DEPLOYMENT_V20) == ThresholdState::ACTIVE;
|
return llmq_versionbitscache.State(pindex, Params().GetConsensus(), Consensus::DEPLOYMENT_V20) == ThresholdState::ACTIVE;
|
||||||
|
@ -78,8 +78,6 @@ std::vector<std::reference_wrapper<const Consensus::LLMQParams>> GetEnabledQuoru
|
|||||||
// TODO options
|
// TODO options
|
||||||
bool IsQuorumRotationEnabled(const Consensus::LLMQParams& llmqParams, gsl::not_null<const CBlockIndex*> pindex);
|
bool IsQuorumRotationEnabled(const Consensus::LLMQParams& llmqParams, gsl::not_null<const CBlockIndex*> pindex);
|
||||||
// TODO deployments
|
// TODO deployments
|
||||||
bool IsV19Active(gsl::not_null<const CBlockIndex*> pindex);
|
|
||||||
// TODO deployments
|
|
||||||
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex);
|
bool IsV20Active(gsl::not_null<const CBlockIndex*> pindex);
|
||||||
|
|
||||||
/// Returns the state of `-llmq-data-recovery`
|
/// Returns the state of `-llmq-data-recovery`
|
||||||
|
Loading…
Reference in New Issue
Block a user