|
|
@ -15,6 +15,8 @@ import ( |
|
|
|
"sync/atomic" |
|
|
|
"sync/atomic" |
|
|
|
"time" |
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/services/explorer" |
|
|
|
|
|
|
|
|
|
|
|
"github.com/harmony-one/harmony/client" |
|
|
|
"github.com/harmony-one/harmony/client" |
|
|
|
clientService "github.com/harmony-one/harmony/client/service" |
|
|
|
clientService "github.com/harmony-one/harmony/client/service" |
|
|
|
|
|
|
|
|
|
|
@ -494,6 +496,16 @@ func (node *Node) SupportClient() { |
|
|
|
node.StartClientServer() |
|
|
|
node.StartClientServer() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// SupportExplorer initializes and starts the client service
|
|
|
|
|
|
|
|
func (node *Node) SupportExplorer() { |
|
|
|
|
|
|
|
es := explorer.Service{ |
|
|
|
|
|
|
|
IP: node.SelfPeer.IP, |
|
|
|
|
|
|
|
Port: node.SelfPeer.Port, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
es.Init(true) |
|
|
|
|
|
|
|
es.Run() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// InitClientServer initializes client server.
|
|
|
|
// InitClientServer initializes client server.
|
|
|
|
func (node *Node) InitClientServer() { |
|
|
|
func (node *Node) InitClientServer() { |
|
|
|
node.clientServer = clientService.NewServer(node.Chain.State, node.CallFaucetContract) |
|
|
|
node.clientServer = clientService.NewServer(node.Chain.State, node.CallFaucetContract) |
|
|
|