Skip to content

Commit

Permalink
live tracer err -> warn
Browse files Browse the repository at this point in the history
  • Loading branch information
dhyaniarun1993 committed Feb 13, 2024
1 parent 45af942 commit 79bf2dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package core

import (
"errors"
"fmt"
"math/big"
"time"
Expand Down Expand Up @@ -104,10 +103,11 @@ func ExecuteBlockEphemerally(
var bcLogger 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 {
bcLogger = l
} else {
log.Warn("only extended tracers are supported for live mode")
}
bcLogger = l
}

defer BlockExecutionTimer.UpdateDuration(time.Now())
Expand Down

0 comments on commit 79bf2dc

Please sign in to comment.