diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-29 17:01:01 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-29 22:04:55 +0800 |
commit | 0d89e6c2f140a26fd615e9ebac08b17dd22a9616 (patch) | |
tree | 737010666484db69256664990d107419a1945b41 /params/util.go | |
parent | 7cbcae3fac56815cb76298b2dfe4d2e334683ed5 (diff) | |
download | dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar.gz dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar.bz2 dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar.lz dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar.xz dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.tar.zst dexon-0d89e6c2f140a26fd615e9ebac08b17dd22a9616.zip |
cmd/utils, params: homestead block
Diffstat (limited to 'params/util.go')
-rw-r--r-- | params/util.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/params/util.go b/params/util.go index 856a39e3a..0a14f0374 100644 --- a/params/util.go +++ b/params/util.go @@ -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 |