diff --git a/cmd/devp2p/nodesetcmd.go b/cmd/devp2p/nodesetcmd.go index 3bdc052d289f6585e74d8ca101de62c4e53efc04..ae636f5caab6c067f3b58fbf480e7bd8657f120f 100644 --- a/cmd/devp2p/nodesetcmd.go +++ b/cmd/devp2p/nodesetcmd.go @@ -235,7 +235,7 @@ func ethFilter(args []string) (nodeFilter, error) { filter = forkid.NewStaticFilter(params.GoerliChainConfig, params.GoerliGenesisHash) case "ropsten": filter = forkid.NewStaticFilter(params.RopstenChainConfig, params.RopstenGenesisHash) - case "mumbai": + case "bor-mumbai": filter = forkid.NewStaticFilter(params.MumbaiChainConfig, params.MumbaiGenesisHash) case "bor-mainnet": filter = forkid.NewStaticFilter(params.BorMainnetChainConfig, params.BorMainnetGenesisHash) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index 981b7b6afc5c5857657c55d636720016254ecc82..4d0018eb2d9b03e9cff96b563a77747aecccef10 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -88,7 +88,7 @@ var ( goerliFlag = flag.Bool("goerli", false, "Initializes the faucet with Görli network config") rinkebyFlag = flag.Bool("rinkeby", false, "Initializes the faucet with Rinkeby network config") - mumbaiFlag = flag.Bool("mumbai", false, "Initializes the faucet with Mumbai network config") + mumbaiFlag = flag.Bool("bor-mumbai", false, "Initializes the faucet with Bor-Mumbai network config") ) var ( diff --git a/cmd/geth/main.go b/cmd/geth/main.go index d827558371fc02ef676065638cf4f9dfe3253582..8c8aecf4d1e50f8f289f9a4d64922a76f0ea464f 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -297,7 +297,7 @@ func prepare(ctx *cli.Context) { log.Info("Starting Geth on Ethereum mainnet...") } // If we're a full node on mainnet without --cache specified, bump default cache allowance - if ctx.GlobalString(utils.SyncModeFlag.Name) != "light" && !ctx.GlobalIsSet(utils.CacheFlag.Name) && !ctx.GlobalIsSet(utils.BorMainnetFlag.Name) && !ctx.GlobalIsSet(utils.NetworkIdFlag.Name) { + if ctx.GlobalString(utils.SyncModeFlag.Name) != "light" && !ctx.GlobalIsSet(utils.CacheFlag.Name) && !ctx.GlobalIsSet(utils.NetworkIdFlag.Name) { // Make sure we're not on any supported preconfigured testnet either if !ctx.GlobalIsSet(utils.RopstenFlag.Name) && !ctx.GlobalIsSet(utils.RinkebyFlag.Name) && !ctx.GlobalIsSet(utils.GoerliFlag.Name) && !ctx.GlobalIsSet(utils.MumbaiFlag.Name) && !ctx.GlobalIsSet(utils.DeveloperFlag.Name) { // Nope, we're really on mainnet. Bump that cache up! diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index bf8e3c64afef9de18d1acf08155f763b3cb320cc..6fc76eddc3cc34a765105037f9ca529954319a8e 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -156,7 +156,7 @@ var ( Usage: "Ropsten network: pre-configured proof-of-work test network", } MumbaiFlag = cli.BoolFlag{ - Name: "mumbai", + Name: "bor-mumbai", Usage: "Mumbai network: pre-configured proof-of-stake test network", } BorMainnetFlag = cli.BoolFlag{ @@ -805,7 +805,7 @@ func MakeDataDir(ctx *cli.Context) string { if ctx.GlobalBool(GoerliFlag.Name) { return filepath.Join(path, "goerli") } - if ctx.GlobalBool(MumbaiFlag.Name) { + if ctx.GlobalBool(MumbaiFlag.Name) || ctx.GlobalBool(BorMainnetFlag.Name) { homeDir, _ := os.UserHomeDir() return filepath.Join(homeDir, "/.bor/data") } diff --git a/core/genesis.go b/core/genesis.go index 278879777f9b917cfc443e613e877220170a3935..01a914ac62e4643c06e12df417b45fb0ca388aa7 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -423,16 +423,13 @@ func DefaultMumbaiGenesisBlock() *Genesis { func DefaultBorMainnetGenesisBlock() *Genesis { return &Genesis{ Config: params.BorMainnetChainConfig, - Nonce: 0x0, - Timestamp: 0x5ED20F84, - GasLimit: 0x989680, + Nonce: 0, + Timestamp: 1590824836, + GasLimit: 10000000, Difficulty: big.NewInt(1), Mixhash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), Coinbase: common.HexToAddress("0x0000000000000000000000000000000000000000"), Alloc: readPrealloc("allocs/bor_mainnet.json"), - Number: 0x0, - GasUsed: 0x0, - ParentHash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), } } diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 7ae662f76751166c0dc03e80eebb77b62f82b8df..74bb9a6a7cbdc0ee442f5b00fa22f5c76afb0ca4 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -246,10 +246,7 @@ func Setup(ctx *cli.Context) error { // This context value ("metrics.addr") represents the utils.MetricsHTTPFlag.Name. // It cannot be imported because it will cause a cyclical dependency. StartPProf(address, !ctx.GlobalIsSet("metrics.addr")) - } else if ctx.GlobalIsSet("mumbai") { - address := fmt.Sprintf("%s:%d", "0.0.0.0", 7071) - StartPProf(address, !ctx.GlobalIsSet("metrics.addr")) - } else if ctx.GlobalIsSet("bor-mainnet") { + } else if ctx.GlobalIsSet("bor-mumbai") || ctx.GlobalIsSet("bor-mainnet") { address := fmt.Sprintf("%s:%d", "0.0.0.0", 7071) StartPProf(address, !ctx.GlobalIsSet("metrics.addr")) } diff --git a/params/config.go b/params/config.go index 132d7c962d24ba8785df6308e342db2feb502ded..163f9656f83f8cfdd0de1dd72a1c9e9742ef04af 100644 --- a/params/config.go +++ b/params/config.go @@ -251,8 +251,10 @@ var ( BorMainnetChainConfig = &ChainConfig{ ChainID: big.NewInt(137), HomesteadBlock: big.NewInt(0), - EIP150Block: big.NewInt(0), + DAOForkBlock: nil, + DAOForkSupport: true, EIP150Hash: common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000"), + EIP150Block: big.NewInt(0), EIP155Block: big.NewInt(0), EIP158Block: big.NewInt(0), ByzantiumBlock: big.NewInt(0),