fix logging proposal when we might not have it
This commit is contained in:
parent
ceb6e1e95f
commit
94194fea46
|
@ -1215,7 +1215,7 @@ func (cs *ConsensusState) addProposalBlockPart(height int, part *types.Part) (ad
|
|||
var n int
|
||||
var err error
|
||||
cs.ProposalBlock = wire.ReadBinary(&types.Block{}, cs.ProposalBlockParts.GetReader(), types.MaxBlockSize, &n, &err).(*types.Block)
|
||||
log.Info("Received complete proposal", "hash", cs.ProposalBlock.Hash(), "round", cs.Proposal.Round)
|
||||
log.Info("Received complete proposal", "height", cs.ProposalBlock.Height, "hash", cs.ProposalBlock.Hash())
|
||||
if cs.Step == RoundStepPropose && cs.isProposalComplete() {
|
||||
// Move onto the next step
|
||||
cs.enterPrevote(height, cs.Round)
|
||||
|
|
Loading…
Reference in New Issue