live tracer err -> warn

This commit is contained in:
Sina Mahmoodi 2024-02-09 11:13:35 +01:00
parent 03206befb9
commit 08cb623c2e
1 changed files with 4 additions and 3 deletions

View File

@ -293,10 +293,11 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
var logger BlockchainLogger
if vmConfig.Tracer != nil {
l, ok := vmConfig.Tracer.(BlockchainLogger)
if !ok {
return nil, errors.New("only extended tracers are supported for live mode")
if ok {
logger = l
} else {
log.Warn("only extended tracers are supported for live mode")
}
logger = l
}
// Setup the genesis block, commit the provided genesis specification
// to database if the genesis block is not present yet, or load the