From da11e05e45583022e5e75a88d5107364acf461ed Mon Sep 17 00:00:00 2001 From: Uttam Singh <uttamkhanduja@yahoo.in> Date: Sun, 19 Sep 2021 21:23:01 +0530 Subject: [PATCH] minor changes --- cmd/geth/consolecmd.go | 6 +----- core/allocs/{bormainnet.json => bor_mainnet.json} | 0 core/genesis.go | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) rename core/allocs/{bormainnet.json => bor_mainnet.json} (100%) diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go index c4f4ebe6b..f84055191 100644 --- a/cmd/geth/consolecmd.go +++ b/cmd/geth/consolecmd.go @@ -134,13 +134,9 @@ func remoteConsole(ctx *cli.Context) error { path = filepath.Join(path, "rinkeby") } else if ctx.GlobalBool(utils.GoerliFlag.Name) { path = filepath.Join(path, "goerli") - } else if ctx.GlobalBool(utils.MumbaiFlag.Name) { + } else if (ctx.GlobalBool(utils.MumbaiFlag.Name) || ctx.GlobalBool(utils.BorMainnetFlag.Name)) { homeDir, _ := os.UserHomeDir() path = filepath.Join(homeDir, "/.bor/data") - } else if ctx.GlobalBool(utils.BorMainnetFlag.Name) { - homeDir, _ := os.UserHomeDir() - path = filepath.Join(homeDir, "/.bor/data") - } } endpoint = fmt.Sprintf("%s/geth.ipc", path) } diff --git a/core/allocs/bormainnet.json b/core/allocs/bor_mainnet.json similarity index 100% rename from core/allocs/bormainnet.json rename to core/allocs/bor_mainnet.json diff --git a/core/genesis.go b/core/genesis.go index 1057a9b79..278879777 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -429,7 +429,7 @@ func DefaultBorMainnetGenesisBlock() *Genesis { Difficulty: big.NewInt(1), Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"), - Alloc: readPrealloc("allocs/bormainnet.json"), + Alloc: readPrealloc("allocs/bor_mainnet.json"), Number: 0x0, GasUsed: 0x0, ParentHash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), -- GitLab