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

runtime/inclusion: fix availability_threshold #6931

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

ordian
Copy link
Member

@ordian ordian commented Mar 21, 2023

This function was giving incorrect results mostly affecting small networks. It doesn't affect production networks where n_validators is currently at 200.
For example, for 4 validators, we expect the result to be 3 (2f + 1), whereas it would have returned 4.
For 6 validators, it would have returned 4 instead of 5.

@ordian ordian 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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Mar 21, 2023
Copy link
Contributor

@slumber slumber left a comment

Choose a reason for hiding this comment

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

Nice catch

@sandreim
Copy link
Contributor

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Statuses failed for 2473f3e

@ordian ordian merged commit 405fdeb into master Mar 21, 2023
@ordian ordian deleted the ao-fix-availability-threshold branch March 21, 2023 16:21
ordian added a commit that referenced this pull request Mar 23, 2023
* master:
  Bump parity-scale-codec to v 3.4.0 (#6945)
  XCM ExportMessage benchmark support (#6923)
  Vstam1/xcm admin origin (#6928)
  Ensure candidate-backing and provisioner exit on missing Overseer (#6939)
  move back to ci-linux@production image
  runtime/inclusion: fix availability_threshold (#6931)
  Companion for #13624 (#6924)
ordian added a commit that referenced this pull request Mar 23, 2023
* master:
  Bump parity-scale-codec to v 3.4.0 (#6945)
  XCM ExportMessage benchmark support (#6923)
  Vstam1/xcm admin origin (#6928)
  Ensure candidate-backing and provisioner exit on missing Overseer (#6939)
  move back to ci-linux@production image
  runtime/inclusion: fix availability_threshold (#6931)
  Companion for #13624 (#6924)
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. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants