Revert "[pangaea] temporary pause the harmony nodes on shard0/1" (#1383)

This reverts commit 4629f3e9be.
pull/1385/head
Christopher Liu 5 years ago committed by GitHub
parent f586234381
commit aa86b9f7df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      cmd/harmony/main.go

@ -267,16 +267,6 @@ func createGlobalConfig() *nodeconfig.ConfigType {
return nodeConfig
}
func _HarmonyNotice(shardID uint32) {
tick := time.NewTicker(20 * time.Second)
for {
select {
case <-tick.C:
utils.GetLogger().Info("Please wait for the blockain bootstrapping process", "Shard", shardID)
}
}
}
func setupConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
// Consensus object.
// TODO: consensus object shouldn't start here
@ -304,12 +294,6 @@ func setupConsensusAndNode(nodeConfig *nodeconfig.ConfigType) *node.Node {
chainDBFactory := &shardchain.LDBFactory{RootDir: nodeConfig.DBDir}
currentNode := node.New(nodeConfig.Host, currentConsensus, chainDBFactory, *isArchival)
// Temporary Pangaea fix to stop shard0/shard1 nodes, so that the shard can be rebooted
chain := currentNode.Blockchain()
if (chain.ShardID() == uint32(0) || chain.ShardID() == uint32(1)) && core.ShardingSchedule == shardingconfig.PangaeaSchedule {
_HarmonyNotice(chain.ShardID())
}
if *dnsZone != "" {
currentNode.SetDNSZone(*dnsZone)
} else if *dnsFlag {

Loading…
Cancel
Save