eth: fix minor grammar issue in comment (#18091)

pull/18098/head
mr_franklin 6 years ago committed by Péter Szilágyi
parent 588aa88121
commit 4fecc7a3b1
  1. 2
      eth/handler.go

@ -653,7 +653,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
trueHead = request.Block.ParentHash() trueHead = request.Block.ParentHash()
trueTD = new(big.Int).Sub(request.TD, request.Block.Difficulty()) trueTD = new(big.Int).Sub(request.TD, request.Block.Difficulty())
) )
// Update the peers total difficulty if better than the previous // Update the peer's total difficulty if better than the previous
if _, td := p.Head(); trueTD.Cmp(td) > 0 { if _, td := p.Head(); trueTD.Cmp(td) > 0 {
p.SetHead(trueHead, trueTD) p.SetHead(trueHead, trueTD)

Loading…
Cancel
Save