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

Process GrandPa commit messages #846

Merged
merged 8 commits into from
May 21, 2021
Merged

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented May 16, 2021

Close #366

Implements processing the incoming GrandPa commit messages to update finality.

Doesn't actually work because full nodes don't send commit messages to light clients. In order to test, one must replace Light with Full in the network service. André is working on changing this in Substrate.
Apart from this, the code actually works well. Most notably, there's no panic in the syncing or anywhere else.

This PR is still work in progress because the commit messages aren't actually verified and just assumed to be correct. The problem I'm facing is that the actual verification code is very close to the code that verifies a justification, but I don't want to copy-paste it and I'm having trouble finding some common abstraction/ground.

@tomaka tomaka marked this pull request as ready for review May 21, 2021 15:44
@tomaka
Copy link
Contributor Author

tomaka commented May 21, 2021

Finished the commits verification code.

@tomaka tomaka added the automerge Automatically merge pull request as soon as possible label May 21, 2021
@mergify mergify bot merged commit c3dd950 into paritytech:main May 21, 2021
@tomaka tomaka deleted the process-gp-comit-msg branch May 21, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge pull request as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement listening for GrandPa commit messages
1 participant