-
Notifications
You must be signed in to change notification settings - Fork 117
feat(l1): add tx broadcasting time interval flag to cli #4751
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 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9bb40b6
add tx broadcasting time interval flag
cdiielsi 5619367
add flag on cli documentation
cdiielsi fa0f1d7
check tests passes on hive branch
cdiielsi b7fa43e
back to hive master branch to use in the ci
cdiielsi 76806c6
Merge branch 'main' into tx_broadcasting_time_interval_flag
cdiielsi df9485e
set default value as a constant
cdiielsi 7b80924
set default value as a constant
cdiielsi 8a76145
merge main into branch
cdiielsi 934b0dc
Merge branch 'main' into tx_broadcasting_time_interval_flag
cdiielsi 9905226
take constant back to original place
cdiielsi d4a414f
Merge branch 'main' into tx_broadcasting_time_interval_flag
cdiielsi 789822b
Merge branch 'main' into tx_broadcasting_time_interval_flag
cdiielsi c09ed50
replace lambda/hive with ethereum/hive
cdiielsi 9632a32
Merge branch 'tx_broadcasting_time_interval_flag' of github.com:lambd…
cdiielsi 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -175,6 +175,14 @@ pub struct Options { | |
| help_heading = "P2P options" | ||
| )] | ||
| pub discovery_port: String, | ||
| #[arg( | ||
| long = "p2p.tx-broadcasting-interval", | ||
| default_value = "1000", | ||
| value_name = "INTERVAL_MS", | ||
| help = "Transaction Broadcasting Time Interval (ms) for batching transactions before broadcasting them.", | ||
| help_heading = "P2P options" | ||
| )] | ||
| pub tx_broadcasting_time_interval: u64, | ||
| #[arg( | ||
| long = "block-producer.extra-data", | ||
| default_value = get_minimal_client_version(), | ||
|
|
@@ -246,6 +254,7 @@ impl Default for Options { | |
| dev: Default::default(), | ||
| force: false, | ||
| mempool_max_size: Default::default(), | ||
| tx_broadcasting_time_interval: Default::default(), | ||
|
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. isnt this 0? Do we actually want the default? 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. |
||
| extra_data: get_minimal_client_version(), | ||
| } | ||
| } | ||
|
|
||
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
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.
Can you put this as a constant instead of hardcoding it here?