Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rauljordan committed Apr 26, 2019
1 parent 01f69e3 commit 11ce6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/sync/initial-sync/sync_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *InitialSync) processBatchedBlocks(msg p2p.Message) {
if msg.Peer != s.bestPeer {
// Only process batch block responses that come from the best peer
// we originally synced with.
log.Debugf("Received batch blocks from a different peer: %s", msg.Peer.Pretty())
log.WithField("peerID", msg.Peer.Pretty()).Debug("Received batch blocks from a different peer")
return
}

Expand Down
4 changes: 2 additions & 2 deletions beacon-chain/sync/querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (q *Querier) run() {
case <-ticker.C:
q.RequestLatestHead()
case <-timeout:
queryLog.Infof("Peer with highest canonical head: %v", q.bestPeer.Pretty())
queryLog.WithField("peerID", q.bestPeer.Pretty()).Info("Peer with highest canonical head")
queryLog.Infof(
"Latest chain head is at slot: %d and state root: %#x",
q.currentHeadSlot-params.BeaconConfig().GenesisSlot, q.currentStateRoot,
Expand All @@ -187,7 +187,7 @@ func (q *Querier) run() {
}
}

// RequestLatestHead sends a request for all
// RequestLatestHead broadcasts a request for
// the latest chain head slot and state root to a peer.
func (q *Querier) RequestLatestHead() {
request := &pb.ChainHeadRequest{}
Expand Down

0 comments on commit 11ce6ad

Please sign in to comment.