core/types, params: EIP#155
This commit is contained in:
@ -174,7 +174,7 @@ func NewEnv(config *Config) *Env {
|
||||
}
|
||||
|
||||
func (self *Env) ChainConfig() *params.ChainConfig {
|
||||
return ¶ms.ChainConfig{new(big.Int), new(big.Int), true, new(big.Int), common.Hash{}, new(big.Int)}
|
||||
return params.TestChainConfig
|
||||
}
|
||||
func (self *Env) Vm() Vm { return self.evm }
|
||||
func (self *Env) Origin() common.Address { return common.Address{} }
|
||||
|
@ -57,7 +57,7 @@ type Config struct {
|
||||
// sets defaults on the config
|
||||
func setDefaults(cfg *Config) {
|
||||
if cfg.ChainConfig == nil {
|
||||
cfg.ChainConfig = ¶ms.ChainConfig{new(big.Int), new(big.Int), false, new(big.Int), common.Hash{}, new(big.Int)}
|
||||
cfg.ChainConfig = ¶ms.ChainConfig{big.NewInt(1), new(big.Int), new(big.Int), false, new(big.Int), common.Hash{}, new(big.Int), new(big.Int), new(big.Int)}
|
||||
}
|
||||
|
||||
if cfg.Difficulty == nil {
|
||||
|
Reference in New Issue
Block a user