good morning!!!!

Skip to content
Snippets Groups Projects
Commit a9d5656a authored by Maran Hidskes's avatar Maran Hidskes
Browse files

Added support to NewJsonRpc to return an error as well as an interface

Also changed default port to 8080. Fixes #18
parent 3647cc5b
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment