[rpc] increase the offset of rpc port

The 10/20 offset will upset local test with more than 10 nodes being
launched.

The error I encountered is like:

panic: failed to listen on any addresses: [listen tcp4 0.0.0.0:9015: bind: address already in use]

goroutine 1 [running]:
github.com/harmony-one/harmony/p2p/host/hostv2.catchError(...)
        /Users/leochen/work/go/src/github.com/harmony-one/harmony/p2p/host/hostv2/util.go:10

Signed-off-by: Leo Chen <leo@harmony.one>
pull/870/head
Leo Chen 6 years ago
parent b53d8fb5bf
commit eab04af9c9
  1. 4
      node/rpc.go

@ -13,8 +13,8 @@ import (
)
const (
rpcHTTPPortOffset = 10
rpcWSPortOffset = 20
rpcHTTPPortOffset = 500
rpcWSPortOffset = 800
)
var (

Loading…
Cancel
Save