Merge branch 'master' of github.com:harmony-one/harmony into staking_tx

pull/1806/head
Rongjian Lan 5 years ago
commit 8e5a5237a2
  1. 2
      api/client/service/server.go
  2. 2
      api/proto/message/server.go
  3. 2
      api/service/syncing/downloader/server.go
  4. 3
      node/service_setup.go
  5. 2
      scripts/node.sh

@ -43,7 +43,7 @@ func (s *Server) GetFreeToken(ctx context.Context, request *proto.GetFreeTokenRe
func (s *Server) Start(ip, port string) (*grpc.Server, error) {
// TODO(minhdoan): Currently not using ip. Fix it later.
addr := net.JoinHostPort("", port)
lis, err := net.Listen("tcp", addr)
lis, err := net.Listen("tcp4", addr)
if err != nil {
log.Fatalf("failed to listen: %v", err)
}

@ -81,7 +81,7 @@ func (s *Server) Process(ctx context.Context, message *Message) (*Response, erro
// Start starts the Server on given ip and port.
func (s *Server) Start() (*grpc.Server, error) {
addr := net.JoinHostPort(IP, Port)
lis, err := net.Listen("tcp", addr)
lis, err := net.Listen("tcp4", addr)
if err != nil {
log.Fatalf("failed to listen: %v", err)
}

@ -43,7 +43,7 @@ func (s *Server) Query(ctx context.Context, request *pb.DownloaderRequest) (*pb.
// Start starts the Server on given ip and port.
func (s *Server) Start(ip, port string) (*grpc.Server, error) {
addr := net.JoinHostPort("", port)
lis, err := net.Listen("tcp", addr)
lis, err := net.Listen("tcp4", addr)
if err != nil {
log.Fatalf("[SYNC] failed to listen: %v", err)
}

@ -27,8 +27,11 @@ func (node *Node) setupForValidator() {
node.serviceManager.RegisterService(service.Consensus, consensus.New(node.BlockChannel, node.Consensus, node.startConsensus))
// Register new block service.
node.serviceManager.RegisterService(service.BlockProposal, blockproposal.New(node.Consensus.ReadySignal, node.WaitForConsensusReadyV2))
if node.NodeConfig.GetNetworkType() != nodeconfig.Mainnet {
// Register client support service.
node.serviceManager.RegisterService(service.ClientSupport, clientsupport.New(node.Blockchain().State, node.CallFaucetContract, node.SelfPeer.IP, node.SelfPeer.Port))
}
// Register new metrics service
if node.NodeConfig.GetMetricsFlag() {
node.serviceManager.RegisterService(service.Metrics, metrics.New(&node.SelfPeer, node.NodeConfig.ConsensusPubKey.SerializeToHexStr(), node.NodeConfig.GetPushgatewayIP(), node.NodeConfig.GetPushgatewayPort()))

@ -1,6 +1,6 @@
#!/usr/bin/env bash
version="v1 20190924.0"
version="v1 20191105.1"
unset -v progname
progname="${0##*/}"

Loading…
Cancel
Save