Skip to content

Commit

Permalink
fix: add sync status when newpayload API meet the specific error (#240)
Browse files Browse the repository at this point in the history
Co-authored-by: Owen <[email protected]>
  • Loading branch information
krish-nr and owen-reorg authored Sep 10, 2024
1 parent c6a6bf5 commit afbb8b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions op-service/sources/engine_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func (s *EngineAPIClient) NewPayload(ctx context.Context, payload *eth.Execution
e.Trace("Received payload execution result", "status", result.Status, "latestValidHash", result.LatestValidHash, "message", result.ValidationError)
if err != nil {
if strings.Contains(err.Error(), derive.ErrELSyncTriggerUnexpected.Error()) {
result.Status = eth.ExecutionSyncing
return &result, err
}
e.Error("Payload execution failed", "err", err)
Expand Down

0 comments on commit afbb8b1

Please sign in to comment.