From dddae05c891e4512aabd19c5bead8641d0c19452 Mon Sep 17 00:00:00 2001 From: Chris Hewison Date: Tue, 4 Oct 2022 11:30:34 +0900 Subject: [PATCH] Log the correct name for the Agora chain ids --- cmd/clef/main.go | 2 +- params/config.go | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/clef/main.go b/cmd/clef/main.go index 05290f52f..e3ab9a4d4 100644 --- a/cmd/clef/main.go +++ b/cmd/clef/main.go @@ -98,7 +98,7 @@ var ( chainIdFlag = &cli.Int64Flag{ Name: "chainid", Value: params.MainnetChainConfig.ChainID.Int64(), - Usage: "Chain id to use for signing (1=mainnet, 3=Ropsten, 4=Rinkeby, 5=Goerli)", + Usage: "Chain id to use for signing (2151=mainnet, 2019=Testnet)", } rpcPortFlag = &cli.IntFlag{ Name: "http.port", diff --git a/params/config.go b/params/config.go index 430fb53e8..f4915c5b4 100644 --- a/params/config.go +++ b/params/config.go @@ -423,7 +423,13 @@ func (c *ChainConfig) String() string { // Create some basinc network config output network := NetworkNames[c.ChainID.String()] if network == "" { - network = "unknown" + if c.ChainID.String() == "2151" { + network = "AGORA MAINNET" + } else if c.ChainID.String() == "2019" { + network = "AGORA TESTNET" + } else { + network = "unknown" + } } banner += fmt.Sprintf("Chain ID: %v (%s)\n", c.ChainID, network) switch {