-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move core eth utils to evm #11584
Move core eth utils to evm #11584
Conversation
I see that you haven't updated any README files. Would it make sense to do so? |
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
core/chains/evm/utils/utils.go
Outdated
@@ -35,3 +181,108 @@ func NewRedialBackoff() backoff.Backoff { | |||
} | |||
|
|||
} | |||
|
|||
// RetryWithBackoff retries the sleeper and backs off if not Done | |||
func RetryWithBackoff(ctx context.Context, fn func() (retry bool)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be useful for common and other chains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RetryWithBackoff
uses a Backoff with arbitrary values ( Min: 1 * time.Second, Max: 10 * time.Second ) so it's better if we keep it implementation-specific
SonarQube Quality Gate |
Most of the functions included in
core/utils
areevm-specific
. They either import go-ethereum packages or they require chain-specific logic. This PR moves these methods undercore/chains/evm
and improves dependency tree.