diff --git a/blockchain/pool_test.go b/blockchain/pool_test.go index e8e982644..43ddbaddf 100644 --- a/blockchain/pool_test.go +++ b/blockchain/pool_test.go @@ -92,7 +92,7 @@ func TestTimeout(t *testing.T) { defer pool.Stop() for _, peer := range peers { - t.Logf("Peer #%v", peer.id) + t.Logf("Peer %v", peer.id) } // Introduce each peer. @@ -123,7 +123,7 @@ func TestTimeout(t *testing.T) { for { select { case peerID := <-timeoutsCh: - t.Logf("Peer #%v timeouted", peerID) + t.Logf("Peer %v timeouted", peerID) if _, ok := timedOut[peerID]; !ok { counter++ if counter == len(peers) { @@ -131,7 +131,7 @@ func TestTimeout(t *testing.T) { } } case request := <-requestsCh: - t.Logf("Pulled new BlockRequest %v", request) + t.Logf("Pulled new BlockRequest %+v", request) } } } diff --git a/consensus/state.go b/consensus/state.go index 3ccf4be94..b0822c4ac 100644 --- a/consensus/state.go +++ b/consensus/state.go @@ -1293,7 +1293,7 @@ func (cs *ConsensusState) addProposalBlockPart(height int, part *types.Part, ver var err error cs.ProposalBlock = wire.ReadBinary(&types.Block{}, cs.ProposalBlockParts.GetReader(), types.MaxBlockSize, &n, &err).(*types.Block) // NOTE: it's possible to receive complete proposal blocks for future rounds without having the proposal - cs.Logger.Info("Received complete proposal block", "height", cs.ProposalBlock.Height, "hash", cs.ProposalBlock.Hash()) + cs.Logger.Info("Received complete proposal block", "height", cs.ProposalBlock.Height, "hash", fmt.Sprintf("%X", cs.ProposalBlock.Hash())) if cs.Step == RoundStepPropose && cs.isProposalComplete() { // Move onto the next step cs.enterPrevote(height, cs.Round)