aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-14 05:11:42 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-14 06:26:10 +0800
commit648bd22427000b6e20a5e1a9c397005aa1ad4f9b (patch)
treee06166bc787a7fdba9231fa740c84508f632c39a /core
parent0231d8f86dd1c12a4e308b4f120a89254dc2d02d (diff)
downloaddexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar.gz
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar.bz2
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar.lz
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar.xz
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.tar.zst
dexon-648bd22427000b6e20a5e1a9c397005aa1ad4f9b.zip
core/vm/runtime: fixed go vet
Diffstat (limited to 'core')
-rw-r--r--core/vm/runtime/runtime.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go
index c57747edc..d51b435f8 100644
--- a/core/vm/runtime/runtime.go
+++ b/core/vm/runtime/runtime.go
@@ -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 {