Skip to content
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 10 commits into from
Aug 24, 2023
Merged

Bump libp2p for gossipsub improvements #5229

merged 10 commits into from
Aug 24, 2023

Conversation

@Menduist Menduist enabled auto-merge (squash) July 31, 2023 13:30
@Menduist Menduist disabled auto-merge July 31, 2023 13:30
@github-actions
Copy link

github-actions bot commented Jul 31, 2023

Unit Test Results

         9 files  ±0    1 077 suites  ±0   41m 4s ⏱️ - 3m 9s
  3 723 tests ±0    3 444 ✔️ ±0  279 💤 ±0  0 ±0 
15 874 runs  ±0  15 569 ✔️ ±0  305 💤 ±0  0 ±0 

Results for commit 23e00cb. ± Comparison against base commit 025b0e3.

♻️ This comment has been updated with latest results.

@arnetheduck
Copy link
Member

per vacp2p/nim-libp2p#911 (comment), we should add a (hidden) command-line option for controlling the bandwidth thing (or disabling limiting altogether) in case it turns out to have some unintended side effect

@@ -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)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

bandwidthEstimate* {.
hidden
desc: "Bandwidth estimate for the node (bits per second)"
name: "bandwidth-estimate" .}: Option[Natural]
Copy link
Contributor

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)

Copy link
Member

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

Copy link
Contributor

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?

Copy link
Member

@arnetheduck arnetheduck Aug 15, 2023

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 @diegomrsantos

Copy link
Contributor

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?

Copy link
Contributor

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 it debug-bandwithEstimatebps. I didn't add the unit in the name before cause it's already in the description.

Copy link
Member

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" field

Copy link
Member

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

Copy link
Contributor

@diegomrsantos diegomrsantos Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@arnetheduck
Copy link
Member

this looks good to go but we should probably not include this in the next release but rather the release after so that it gets some siginificant testing time in the fleet

@arnetheduck arnetheduck merged commit 36413c8 into unstable Aug 24, 2023
9 checks passed
@arnetheduck arnetheduck deleted the bumplibp2pp branch August 24, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants