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

Fix Bandwith Limiter Panic #11988

Merged
merged 2 commits into from
Feb 14, 2023
Merged

Fix Bandwith Limiter Panic #11988

merged 2 commits into from
Feb 14, 2023

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Feb 14, 2023

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

This PR handles the case where the remaining blocks available for a peer are equivalent to its capacity. This can trigger a panic in nodes which might apply custom configurations for block batches when syncing. This also adds in the relevant test case.

Which issues(s) does this PR fix?

N.A

Other notes for review

@nisdas nisdas requested a review from a team as a code owner February 14, 2023 05:26
@prylabs-bulldozer prylabs-bulldozer bot merged commit 449d767 into develop Feb 14, 2023
@delete-merged-branch delete-merged-branch bot deleted the fixLimiterPanic branch February 14, 2023 05:44
@prestonvanloon prestonvanloon linked an issue Feb 24, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority item
Projects
None yet
Development

Successfully merging this pull request may close these issues.

runtime error: integer divide by zero
2 participants