aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormr_franklin <mr_franklin@126.com>2018-11-13 17:57:46 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-11-13 17:57:46 +0800
commit4fecc7a3b1b9c51efad47ea128abcb7259158487 (patch)
tree1cb28ac54ca9b0db154aa1a69de72e3aeee6fc7e
parent588aa88121db007b59142ed37e74800c09038a7a (diff)
downloaddexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar.gz
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar.bz2
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar.lz
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar.xz
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.tar.zst
dexon-4fecc7a3b1b9c51efad47ea128abcb7259158487.zip
eth: fix minor grammar issue in comment (#18091)
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
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)