refactor: removed duplicated meaningless condition from Check mnhftx

This commit is contained in:
Konstantin Akimov 2024-08-16 15:16:13 +07:00
parent 17110f50b3
commit 0351469bb5
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -231,10 +231,7 @@ std::optional<CMNHFManager::Signals> CMNHFManager::ProcessBlock(const CBlock& bl
return signals; return signals;
} }
for (const auto& versionBit : new_signals) { for (const auto& versionBit : new_signals) {
if (Params().IsValidMNActivation(versionBit, pindex->GetMedianTimePast())) { signals.insert({versionBit, mined_height});
signals.insert({versionBit, mined_height});
}
} }
AddToCache(signals, pindex); AddToCache(signals, pindex);