has as a base16 string

This commit is contained in:
Anton Kaliaev 2017-05-12 17:40:57 +02:00
parent bc4e6566e7
commit 3e1343dc6b
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ func TestTimeout(t *testing.T) {
defer pool.Stop() defer pool.Stop()
for _, peer := range peers { for _, peer := range peers {
t.Logf("Peer #%v", peer.id) t.Logf("Peer %v", peer.id)
} }
// Introduce each peer. // Introduce each peer.
@ -123,7 +123,7 @@ func TestTimeout(t *testing.T) {
for { for {
select { select {
case peerID := <-timeoutsCh: case peerID := <-timeoutsCh:
t.Logf("Peer #%v timeouted", peerID) t.Logf("Peer %v timeouted", peerID)
if _, ok := timedOut[peerID]; !ok { if _, ok := timedOut[peerID]; !ok {
counter++ counter++
if counter == len(peers) { if counter == len(peers) {
@ -131,7 +131,7 @@ func TestTimeout(t *testing.T) {
} }
} }
case request := <-requestsCh: case request := <-requestsCh:
t.Logf("Pulled new BlockRequest %v", request) t.Logf("Pulled new BlockRequest %+v", request)
} }
} }
} }

View File

@ -1293,7 +1293,7 @@ func (cs *ConsensusState) addProposalBlockPart(height int, part *types.Part, ver
var err error var err error
cs.ProposalBlock = wire.ReadBinary(&types.Block{}, cs.ProposalBlockParts.GetReader(), types.MaxBlockSize, &n, &err).(*types.Block) 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 // 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() { if cs.Step == RoundStepPropose && cs.isProposalComplete() {
// Move onto the next step // Move onto the next step
cs.enterPrevote(height, cs.Round) cs.enterPrevote(height, cs.Round)