cmd/utils, params: homestead block

This commit is contained in:
Jeffrey Wilcke
2016-02-29 10:01:01 +01:00
parent 7cbcae3fac
commit 0d89e6c2f1
2 changed files with 7 additions and 1 deletions

View File

@ -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(2000000) // 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