From 00cc88ff7b64e88d51e9dd883e5688ab031d3ed1 Mon Sep 17 00:00:00 2001 From: Leeren Date: Thu, 24 Oct 2024 19:50:15 -0700 Subject: [PATCH] chore(cmd/flags): add moniker as init flag (#309) adds moniker as an init flag to override default node naming issue: none --- .github/workflows/build-release-artifacts.yml | 2 +- client/cmd/flags.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release-artifacts.yml b/.github/workflows/build-release-artifacts.yml index 2a5fad55..2b06d1bd 100644 --- a/.github/workflows/build-release-artifacts.yml +++ b/.github/workflows/build-release-artifacts.yml @@ -27,7 +27,7 @@ jobs: matrix: platform: [linux-amd64, linux-arm64, darwin-amd64, darwin-arm64] - + steps: - name: Checkout code uses: actions/checkout@v4.1.5 diff --git a/client/cmd/flags.go b/client/cmd/flags.go index 3b933d6b..17ac1387 100644 --- a/client/cmd/flags.go +++ b/client/cmd/flags.go @@ -51,6 +51,7 @@ func bindInitFlags(flags *pflag.FlagSet, cfg *InitConfig) { flags.StringVar(&cfg.Seeds, "seeds", "", "Override the P2P seeds (comma-separated)") flags.BoolVar(&cfg.SeedMode, "seed-mode", false, "Enable seed mode") flags.StringVar(&cfg.PersistentPeers, "persistent-peers", "", "Override the persistent peers (comma-separated)") + flags.StringVar(&cfg.Moniker, "moniker", "", "Declare a custom moniker for your node") } func bindValidatorBaseFlags(cmd *cobra.Command, cfg *baseConfig) {