mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
feat: harden all sporks on mainnet to current values
This commit is contained in:
parent
5211886fb4
commit
9ed292a6e1
@ -262,6 +262,16 @@ bool CSporkManager::IsSporkActive(SporkId nSporkID) const
|
|||||||
|
|
||||||
SporkValue CSporkManager::GetSporkValue(SporkId nSporkID) const
|
SporkValue CSporkManager::GetSporkValue(SporkId nSporkID) const
|
||||||
{
|
{
|
||||||
|
// Harden all sporks on Mainnet
|
||||||
|
if (!Params().IsTestChain()) {
|
||||||
|
switch (nSporkID) {
|
||||||
|
case SPORK_21_QUORUM_ALL_CONNECTED:
|
||||||
|
return 1;
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LOCK(cs);
|
LOCK(cs);
|
||||||
|
|
||||||
if (auto opt_sporkValue = SporkValueIfActive(nSporkID)) {
|
if (auto opt_sporkValue = SporkValueIfActive(nSporkID)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user