-
Notifications
You must be signed in to change notification settings - Fork 324
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
[consensus] Add proposer role #3814
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -408,11 +408,13 @@ func (m *ConsensusFSM) prepare(evt fsm.Event) (fsm.State, error) { | |
} | ||
|
||
overtime := m.ctx.WaitUntilRoundStart() | ||
if proposal != nil { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be removed? since delegates only receive proposal, don't need to broadcast proposal There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or as phase 1, ENode and CNode still use the same dpos code? |
||
m.ctx.Broadcast(proposal) | ||
} | ||
if !m.ctx.IsDelegate() { | ||
return m.BackToPrepare(0) | ||
} | ||
if proposal != nil { | ||
m.ctx.Broadcast(proposal) | ||
m.ProduceReceiveBlockEvent(proposal) | ||
} | ||
|
||
|
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.
It is not a
TODO