@@ -555,29 +555,21 @@ func (p *player) handleMessageEvent(r routerHandle, e messageEvent) (actions []a
555
555
case payloadPipelined :
556
556
ep := ef .(payloadProcessedEvent )
557
557
if ep .Round == p .Round {
558
- up := e .Input .UnauthenticatedProposal
559
- uv := ef .(payloadProcessedEvent ).Vote .u ()
560
-
561
- a := relayAction (e , protocol .ProposalPayloadTag , compoundMessage {Proposal : up , Vote : uv })
562
- actions = append (actions , a )
563
558
return append (actions , verifyPayloadAction (e , ep .Round , ep .Period , ep .Pinned ))
564
559
}
565
560
}
566
561
567
- // relay as the proposer
568
- if e .Input .MessageHandle == nil {
569
- var uv unauthenticatedVote
570
- switch ef .t () {
571
- case payloadPipelined , payloadAccepted :
572
- uv = ef .(payloadProcessedEvent ).Vote .u ()
573
- case proposalCommittable :
574
- uv = ef .(committableEvent ).Vote .u ()
575
- }
576
- up := e .Input .UnauthenticatedProposal
577
-
578
- a := relayAction (e , protocol .ProposalPayloadTag , compoundMessage {Proposal : up , Vote : uv })
579
- actions = append (actions , a )
562
+ var uv unauthenticatedVote
563
+ switch ef .t () {
564
+ case payloadPipelined , payloadAccepted :
565
+ uv = ef .(payloadProcessedEvent ).Vote .u ()
566
+ case proposalCommittable :
567
+ uv = ef .(committableEvent ).Vote .u ()
580
568
}
569
+ up := e .Input .UnauthenticatedProposal
570
+
571
+ a := relayAction (e , protocol .ProposalPayloadTag , compoundMessage {Proposal : up , Vote : uv })
572
+ actions = append (actions , a )
581
573
582
574
// If the payload is valid, check it against any received cert threshold.
583
575
// Of course, this should only trigger for payloadVerified case.
0 commit comments