|
|
|
@ -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) |
|
|
|
|