Browse Source

has as a base16 string

pull/491/head
Anton Kaliaev 7 years ago
parent
commit
3e1343dc6b
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      blockchain/pool_test.go
  2. +1
    -1
      consensus/state.go

+ 3
- 3
blockchain/pool_test.go View File

@ -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)
}
}
}

+ 1
- 1
consensus/state.go View File

@ -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)


Loading…
Cancel
Save