Skip to content

Commit

Permalink
live tracer err -> warn
Browse files Browse the repository at this point in the history
  • Loading branch information
s1na committed Feb 9, 2024
1 parent 03206be commit 08cb623
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08cb623

Please sign in to comment.