Skip to content

Commit

Permalink
Default to always log
Browse files Browse the repository at this point in the history
  • Loading branch information
mdehoog committed Oct 25, 2024
1 parent ebd1927 commit 72ea4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/tracers/live/txlogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (t *txlogger) OnFault(pc uint64, op byte, gas, cost uint64, _ tracing.OpCon

func (t *txlogger) OnTxStart(vm *tracing.VMContext, tx *types.Transaction, from common.Address) {
t.start = time.Now()
if t.start.Unix()-int64(vm.Time) > int64(t.config.MaxAge) {
if t.config.MaxAge > 0 && t.start.Unix()-int64(vm.Time) > int64(t.config.MaxAge) {
// transaction is too old, skip
t.tx = nil
return
Expand Down

0 comments on commit 72ea4cf

Please sign in to comment.