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

client(consensus/grandpa): implement finality proof logic #3589

Merged
merged 18 commits into from
Dec 13, 2023

Conversation

jimjbrettj
Copy link
Contributor

Changes

  • Implement and test logic for creating and verifying grandpa finality proofs

Tests

go test ./client/consensus/grandpa

Issues

#3582

Primary Reviewer

@timwu20

client/consensus/grandpa/blockOrigin.go Outdated Show resolved Hide resolved
client/consensus/grandpa/blockOrigin.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/interfaces.go Outdated Show resolved Hide resolved
client/consensus/grandpa/authorities.go Outdated Show resolved Hide resolved
client/consensus/grandpa/authorities.go Outdated Show resolved Hide resolved
client/consensus/grandpa/authorities.go Outdated Show resolved Hide resolved
Copy link
Member

@EclesioMeloJunior EclesioMeloJunior left a comment

Choose a reason for hiding this comment

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

Also, I noticed that the function checkMessageSignature can receive a signature that can be []byte or string, but why not set the signature type to be []byte always, and then let the caller to transform the string to []bytes?

client/consensus/grandpa/authorities.go Show resolved Hide resolved
client/consensus/grandpa/authorities.go Outdated Show resolved Hide resolved
client/consensus/grandpa/aux_schema.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof_test.go Outdated Show resolved Hide resolved
client/consensus/grandpa/finality_proof_test.go Outdated Show resolved Hide resolved
client/consensus/grandpa/justification.go Outdated Show resolved Hide resolved
client/consensus/grandpa/justification.go Show resolved Hide resolved
@jimjbrettj jimjbrettj merged commit 8f28c20 into feat/grandpa Dec 13, 2023
45 checks passed
@jimjbrettj jimjbrettj deleted the jimmy/finalityProof branch December 13, 2023 18:05
timwu20 added a commit that referenced this pull request Apr 18, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
timwu20 added a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
timwu20 added a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
timwu20 added a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
timwu20 added a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
timwu20 added a commit that referenced this pull request Oct 11, 2024
Co-authored-by: Timothy Wu <tim.wu@chainsafe.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants