core/vm/runtime: fixed go vet

pull/3179/head
Jeffrey Wilcke 8 years ago
parent 0231d8f86d
commit 648bd22427
  1. 10
      core/vm/runtime/runtime.go

@ -57,7 +57,15 @@ type Config struct {
// sets defaults on the config // sets defaults on the config
func setDefaults(cfg *Config) { func setDefaults(cfg *Config) {
if cfg.ChainConfig == nil { if cfg.ChainConfig == nil {
cfg.ChainConfig = &params.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)} cfg.ChainConfig = &params.ChainConfig{
ChainId: big.NewInt(1),
HomesteadBlock: new(big.Int),
DAOForkBlock: new(big.Int),
DAOForkSupport: false,
EIP150Block: new(big.Int),
EIP155Block: new(big.Int),
EIP158Block: new(big.Int),
}
} }
if cfg.Difficulty == nil { if cfg.Difficulty == nil {

Loading…
Cancel
Save