Print out shard ID assignment result upon startup

This makes it easier to support node operators.
pull/1939/head
Eugene Kim 5 years ago
parent 15f08d6aad
commit a5a5fb606b
  1. 4
      cmd/harmony/main.go

@ -466,6 +466,10 @@ func main() {
initialAccount.ShardID = uint32(shardIDBig.Uint64()) initialAccount.ShardID = uint32(shardIDBig.Uint64())
} }
} }
fmt.Printf("%s mode; node key %s -> shard %d\n",
map[bool]string{false: "Legacy", true: "Staking"}[*stakingFlag],
nodeconfig.GetDefaultConfig().ConsensusPubKey.SerializeToHexStr(),
initialAccount.ShardID)
if *nodeType != "validator" && *shardID >= 0 { if *nodeType != "validator" && *shardID >= 0 {
utils.Logger().Info(). utils.Logger().Info().

Loading…
Cancel
Save