Skip to content

Commit 304815d

Browse files
authored
Merge pull request #2082 from onetechnical/onetechnical/relstable2.5.5
go-algorand 2.5.5-stable
2 parents 7cd7aef + 14dd3bf commit 304815d

File tree

2 files changed

+11
-19
lines changed

2 files changed

+11
-19
lines changed

agreement/player.go

+10-18
Original file line numberDiff line numberDiff line change
@@ -555,29 +555,21 @@ func (p *player) handleMessageEvent(r routerHandle, e messageEvent) (actions []a
555555
case payloadPipelined:
556556
ep := ef.(payloadProcessedEvent)
557557
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)
563558
return append(actions, verifyPayloadAction(e, ep.Round, ep.Period, ep.Pinned))
564559
}
565560
}
566561

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()
580568
}
569+
up := e.Input.UnauthenticatedProposal
570+
571+
a := relayAction(e, protocol.ProposalPayloadTag, compoundMessage{Proposal: up, Vote: uv})
572+
actions = append(actions, a)
581573

582574
// If the payload is valid, check it against any received cert threshold.
583575
// Of course, this should only trigger for payloadVerified case.

buildnumber.dat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4
1+
5

0 commit comments

Comments
 (0)