Skip to content

Commit

Permalink
Add block height to logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
weiribao committed Dec 7, 2019
1 parent d959b06 commit 296c034
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netsync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ func (m *SyncManager) handleDataResponse(peerID string, data *dispatcher.DataRes
m.logger.WithFields(log.Fields{
"block.Hash": block.Hash().Hex(),
"block.Parent": block.Parent.Hex(),
"block.Height": block.Height,
"peer": peerID,
}).Debug("Received block")
m.handleBlock(block)
Expand All @@ -546,6 +547,7 @@ func (m *SyncManager) handleDataResponse(peerID string, data *dispatcher.DataRes
m.logger.WithFields(log.Fields{
"block.Hash": block.Hash().Hex(),
"block.Parent": block.Parent.Hex(),
"block.Height": block.Height,
"peer": peerID,
}).Debug("Received block")
m.handleBlock(block)
Expand Down

0 comments on commit 296c034

Please sign in to comment.