[release/1.3.4] cmd/utils, params: homestead block
(cherry picked from commit e22fd22c97b4f5d4af118dca3fb2cb6292a520a6) Conflicts: cmd/utils/flags.go
This commit is contained in:
parent
5f7e74d5c8
commit
61be63bb9b
|
@ -472,6 +472,8 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
|
|||
cfg.DataDir += "/testnet"
|
||||
cfg.NetworkId = 2
|
||||
cfg.TestNet = true
|
||||
// overwrite homestead block
|
||||
params.HomesteadBlock = params.TestNetHomesteadBlock
|
||||
}
|
||||
|
||||
if ctx.GlobalBool(VMEnableJitFlag.Name) {
|
||||
|
|
|
@ -18,7 +18,11 @@ package params
|
|||
|
||||
import "math/big"
|
||||
|
||||
var HomesteadBlock *big.Int = big.NewInt(2000000)
|
||||
var (
|
||||
TestNetHomesteadBlock = big.NewInt(494000) // testnet homestead block
|
||||
MainNetHomesteadBlock = big.NewInt(1150000) // mainnet homestead block
|
||||
HomesteadBlock = MainNetHomesteadBlock // homestead block used to check against
|
||||
)
|
||||
|
||||
func IsHomestead(blockNumber *big.Int) bool {
|
||||
// for unit tests TODO: flip to true after homestead is live
|
||||
|
|
Loading…
Reference in New Issue