-
Notifications
You must be signed in to change notification settings - Fork 100
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
Fix prepare request in recovery message #765
Conversation
It can be set on the receiver side as well, somewhere in
That's what NeoGo currently does in https://github.com/nspcc-dev/neo-go/blob/5eb4ba772f4d0e507d8a77699b3856f340c36fe8/pkg/consensus/recovery_message.go#L205 |
I agree with @roman-khimov , this will also be better for mainnet compatibility at this moment. |
@ZhangTao1596, I am double checking your commit, in fact, it will not affect payload serialization/de-serialization itself. |
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.
@superboyiii, if possible try an extended test.
We use to have Unit Tests for consensus, that we created sometime ago.
@erikzhang, do you know why they were not ported for neo-modules
?
That Akka tests can cover several cases, such as this.
I will. |
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.
Tested, it works well.
ValidatorIndex
is uninitialized and unassigned inPrepareRequestMessage
ofRecoveryMessage
. This will cause prepare request reverify failure when recovery.