Browse Source

fix logging proposal when we might not have it

pull/176/head
Ethan Buchman 9 years ago
parent
commit
94194fea46
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/state.go

+ 1
- 1
consensus/state.go View File

@ -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…
Cancel
Save