|
|
@ -104,7 +104,7 @@ func (node *Node) setupForNewNode() { |
|
|
|
nodeConfig, chanPeer := node.initNodeConfiguration() |
|
|
|
nodeConfig, chanPeer := node.initNodeConfiguration() |
|
|
|
|
|
|
|
|
|
|
|
// Register staking service.
|
|
|
|
// Register staking service.
|
|
|
|
node.serviceManager.RegisterService(service.Staking, staking.New(node.host, node.AccountKey, node.beaconChain, node.NodeConfig.ConsensusPubKey)) |
|
|
|
node.serviceManager.RegisterService(service.Staking, staking.New(node.host, node.StakingAccount, node.beaconChain, node.NodeConfig.ConsensusPubKey)) |
|
|
|
// Register peer discovery service. "0" is the beacon shard ID
|
|
|
|
// Register peer discovery service. "0" is the beacon shard ID
|
|
|
|
node.serviceManager.RegisterService(service.PeerDiscovery, discovery.New(node.host, nodeConfig, chanPeer, node.AddBeaconPeer)) |
|
|
|
node.serviceManager.RegisterService(service.PeerDiscovery, discovery.New(node.host, nodeConfig, chanPeer, node.AddBeaconPeer)) |
|
|
|
// Register networkinfo service. "0" is the beacon shard ID
|
|
|
|
// Register networkinfo service. "0" is the beacon shard ID
|
|
|
|