You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need to verify block justification when receiving a finalization message (in grandpa MessageHandler.HandleMessage)
if justification is valid, mark block as final (ie call blockState.SetFinalizedHash())
since grandpa.Justification includes the authority public key and signature, we need to check that:
the signature is valid (need setID and stage to recreate signed FullVote, stage=precommit, use current grandpa setID, eventually can use block number -> setID map)
the authority was in the set indicated by the setID
the total # of signatures is >=2/3 the number of voters in the set
the justification verification will have overlap with #1070
Expected Behavior
MessageHandler.HandleMessage
)blockState.SetFinalizedHash()
)grandpa.Justification
includes the authority public key and signature, we need to check that:FullVote
, stage=precommit, use current grandpa setID, eventually can use block number -> setID map)the justification verification will have overlap with #1070
Current Behavior
Checklist
The text was updated successfully, but these errors were encountered: