-
Notifications
You must be signed in to change notification settings - Fork 42
[DX-2129] seth hardening #2208
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
base: dx-2128-seth-better-error-msgs
Are you sure you want to change the base?
[DX-2129] seth hardening #2208
Changes from all commits
112f3c4
aec6319
a8005df
6f36cf9
f63504d
22bbb28
0fd0912
0879186
5628306
10bc308
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,7 +32,7 @@ func NewClientBuilder() *ClientBuilder { | |||||||||
| DialTimeout: MustMakeDuration(DefaultDialTimeout), | ||||||||||
| TransferGasFee: DefaultTransferGasFee, | ||||||||||
| GasPriceEstimationEnabled: true, | ||||||||||
|
||||||||||
| GasPriceEstimationEnabled: true, | |
| GasPriceEstimationEnabled: true, | |
| // [NOTE] Changed default from 200 to 20 blocks for gas price estimation to reduce RPC load. | |
| // This may impact gas price accuracy, but was deemed an acceptable tradeoff for performance. |
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.
Using
reflect.DeepEqualto compare ABIs in a loop (iterating through all stored ABIs) is expensive. Consider using a hash-based lookup or caching ABI names in a map for O(1) lookup instead of O(n) with expensive deep comparisons. This could significantly impact performance when many ABIs are loaded.