good morning!!!!

Skip to content
Snippets Groups Projects
Commit aceaaa51 authored by Péter Szilágyi's avatar Péter Szilágyi
Browse files

eth: gracefully fail if chain config is missing

parent 90279812
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ package eth
import (
"bytes"
"errors"
"fmt"
"math/big"
"os"
......@@ -243,6 +244,9 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
glog.V(logger.Info).Infoln("WARNING: Wrote default ethereum genesis block")
}
if config.ChainConfig == nil {
return nil, errors.New("missing chain config")
}
eth.chainConfig = config.ChainConfig
eth.chainConfig.VmConfig = vm.Config{
EnableJit: config.EnableJit,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment