-
Notifications
You must be signed in to change notification settings - Fork 239
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
Bump libp2p for gossipsub improvements #5229
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
a7fcec8
Bump libp2p
Menduist ed08683
Merge branch 'unstable' into bumplibp2pp
arnetheduck dabf606
Merge branch 'unstable' into bumplibp2pp
diegomrsantos 6ca12ba
Add bandwidthEstimate param
diegomrsantos d3be909
Merge branch 'unstable' into bumplibp2pp
diegomrsantos a58552f
Fix typo and type
diegomrsantos 396dd7b
Add config for light client
diegomrsantos da9d554
Fix unit
diegomrsantos ea27c56
Add debug prefix
diegomrsantos 23e00cb
Merge branch 'unstable' into bumplibp2pp
diegomrsantos 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 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 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 |
---|---|---|
|
@@ -145,6 +145,11 @@ type LightClientConf* = object | |
desc: "A file containing the hex-encoded 256 bit secret key to be used for verifying/generating JWT tokens" | ||
name: "jwt-secret" .}: Option[InputFile] | ||
|
||
bandwidthEstimate* {. | ||
hidden | ||
desc: "Bandwidth estimate for the node (bytes per second)" | ||
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. 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. Fixed |
||
name: "bandwidth-estimate" .}: Option[Natural] | ||
|
||
# Testing | ||
stopAtEpoch* {. | ||
hidden | ||
|
This file contains 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
Submodule nim-libp2p
updated
from 224f92 to f80ce3
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.
Hmm, should we indicate the unit (bits per second) somehow in the argument name?
From usage, the unit is not obvious, as the default fallback also shows:
config.bandwidthEstimate.get(100_000_000)
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 imagine we should in some distant future add a parser for M etc - but this is a hidden parameter that we'll use as an escape hatch in case of problems, ergo it doesn't really matter for now
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.
Worth explicitly making a
--debug
parameter, with the associated support (non)guarantees, or is this meant to be an actual end-user escape meant to live indefinitely in its current form, just not documented/readily found?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.
we can prefix it with
debug-
, yeah cc @diegomrsantosThere 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.
Likewise the LC version of this command-line option?
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.
Should it be
debug-bandwithEstimate
? I can also make itdebug-bandwithEstimatebps
. I didn't add the unit in the name before cause it's already in the description.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.
debug-bandwidth-estimate
- we use dash style for arguments throughout, this is for the "name" fieldThere 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.
the variable name is good as is
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.
Done.