This repository was archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 144
Prevent uint256 overflow during conversion #45
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruteri
reviewed
Mar 10, 2023
michaelneuder
pushed a commit
to michaelneuder/builder
that referenced
this pull request
Mar 10, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
Ruteri
reviewed
Mar 10, 2023
5362a64 to
dd63b6f
Compare
Ruteri
reviewed
Mar 13, 2023
core/block_validator.go
Outdated
| } | ||
| // Withdrawals are present after the Shanghai fork. | ||
| if header.WithdrawalsHash != nil { | ||
| if v.config.IsShanghai(header.Time) { |
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.
I looked at this again, and I'd be wary of adding this check in this specific function, as it's not only used during boost relay block validation. We should simply make no changes in this function.
The function's logic should be exactly the same as upstream
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.
agree, the check should be in ValidatePayload until a check like this is included in the upstream.
Ruteri
approved these changes
Mar 13, 2023
avalonche
added a commit
that referenced
this pull request
Mar 13, 2023
* Prevent uint256 overflow during conversion * add shanghai checks * remove unused functions * move validation to ValidatePayload
michaelneuder
pushed a commit
to michaelneuder/builder
that referenced
this pull request
Mar 15, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
avalonche
pushed a commit
that referenced
this pull request
Mar 15, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
avalonche
pushed a commit
that referenced
this pull request
Mar 17, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
avalonche
added a commit
that referenced
this pull request
Mar 17, 2023
* Prevent uint256 overflow during conversion * add shanghai checks * remove unused functions * move validation to ValidatePayload
avalonche
pushed a commit
that referenced
this pull request
Mar 22, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
avalonche
added a commit
that referenced
this pull request
Mar 22, 2023
* Prevent uint256 overflow during conversion * add shanghai checks * remove unused functions * move validation to ValidatePayload
avalonche
pushed a commit
that referenced
this pull request
Jul 6, 2023
* Remove old infra scripts * core: tx_pool not return `error` in `MevBundles()` * Adjust worker to not consider error returned from MevBundles * Update web3ext.go * internal/ethapi: Fix context not being used * fix: dev: add defer privateTx.Stop() Co-authored-by: eugene <[email protected]> Co-authored-by: 0x2 <[email protected]> Co-authored-by: Nicolas Gotchac <[email protected]> Co-authored-by: Jolly Zhao <[email protected]>
avalonche
added a commit
that referenced
this pull request
Jul 6, 2023
* Prevent uint256 overflow during conversion * add shanghai checks * remove unused functions * move validation to ValidatePayload
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Summary
📚 References
CONTRIBUTING.md