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

Check if BEEFY authority is in current set #10281

Merged
merged 6 commits into from
Nov 17, 2021
Merged

Conversation

seunlanlege
Copy link
Contributor

@seunlanlege seunlanlege commented Nov 16, 2021

@seunlanlege seunlanlege requested a review from adoerr as a code owner November 16, 2021 10:37
@seunlanlege seunlanlege changed the title Check if BEEFY authority is in current set closes paritytech/grandpa-bridge-gadget#100 Check if BEEFY authority is in current set Nov 16, 2021
client/beefy/src/round.rs Outdated Show resolved Hide resolved
Co-authored-by: Bastian Köcher <[email protected]>
client/beefy/src/round.rs Outdated Show resolved Hide resolved
@adoerr adoerr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). 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 B0-silent Changes should not be mentioned in any release notes labels Nov 16, 2021
client/beefy/src/round.rs Outdated Show resolved Hide resolved
@seunlanlege
Copy link
Contributor Author

@adoerr looks good?

@@ -36,7 +36,7 @@ impl RoundTracker {
fn add_vote(&mut self, vote: (Public, Signature)) -> bool {
// this needs to handle equivocations in the future
if self.votes.contains(&vote) {
return false;
false
Copy link
Contributor

Choose a reason for hiding this comment

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

Apparently I'm just stupid 🙈 . My change is BS of course. Please just revert the last commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Lmao, if it makes you feel better, i would've made the same mistake too 🤣

@bkchr bkchr merged commit 6d61f48 into paritytech:master Nov 17, 2021
@tomusdrw
Copy link
Contributor

A bit shame that such an important piece of code was accepted without a single test case.

@seunlanlege
Copy link
Contributor Author

🥲

@adoerr
Copy link
Contributor

adoerr commented Nov 17, 2021

I'll add some

aurexav pushed a commit to darwinia-network/substrate that referenced this pull request Jan 27, 2022
* check if BEEFY authority is in current set

* Update client/beefy/src/round.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Update client/beefy/src/round.rs

* Update client/beefy/src/round.rs

Co-authored-by: Andreas Doerr <[email protected]>

* remove stray semi

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* check if BEEFY authority is in current set

* Update client/beefy/src/round.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Update client/beefy/src/round.rs

* Update client/beefy/src/round.rs

Co-authored-by: Andreas Doerr <[email protected]>

* remove stray semi

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* check if BEEFY authority is in current set

* Update client/beefy/src/round.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Update client/beefy/src/round.rs

* Update client/beefy/src/round.rs

Co-authored-by: Andreas Doerr <[email protected]>

* remove stray semi

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Andreas Doerr <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). 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.

Validate signatures for votes received from peers
4 participants