Skip to content
Merged
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
2 changes: 1 addition & 1 deletion execution/evm/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func validatePayloadStatus(status engine.PayloadStatusV1) error {
}
}

// retryWithBackoff executes a function with exponential backoff retry logic.
// retryWithBackoffOnPayloadStatus executes a function with exponential backoff retry logic.
// It implements the Engine API specification's recommendation to retry SYNCING
// status with exponential backoff. The function:
Comment on lines +70 to 72
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since you're updating this comment, this is a good opportunity to also clarify the behavior of the maxRetries parameter. The term 'retries' can be ambiguous (e.g., total attempts vs. attempts after the first). Explicitly stating that it represents the total number of attempts improves clarity and prevents potential misuse.

Suggested change
// retryWithBackoffOnPayloadStatus executes a function with exponential backoff retry logic.
// It implements the Engine API specification's recommendation to retry SYNCING
// status with exponential backoff. The function:
// retryWithBackoffOnPayloadStatus executes a function with exponential backoff, retrying
// up to maxRetries times. It is designed to handle transient errors like the
// Engine API's SYNCING status. The function:

// - Retries only on ErrPayloadSyncing (transient failures)
Expand Down
Loading