Skip to content

Commit 61be63b

Browse files
committed
[release/1.3.4] cmd/utils, params: homestead block
(cherry picked from commit e22fd22c97b4f5d4af118dca3fb2cb6292a520a6) Conflicts: cmd/utils/flags.go
1 parent 5f7e74d commit 61be63b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cmd/utils/flags.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
472472
cfg.DataDir += "/testnet"
473473
cfg.NetworkId = 2
474474
cfg.TestNet = true
475+
// overwrite homestead block
476+
params.HomesteadBlock = params.TestNetHomesteadBlock
475477
}
476478

477479
if ctx.GlobalBool(VMEnableJitFlag.Name) {

params/util.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ package params
1818

1919
import "math/big"
2020

21-
var HomesteadBlock *big.Int = big.NewInt(2000000)
21+
var (
22+
TestNetHomesteadBlock = big.NewInt(494000) // testnet homestead block
23+
MainNetHomesteadBlock = big.NewInt(1150000) // mainnet homestead block
24+
HomesteadBlock = MainNetHomesteadBlock // homestead block used to check against
25+
)
2226

2327
func IsHomestead(blockNumber *big.Int) bool {
2428
// for unit tests TODO: flip to true after homestead is live

0 commit comments

Comments
 (0)