Skip to content

Commit

Permalink
add ineligibility reason for simulation failure (#10407)
Browse files Browse the repository at this point in the history
* add ineligibility reason for simulation failure

* update failure reason
  • Loading branch information
FelixFan1992 authored Aug 31, 2023
1 parent a17b55e commit 3a7fc9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const (
UpkeepFailureReasonMercuryAccessNotAllowed UpkeepFailureReason = 32
UpkeepFailureReasonTxHashNoLongerExists UpkeepFailureReason = 33
UpkeepFailureReasonInvalidRevertDataInput UpkeepFailureReason = 34
UpkeepFailureReasonSimulationFailed UpkeepFailureReason = 35

// pipeline execution error
NoPipelineError PipelineExecutionState = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ func (r *EvmRegistry) simulatePerformUpkeeps(ctx context.Context, checkResults [
if !simulatePerformSuccess {
r.lggr.Warnf("upkeepId %s is not eligible after simulation of perform", checkResults[idx].UpkeepID.String())
checkResults[performToKeyIdx[i]].Eligible = false
checkResults[performToKeyIdx[i]].IneligibilityReason = uint8(encoding.UpkeepFailureReasonSimulationFailed)
}
}

Expand Down

0 comments on commit 3a7fc9d

Please sign in to comment.