Skip to content

Commit

Permalink
chore(config): json marshal chainName (#9865)
Browse files Browse the repository at this point in the history
As the other fields are json marshaled into lowerUpper case, we should
use the same style.

---------

Signed-off-by: jsvisa <delweng@gmail.com>
  • Loading branch information
jsvisa authored Apr 26, 2024
1 parent 9001183 commit aee77ab
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions erigon-lib/chain/chain_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import (
// that any network, identified by its genesis block, can have its own
// set of configuration options.
type Config struct {
ChainName string
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection
ChainName string `json:"chainName"` // chain name, eg: mainnet, sepolia, bor-mainnet
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection

Consensus ConsensusName `json:"consensus,omitempty"` // aura, ethash or clique

Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/amoy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "amoy",
"chainName": "amoy",
"chainId": 80002,
"consensus": "bor",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/bor-devnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "bor-devnet",
"chainName": "bor-devnet",
"chainId": 1337,
"consensus": "bor",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/bor-mainnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "bor-mainnet",
"chainName": "bor-mainnet",
"chainId": 137,
"consensus": "bor",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/chiado.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "chiado",
"chainName": "chiado",
"chainId": 10200,
"consensus": "aura",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/gnosis.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "gnosis",
"chainName": "gnosis",
"chainId": 100,
"consensus": "aura",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/goerli.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "goerli",
"chainName": "goerli",
"chainId": 5,
"consensus": "clique",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/mainnet.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "mainnet",
"chainName": "mainnet",
"chainId": 1,
"consensus": "ethash",
"homesteadBlock": 1150000,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/mumbai.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "mumbai",
"chainName": "mumbai",
"chainId": 80001,
"consensus": "bor",
"homesteadBlock": 0,
Expand Down
2 changes: 1 addition & 1 deletion params/chainspecs/sepolia.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"ChainName": "sepolia",
"chainName": "sepolia",
"chainId": 11155111,
"consensus": "ethash",
"homesteadBlock": 0,
Expand Down

0 comments on commit aee77ab

Please sign in to comment.