Skip to content

Commit aee77ab

Browse files
authored
chore(config): json marshal chainName (#9865)
As the other fields are json marshaled into lowerUpper case, we should use the same style. --------- Signed-off-by: jsvisa <[email protected]>
1 parent 9001183 commit aee77ab

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

erigon-lib/chain/chain_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ import (
3232
// that any network, identified by its genesis block, can have its own
3333
// set of configuration options.
3434
type Config struct {
35-
ChainName string
36-
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection
35+
ChainName string `json:"chainName"` // chain name, eg: mainnet, sepolia, bor-mainnet
36+
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection
3737

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

params/chainspecs/amoy.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "amoy",
2+
"chainName": "amoy",
33
"chainId": 80002,
44
"consensus": "bor",
55
"homesteadBlock": 0,

params/chainspecs/bor-devnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "bor-devnet",
2+
"chainName": "bor-devnet",
33
"chainId": 1337,
44
"consensus": "bor",
55
"homesteadBlock": 0,

params/chainspecs/bor-mainnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "bor-mainnet",
2+
"chainName": "bor-mainnet",
33
"chainId": 137,
44
"consensus": "bor",
55
"homesteadBlock": 0,

params/chainspecs/chiado.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "chiado",
2+
"chainName": "chiado",
33
"chainId": 10200,
44
"consensus": "aura",
55
"homesteadBlock": 0,

params/chainspecs/gnosis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "gnosis",
2+
"chainName": "gnosis",
33
"chainId": 100,
44
"consensus": "aura",
55
"homesteadBlock": 0,

params/chainspecs/goerli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "goerli",
2+
"chainName": "goerli",
33
"chainId": 5,
44
"consensus": "clique",
55
"homesteadBlock": 0,

params/chainspecs/mainnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "mainnet",
2+
"chainName": "mainnet",
33
"chainId": 1,
44
"consensus": "ethash",
55
"homesteadBlock": 1150000,

params/chainspecs/mumbai.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "mumbai",
2+
"chainName": "mumbai",
33
"chainId": 80001,
44
"consensus": "bor",
55
"homesteadBlock": 0,

params/chainspecs/sepolia.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"ChainName": "sepolia",
2+
"chainName": "sepolia",
33
"chainId": 11155111,
44
"consensus": "ethash",
55
"homesteadBlock": 0,

0 commit comments

Comments
 (0)