From 94194fea464a78a3f2fd4d56c2cf801bdc19a654 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 29 Dec 2015 15:39:24 -0500 Subject: [PATCH] fix logging proposal when we might not have it --- consensus/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/state.go b/consensus/state.go index 76421325b..65eaa7313 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -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)