minor changes

This commit is contained in:
Uttam Singh 2021-09-19 21:23:01 +05:30
parent f088f1f24f
commit da11e05e45
3 changed files with 2 additions and 6 deletions

View file

@ -134,13 +134,9 @@ func remoteConsole(ctx *cli.Context) error {
path = filepath.Join(path, "rinkeby") path = filepath.Join(path, "rinkeby")
} else if ctx.GlobalBool(utils.GoerliFlag.Name) { } else if ctx.GlobalBool(utils.GoerliFlag.Name) {
path = filepath.Join(path, "goerli") 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() homeDir, _ := os.UserHomeDir()
path = filepath.Join(homeDir, "/.bor/data") 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) endpoint = fmt.Sprintf("%s/geth.ipc", path)
} }

View file

@ -429,7 +429,7 @@ func DefaultBorMainnetGenesisBlock() *Genesis {
Difficulty: big.NewInt(1), Difficulty: big.NewInt(1),
Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),
Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"), Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"),
Alloc: readPrealloc("allocs/bormainnet.json"), Alloc: readPrealloc("allocs/bor_mainnet.json"),
Number: 0x0, Number: 0x0,
GasUsed: 0x0, GasUsed: 0x0,
ParentHash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), ParentHash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"),