forked from cerc-io/plugeth
cmd/utils, params: homestead block
This commit is contained in:
parent
7cbcae3fac
commit
0d89e6c2f1
@ -672,6 +672,8 @@ func MakeSystemNode(name, version string, extra []byte, ctx *cli.Context) *node.
|
|||||||
ethConf.Genesis = core.TestNetGenesisBlock()
|
ethConf.Genesis = core.TestNetGenesisBlock()
|
||||||
}
|
}
|
||||||
state.StartingNonce = 1048576 // (2**20)
|
state.StartingNonce = 1048576 // (2**20)
|
||||||
|
// overwrite homestead block
|
||||||
|
params.HomesteadBlock = params.TestNetHomesteadBlock
|
||||||
|
|
||||||
case ctx.GlobalBool(DevModeFlag.Name):
|
case ctx.GlobalBool(DevModeFlag.Name):
|
||||||
// Override the base network stack configs
|
// Override the base network stack configs
|
||||||
|
@ -18,7 +18,11 @@ package params
|
|||||||
|
|
||||||
import "math/big"
|
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 {
|
func IsHomestead(blockNumber *big.Int) bool {
|
||||||
// for unit tests TODO: flip to true after homestead is live
|
// for unit tests TODO: flip to true after homestead is live
|
||||||
|
Loading…
Reference in New Issue
Block a user