aboutsummaryrefslogtreecommitdiffstats
path: root/eth/peer.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-02-27 20:53:30 +0800
committerFelix Lange <fjl@twurst.com>2017-02-28 00:19:41 +0800
commit35e8308bf76df11c3c1e8d11fac782814583ea5c (patch)
tree97ce8c63d93b4e01133bbcfab4155f4796b4e71d /eth/peer.go
parentfc97c7a38dc5193ef5e32de42235b6facf609c41 (diff)
downloadgo-tangerine-35e8308bf76df11c3c1e8d11fac782814583ea5c.tar.gz
go-tangerine-35e8308bf76df11c3c1e8d11fac782814583ea5c.tar.zst
go-tangerine-35e8308bf76df11c3c1e8d11fac782814583ea5c.zip
eth, les: shorten genesis block mismatch error message
Diffstat (limited to 'eth/peer.go')
-rw-r--r--eth/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/peer.go b/eth/peer.go
index fcf528af6..e87438953 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -280,7 +280,7 @@ func (p *peer) readStatus(network int, status *statusData, genesis common.Hash)
return errResp(ErrDecode, "msg %v: %v", msg, err)
}
if status.GenesisBlock != genesis {
- return errResp(ErrGenesisBlockMismatch, "%x (!= %x)", status.GenesisBlock, genesis)
+ return errResp(ErrGenesisBlockMismatch, "%x (!= %x)", status.GenesisBlock[:8], genesis[:8])
}
if int(status.NetworkId) != network {
return errResp(ErrNetworkIdMismatch, "%d (!= %d)", status.NetworkId, network)