From 4fecc7a3b1b9c51efad47ea128abcb7259158487 Mon Sep 17 00:00:00 2001 From: mr_franklin Date: Tue, 13 Nov 2018 17:57:46 +0800 Subject: eth: fix minor grammar issue in comment (#18091) --- eth/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eth') diff --git a/eth/handler.go b/eth/handler.go index 1f62d820e..bd227a84e 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -653,7 +653,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error { trueHead = request.Block.ParentHash() 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 { p.SetHead(trueHead, trueTD) -- cgit v1.2.3