diff --git a/cmd/pocket_core/main.go b/cmd/pocket_core/main.go index 7df775558..cb26a2452 100644 --- a/cmd/pocket_core/main.go +++ b/cmd/pocket_core/main.go @@ -5,7 +5,7 @@ import ( "bufio" "fmt" "os" - + "github.com/pokt-network/pocket-core/config" "github.com/pokt-network/pocket-core/crypto" "github.com/pokt-network/pocket-core/logs" diff --git a/const/dispatcher.go b/const/dispatcher.go index 234c5cfc0..45c41368f 100644 --- a/const/dispatcher.go +++ b/const/dispatcher.go @@ -2,8 +2,8 @@ package _const const ( // for centralized dispatcher - DISPATCHGID = "DISPATCH" - DISPATCHIP = "127.0.0.1" + DISPATCHGID = "DISPATCH" + DISPATCHIP = "127.0.0.1" DISPATCHCLIENTPORT = "8080" - DISPATCHRELAYPORT = "8081" + DISPATCHRELAYPORT = "8081" ) diff --git a/message/handlers.go b/message/handlers.go index 57645a677..47a933f23 100644 --- a/message/handlers.go +++ b/message/handlers.go @@ -2,7 +2,7 @@ package message import ( "net" - + "github.com/pokt-network/pocket-core/session" ) diff --git a/node/list.go b/node/list.go index 257c540fd..b078b7c2d 100644 --- a/node/list.go +++ b/node/list.go @@ -4,7 +4,7 @@ import ( "encoding/json" "io/ioutil" "sync" - + "github.com/pokt-network/pocket-core/types" ) diff --git a/node/live.go b/node/live.go index 068878073..b18929827 100644 --- a/node/live.go +++ b/node/live.go @@ -3,7 +3,7 @@ package node import ( "fmt" "time" - + "github.com/pokt-network/pocket-core/const" "github.com/pokt-network/pocket-core/util" ) @@ -12,7 +12,7 @@ func Register() { if _, err := util.RPCRequest("http://"+_const.DISPATCHIP+":"+_const.DISPATCHCLIENTPORT+"/v1/register", GetSelf(), util.POST); err != nil { util.ExitGracefully("Error, unable to register node at Pocket Incorporated's Dispatcher") } - fmt.Println("Node registered successfully " , GetPeerList().M) + fmt.Println("Node registered successfully ", GetPeerList().M) } func UnRegister(count int) { diff --git a/node/whitelist.go b/node/whitelist.go index d0f657d13..3011a3e6a 100644 --- a/node/whitelist.go +++ b/node/whitelist.go @@ -5,7 +5,7 @@ import ( "fmt" "io/ioutil" "sync" - + "github.com/pokt-network/pocket-core/config" "github.com/pokt-network/pocket-core/types" ) diff --git a/rpc/client/live.go b/rpc/client/live.go index 12450af8c..07cd51027 100644 --- a/rpc/client/live.go +++ b/rpc/client/live.go @@ -2,7 +2,7 @@ package client import ( "net/http" - + "github.com/julienschmidt/httprouter" "github.com/pokt-network/pocket-core/node" "github.com/pokt-network/pocket-core/rpc/shared" diff --git a/rpc/client/routes.go b/rpc/client/routes.go index 6f7dba227..8974078ca 100644 --- a/rpc/client/routes.go +++ b/rpc/client/routes.go @@ -7,10 +7,10 @@ import ( // "ClientRoutes" is a function that returns all of the routes of the API. func ClientRoutes() shared.Routes { routes := shared.Routes{ - shared.Route{Name:"Register", Method: "POST", Path:"/v1/register", HandlerFunc: Register}, - shared.Route{Name:"UnRegister", Method:"POST", Path:"/v1/unregister", HandlerFunc: UnRegister}, - shared.Route{Name:"RegisterInfo", Method: "GET", Path:"/v1/register", HandlerFunc: RegisterInfo}, - shared.Route{Name:"UnRegisterInfo", Method:"GET", Path:"/v1/unregister", HandlerFunc: UnRegisterInfo}, + shared.Route{Name: "Register", Method: "POST", Path: "/v1/register", HandlerFunc: Register}, + shared.Route{Name: "UnRegister", Method: "POST", Path: "/v1/unregister", HandlerFunc: UnRegister}, + shared.Route{Name: "RegisterInfo", Method: "GET", Path: "/v1/register", HandlerFunc: RegisterInfo}, + shared.Route{Name: "UnRegisterInfo", Method: "GET", Path: "/v1/unregister", HandlerFunc: UnRegisterInfo}, shared.Route{Name: "GetClientAPIVersion", Method: "POST", Path: "/v1", HandlerFunc: GetClientAPIVersion}, shared.Route{Name: "GetAccount", Method: "POST", Path: "/v1/account", HandlerFunc: GetAccount}, shared.Route{Name: "IsAccountActive", Method: "POST", Path: "/v1/account/active", HandlerFunc: IsAccountActive}, diff --git a/session/list.go b/session/list.go index 11478065d..672777dd4 100644 --- a/session/list.go +++ b/session/list.go @@ -2,7 +2,7 @@ package session import ( "sync" - + "github.com/pokt-network/pocket-core/types" ) diff --git a/session/session.go b/session/session.go index 822fafa13..81bba2004 100644 --- a/session/session.go +++ b/session/session.go @@ -3,7 +3,7 @@ package session import ( "sync" - + "github.com/pokt-network/pocket-core/types" ) diff --git a/tests/message/session_test.go b/tests/message/session_test.go index 6ccb50563..981539a20 100644 --- a/tests/message/session_test.go +++ b/tests/message/session_test.go @@ -3,7 +3,7 @@ package message import ( "testing" "time" - + "github.com/pokt-network/pocket-core/message" "github.com/pokt-network/pocket-core/node" "github.com/pokt-network/pocket-core/session" diff --git a/tests/rpc/report_test.go b/tests/rpc/report_test.go index ff8b273ed..267060ad7 100644 --- a/tests/rpc/report_test.go +++ b/tests/rpc/report_test.go @@ -9,7 +9,7 @@ import ( "github.com/pokt-network/pocket-core/rpc/relay" "github.com/pokt-network/pocket-core/rpc/shared" "github.com/pokt-network/pocket-core/service" - + "io/ioutil" "log" "net/http"