-
Notifications
You must be signed in to change notification settings - Fork 126
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
task(lib/grandpa): ensure messages are stored and re-processed when needed #2107
Conversation
3d20301
to
e4c791e
Compare
Codecov Report
@@ Coverage Diff @@
## development #2107 +/- ##
============================================
Coverage 61.56% 61.57%
============================================
Files 213 213
Lines 27448 27461 +13
============================================
+ Hits 16898 16908 +10
- Misses 8683 8684 +1
- Partials 1867 1869 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are still a few comments / TODOs I'm not sure how to address, let's see what others have to say 😉
@@ -93,6 +101,7 @@ func (t *tracker) handleBlock(b *types.Block) { | |||
h := b.Header.Hash() | |||
if vms, has := t.voteMessages[h]; has { | |||
for _, v := range vms { | |||
// handleMessage would never error for vote message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe update the warn log? :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you want here? Add this comment in log or remove the log?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, going to try this on the devnet to make sure there's no regressions, then i will approve :p
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
@noot @kishansagathiya should we add in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ossamer into kishan/task/grandpa-messages
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
Changes
addVote
for more context)Tests
dot/network
andlib/grandpa
passes and so does other relevant testsIssues
Primary Reviewer