Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion module/mempool/consensus/exec_fork_suppressor.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@ func NewExecStateForkSuppressor(
// - engine.InvalidInputError (sentinel error)
// In case a seal fails one of the required consistency checks;
func (s *ExecForkSuppressor) Add(newSeal *flow.IncorporatedResultSeal) (bool, error) {
// EMERGENCY FIX
blackListedResult, err := flow.HexStringToIdentifier("3a38bfac7ad80fac023649735344e527a4cf7d499929ad17057cce7166b358ea")
if err != nil {
panic("should never happen: failed to parse hardcoded execution result ID")
}
if newSeal.Seal.ResultID == blackListedResult {
log.Warn().Msg("dropped Seal for black-listed result")
}

s.mutex.Lock()
defer s.mutex.Unlock()

Expand All @@ -115,7 +124,7 @@ func (s *ExecForkSuppressor) Add(newSeal *flow.IncorporatedResultSeal) (bool, er
// This wrapper is a temporary safety layer; we check all conditions that are
// required for its correct functioning locally, to not delegate safety-critical
// implementation aspects to external components
err := s.enforceValidChunks(newSeal)
err = s.enforceValidChunks(newSeal)
if err != nil {
return false, fmt.Errorf("invalid candidate seal: %w", err)
}
Expand Down