feat: harden all sporks on mainnet to current values

This commit is contained in:
pasta 2024-07-22 09:22:44 -05:00
parent 5211886fb4
commit 9ed292a6e1
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984

View File

@ -262,6 +262,16 @@ bool CSporkManager::IsSporkActive(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);
if (auto opt_sporkValue = SporkValueIfActive(nSporkID)) {