diff options
author | Felix Lange <fjl@twurst.com> | 2017-02-27 20:53:30 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-02-28 00:19:41 +0800 |
commit | 35e8308bf76df11c3c1e8d11fac782814583ea5c (patch) | |
tree | 97ce8c63d93b4e01133bbcfab4155f4796b4e71d /les | |
parent | fc97c7a38dc5193ef5e32de42235b6facf609c41 (diff) | |
download | dexon-35e8308bf76df11c3c1e8d11fac782814583ea5c.tar.gz dexon-35e8308bf76df11c3c1e8d11fac782814583ea5c.tar.zst dexon-35e8308bf76df11c3c1e8d11fac782814583ea5c.zip |
eth, les: shorten genesis block mismatch error message
Diffstat (limited to 'les')
-rw-r--r-- | les/peer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/les/peer.go b/les/peer.go index fc3591c78..4d00f3df9 100644 --- a/les/peer.go +++ b/les/peer.go @@ -367,7 +367,7 @@ func (p *peer) Handshake(td *big.Int, head common.Hash, headNum uint64, genesis } if rGenesis != genesis { - return errResp(ErrGenesisBlockMismatch, "%x (!= %x)", rGenesis, genesis) + return errResp(ErrGenesisBlockMismatch, "%x (!= %x)", rGenesis[:8], genesis[:8]) } if int(rNetwork) != p.network { return errResp(ErrNetworkIdMismatch, "%d (!= %d)", rNetwork, p.network) |