live tracer err -> warn
This commit is contained in:
parent
03206befb9
commit
08cb623c2e
|
@ -293,10 +293,11 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
|
||||||
var logger BlockchainLogger
|
var logger BlockchainLogger
|
||||||
if vmConfig.Tracer != nil {
|
if vmConfig.Tracer != nil {
|
||||||
l, ok := vmConfig.Tracer.(BlockchainLogger)
|
l, ok := vmConfig.Tracer.(BlockchainLogger)
|
||||||
if !ok {
|
if ok {
|
||||||
return nil, errors.New("only extended tracers are supported for live mode")
|
logger = l
|
||||||
|
} else {
|
||||||
|
log.Warn("only extended tracers are supported for live mode")
|
||||||
}
|
}
|
||||||
logger = l
|
|
||||||
}
|
}
|
||||||
// Setup the genesis block, commit the provided genesis specification
|
// Setup the genesis block, commit the provided genesis specification
|
||||||
// to database if the genesis block is not present yet, or load the
|
// to database if the genesis block is not present yet, or load the
|
||||||
|
|
Loading…
Reference in New Issue