fix: check MnEHF earlier

This commit is contained in:
Konstantin Akimov 2023-09-06 18:53:29 +07:00 committed by PastaPastaPasta
parent 628ce18139
commit 0878e184da

View File

@ -80,6 +80,10 @@ bool CheckMNHFTx(const CTransaction& tx, const CBlockIndex* pindexPrev, TxValida
return false;
}
if (!Params().UpdateMNActivationParam(mnhfTx.signal.versionBit, pindexPrev->nHeight, pindexPrev->GetMedianTimePast(), true /* fJustCheck */)) {
return state.Invalid(TxValidationResult::TX_CONSENSUS, "bad-mnhf-non-ehf");
}
return true;
}