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

Fix bug in statement table #2369

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Fix bug in statement table #2369

merged 1 commit into from
Feb 3, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Feb 3, 2021

We only checked all validity votes, ignoring invalid votes. So, the
condidition could not hold. Besides fixing the panic, I removed some old
cruft that isn't required anymore.

Fixes: #2368

We only checked all validity votes, ignoring invalid votes. So, the
condidition could not hold. Besides fixing the panic, I removed some old
cruft that isn't required anymore.
@bkchr bkchr 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 Feb 3, 2021
ValidityVote::Issued(ref s) =>
Some((a, ValidityAttestation::Implicit(s.clone()))),
})
.take(validity_threshold)
Copy link
Member Author

Choose a reason for hiding this comment

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

If someone comes up with a good explanation why we only want to have validity_threshold votes forwarded, please tell it. Otherwise, I don't see any reason to restrict this.

Copy link
Contributor

Choose a reason for hiding this comment

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

legacy

@pepyakin pepyakin requested a review from rphmeier February 3, 2021 15:09
@rphmeier rphmeier merged commit 90e6d6e into master Feb 3, 2021
@rphmeier rphmeier deleted the bkchr-fix-statement-tabl branch February 3, 2021 16:23
ordian added a commit that referenced this pull request Feb 4, 2021
* master:
  Diagnostics quality of life improvements (#2375)
  Generic request/response infrastructure for Polkadot (#2352)
  Fix bug in statement table (#2369)
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.

Panic in statement-table
2 participants