aboutsummaryrefslogtreecommitdiffstats
path: root/ethrpc
diff options
context:
space:
mode:
Diffstat (limited to 'ethrpc')
-rw-r--r--ethrpc/server.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/ethrpc/server.go b/ethrpc/server.go
index 40787fade..a612f1163 100644
--- a/ethrpc/server.go
+++ b/ethrpc/server.go
@@ -48,15 +48,15 @@ func (s *JsonRpcServer) Start() {
}
}
-func NewJsonRpcServer(ethp *ethpub.PEthereum) *JsonRpcServer {
- l, err := net.Listen("tcp", ":30304")
+func NewJsonRpcServer(ethp *ethpub.PEthereum) (*JsonRpcServer, error) {
+ l, err := net.Listen("tcp", ":8080")
if err != nil {
- ethutil.Config.Log.Infoln("Error starting JSON-RPC")
+ return nil, err
}
return &JsonRpcServer{
listener: l,
quit: make(chan bool),
ethp: ethp,
- }
+ }, nil
}