Browse Source

consensus: fix panic on POLRound=-1

pull/314/head
Ethan Buchman 8 years ago
parent
commit
7afcf92539
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/reactor.go

+ 1
- 1
consensus/reactor.go View File

@ -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,


Loading…
Cancel
Save