diff --git a/src/validation.cpp b/src/validation.cpp --- a/src/validation.cpp +++ b/src/validation.cpp @@ -452,13 +452,6 @@ state.GetRejectCode()); } -static bool -IsMagneticAnomalyEnabledForCurrentBlock(const Consensus::Params ¶ms) - EXCLUSIVE_LOCKS_REQUIRED(cs_main) { - AssertLockHeld(cs_main); - return IsMagneticAnomalyEnabled(params, chainActive.Tip()); -} - // Command-line argument "-replayprotectionactivationtime=" will // cause the node to switch to replay protected SigHash ForkID value when the // median timestamp of the previous 11 blocks is greater than or equal to @@ -748,10 +741,6 @@ extraFlags |= SCRIPT_ENABLE_REPLAY_PROTECTION; } - if (IsMagneticAnomalyEnabledForCurrentBlock(consensusParams)) { - extraFlags |= SCRIPT_VERIFY_CHECKDATASIG_SIGOPS; - } - // Make sure whatever we need to activate is actually activated. const uint32_t scriptVerifyFlags = STANDARD_SCRIPT_VERIFY_FLAGS | extraFlags;