core: improved bad block error reporting (#3320)

This commit is contained in:
Jeffrey Wilcke
2016-11-23 13:32:25 +01:00
committed by GitHub
parent e05d35e6e0
commit c04c8f10f0
5 changed files with 47 additions and 18 deletions

View File

@ -218,6 +218,8 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
eth.chainConfig = config.ChainConfig
glog.V(logger.Info).Infoln("Chain config:", eth.chainConfig)
eth.blockchain, err = core.NewBlockChain(chainDb, eth.chainConfig, eth.pow, eth.EventMux())
if err != nil {
if err == core.ErrNoGenesis {