From 9ed292a6e1b20a9955a6c2aca4d537b54e82a61d Mon Sep 17 00:00:00 2001 From: pasta Date: Mon, 22 Jul 2024 09:22:44 -0500 Subject: [PATCH] feat: harden all sporks on mainnet to current values --- src/spork.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/spork.cpp b/src/spork.cpp index 3d489bc76f..6fd7a6388b 100644 --- a/src/spork.cpp +++ b/src/spork.cpp @@ -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)) {