-
Notifications
You must be signed in to change notification settings - Fork 215
final proof is now sent on the common topic with META #6516
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
Conversation
also small worker cleanup
| return err | ||
| } | ||
|
|
||
| mcm.broadcast(common.EquivalentProofsTopic, msgProof, pkBytes) |
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.
is this a topic between metachain and all shards?
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.
fixed
| // PrepareBroadcastFinalConsensusMessage prepares the validator final info data broadcast for when its turn comes | ||
| func (cm *commonMessenger) PrepareBroadcastFinalConsensusMessage(message *consensus.Message, consensusIndex int) { | ||
| err := cm.delayedBlockBroadcaster.SetFinalConsensusMessageForValidator(message, consensusIndex) | ||
| // PrepareBroadcastEquivalentProof prepares the validator final info data broadcast for when its turn comes |
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.
update comment message
| // BroadcastEquivalentProof will broadcast the proof for a header on the metachain common topic | ||
| func (mcm *metaChainMessenger) BroadcastEquivalentProof(proof *block.HeaderProof, pkBytes []byte) error { | ||
| if check.IfNilReflect(proof) { | ||
| return spos.ErrNilHeader |
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.
change error here
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.
updated
| // BroadcastEquivalentProof will broadcast the proof for a header on the shard metachain common topic | ||
| func (scm *shardChainMessenger) BroadcastEquivalentProof(proof *block.HeaderProof, pkBytes []byte) error { | ||
| if check.IfNilReflect(proof) { | ||
| return spos.ErrNilHeader |
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.
same here
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 we can have a common inner function here for shard and meta and pass the topic
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.
fixed
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.
applied the suggestion
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
featbranch created?featbranch merging, do all satellite projects have a proper tag insidego.mod?