From 7afcf92539867f74161b705e69f3637b05f48d1c Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 13 Sep 2016 16:24:31 -0400 Subject: [PATCH] consensus: fix panic on POLRound=-1 --- consensus/reactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/reactor.go b/consensus/reactor.go index d98955740..dc9fe2c3f 100644 --- a/consensus/reactor.go +++ b/consensus/reactor.go @@ -623,7 +623,7 @@ OUTER_LOOP: { rs := conR.conS.GetRoundState() prs := ps.GetRoundState() - if rs.Height == prs.Height { + if rs.Height == prs.Height && prs.ProposalPOLRound >= 0 { if maj23, ok := rs.Votes.Prevotes(prs.ProposalPOLRound).TwoThirdsMajority(); ok { peer.TrySend(DataChannel, struct{ ConsensusMessage }{&VoteSetMaj23Message{ Height: prs.Height,