From 52334bb063ab81d3fdf7be8a374c6229cdcd9186 Mon Sep 17 00:00:00 2001 From: Chao Ma Date: Thu, 29 Aug 2019 00:08:56 -0700 Subject: [PATCH] enable beacon syncing --- cmd/harmony/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index d073c180c..88018e169 100644 --- a/cmd/harmony/main.go +++ b/cmd/harmony/main.go @@ -442,7 +442,8 @@ func main() { nodeConfig := createGlobalConfig() currentNode := setupConsensusAndNode(nodeConfig) - if currentNode.Blockchain().ShardID() != 0 { + if nodeConfig.ShardID != 0 { + utils.GetLogInstance().Info("SupportBeaconSyncing", "shardID", currentNode.Blockchain().ShardID(), "shardID1", nodeConfig.ShardID) go currentNode.SupportBeaconSyncing() }