-
Notifications
You must be signed in to change notification settings - Fork 20
feat: cl get payload v4 #706
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ca65878
changing get payload from v3 to v4
049b964
merge from main
e11cabc
setting empty block generation to 1 minute
kant777 bf8012d
setting default fee receipent and adjusting test
kant777 d416143
fixing tests
kant777 fa7bfa9
Merge branch 'main' into feature/cl_get_payload_v4
kant777 738f895
go.work
kant777 ebea866
Merge branch 'feature/cl_get_payload_v2' of github.com:primev/mev-com…
kant777 f5af81c
removing redundant flag
kant777 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,21 +126,22 @@ var ( | |
| Name: "evm-build-delay", | ||
| Usage: "Delay after initiating payload construction before calling getPayload (e.g., '200ms')", | ||
| EnvVars: []string{"LEADER_EVM_BUILD_DELAY"}, | ||
| Value: 100 * time.Millisecond, | ||
| Value: 1 * time.Millisecond, | ||
| }) | ||
|
|
||
| evmBuildDelayEmptyBlockFlag = altsrc.NewDurationFlag(&cli.DurationFlag{ | ||
| Name: "evm-build-delay-empty-block", | ||
| Usage: "Minimum time since last block to build an empty block (0 to disable skipping, e.g., '2s')", | ||
| EnvVars: []string{"LEADER_EVM_BUILD_DELAY_EMPTY_BLOCK"}, | ||
| Value: 2 * time.Second, | ||
| Value: 1 * time.Minute, | ||
| }) | ||
|
|
||
| priorityFeeReceiptFlag = altsrc.NewStringFlag(&cli.StringFlag{ | ||
| Name: "priority-fee-recipient", | ||
| Usage: "Ethereum address for receiving priority fees (block proposer fee)", | ||
| EnvVars: []string{"LEADER_PRIORITY_FEE_RECIPIENT"}, | ||
| Required: true, | ||
| Value: "0xfA0B0f5d298d28EFE4d35641724141ef19C05684", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this on purpose?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes |
||
| Action: func(c *cli.Context, s string) error { | ||
| if !strings.HasPrefix(s, "0x") || len(s) != 42 { | ||
| return fmt.Errorf("priority-fee-recipient must be a 0x-prefixed 42-character hex string") | ||
|
|
||
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
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
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
Oops, something went wrong.
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.
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.
nit: Indentation in this case should ideally be
Improves clarity with line between next control statement