feat: enable EHF activation of MN_RR on mainnet

This commit is contained in:
Konstantin Akimov 2024-07-18 12:48:38 +07:00
parent 47e3197940
commit a8a3ea0e90
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -52,10 +52,6 @@ void CEHFSignalsHandler::UpdatedBlockTip(const CBlockIndex* const pindexNew, boo
return; return;
} }
if (Params().NetworkIDString() == CBaseChainParams::MAIN) {
// TODO: v20 will never attempt to create EHF messages on main net; if this is needed it will be done by v20.1 or v21 nodes
return;
}
const auto ehfSignals = mnhfman.GetSignalsStage(pindexNew); const auto ehfSignals = mnhfman.GetSignalsStage(pindexNew);
for (const auto& deployment : Params().GetConsensus().vDeployments) { for (const auto& deployment : Params().GetConsensus().vDeployments) {
// Skip deployments that do not use dip0023 // Skip deployments that do not use dip0023
@ -102,10 +98,6 @@ void CEHFSignalsHandler::trySignEHFSignal(int bit, const CBlockIndex* const pind
void CEHFSignalsHandler::HandleNewRecoveredSig(const CRecoveredSig& recoveredSig) void CEHFSignalsHandler::HandleNewRecoveredSig(const CRecoveredSig& recoveredSig)
{ {
if (Params().NetworkIDString() == CBaseChainParams::MAIN) {
// TODO: v20 will never attempt to create EHF messages on main net; if this is needed it will be done by v20.1 or v21 nodes
return;
}
if (g_txindex) { if (g_txindex) {
g_txindex->BlockUntilSyncedToCurrentChain(); g_txindex->BlockUntilSyncedToCurrentChain();
} }