Skip to content

Commit

Permalink
Log the correct name for the Agora chain ids
Browse files Browse the repository at this point in the history
  • Loading branch information
hewison-chris authored and MichaelKim20 committed Oct 4, 2022
1 parent 3c5fe78 commit dddae05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/clef/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 7 additions & 1 deletion params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dddae05

Please sign in to comment.