Skip to content

Commit

Permalink
core/vm/runtime: fixed go vet
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Nov 13, 2016
1 parent 0231d8f commit 648bd22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/vm/runtime/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,15 @@ type Config struct {
// sets defaults on the config
func setDefaults(cfg *Config) {
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 {
Expand Down

0 comments on commit 648bd22

Please sign in to comment.