Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix #10688 being misimplemented #10721

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Jan 24, 2022

cc #10688

So apparently I'm failing at basic logic.

This properly implements the check:
if current_connected_light_clients >= num_light_clients_allowed { reject }

@tomaka tomaka added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jan 24, 2022
@tomaka
Copy link
Contributor Author

tomaka commented Jan 24, 2022

@chevdor @eskimor Sorry for being a pain, but it would be great to include this in 0.9.16 otherwise smoldot nodes can't connect anymore 😬

Copy link
Contributor

@wigy-opensource-developer wigy-opensource-developer left a comment

Choose a reason for hiding this comment

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

No, it is actually all 3 of us who wrote/reviewed #10688 failing to comprehend this. Sorry, I think I undervalued temporary variables that are optimized away by the compiler, but have an actual name that helps reading. That is over now! 😛

@chevdor chevdor mentioned this pull request Jan 24, 2022
3 tasks
@tomaka
Copy link
Contributor Author

tomaka commented Jan 24, 2022

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit b57c08b into paritytech:master Jan 24, 2022
@tomaka tomaka deleted the goddamnit branch January 24, 2022 10:27
chevdor pushed a commit that referenced this pull request Jan 24, 2022
@chevdor
Copy link
Contributor

chevdor commented Jan 24, 2022

Added to v0.9.16 via paritytech/polkadot@01c5e9f

grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants