Only process shard state if non-beacon node

pull/693/head
Rongjian Lan 6 years ago
parent 73d863cf63
commit 22d605a2fc
  1. 2
      node/node_handler.go

@ -541,7 +541,9 @@ func (node *Node) epochShardStateMessageHandler(msgPayload []byte) int {
utils.GetLogInstance().Error("Can't get shard state Message", "error", err) utils.GetLogInstance().Error("Can't get shard state Message", "error", err)
return -1 return -1
} }
if node.Consensus.ShardID != 0 {
node.processEpochShardState(epochShardState) node.processEpochShardState(epochShardState)
}
return 0 return 0
} }

Loading…
Cancel
Save