aboutsummaryrefslogtreecommitdiffstats
path: root/node/node.go
diff options
context:
space:
mode:
authorbas-vk <bas-vk@users.noreply.github.com>2017-04-13 05:04:14 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-04-13 05:04:14 +0800
commit5e29f4be935ff227bbf07a0c6e80e8809f5e0202 (patch)
tree18e1ef8db3c66c3bf777dc90326aa971f1343d34 /node/node.go
parent43671067fb453a1ed798bcc3d8016710460f2bdf (diff)
downloadgo-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar.gz
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar.bz2
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar.lz
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar.xz
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.tar.zst
go-tangerine-5e29f4be935ff227bbf07a0c6e80e8809f5e0202.zip
cmd/utils, node: remove unused solc references and improve RPC config (#14324)
Currently http cors and websocket origins are a comma separated string in the config object. These are replaced with string arrays that are more expressive in case of a config file.
Diffstat (limited to 'node/node.go')
-rw-r--r--node/node.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/node/node.go b/node/node.go
index 2ecff2308..dc2ff0701 100644
--- a/node/node.go
+++ b/node/node.go
@@ -372,7 +372,7 @@ func (n *Node) stopIPC() {
}
// startHTTP initializes and starts the HTTP RPC endpoint.
-func (n *Node) startHTTP(endpoint string, apis []rpc.API, modules []string, cors string) error {
+func (n *Node) startHTTP(endpoint string, apis []rpc.API, modules []string, cors []string) error {
// Short circuit if the HTTP endpoint isn't being exposed
if endpoint == "" {
return nil
@@ -426,7 +426,7 @@ func (n *Node) stopHTTP() {
}
// startWS initializes and starts the websocket RPC endpoint.
-func (n *Node) startWS(endpoint string, apis []rpc.API, modules []string, wsOrigins string) error {
+func (n *Node) startWS(endpoint string, apis []rpc.API, modules []string, wsOrigins []string) error {
// Short circuit if the WS endpoint isn't being exposed
if endpoint == "" {
return nil