From 72ea4cffc6bd46ba403ab33c1e480b904c249a95 Mon Sep 17 00:00:00 2001 From: Michael de Hoog Date: Fri, 25 Oct 2024 08:22:07 -1000 Subject: [PATCH] Default to always log --- eth/tracers/live/txlogger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/tracers/live/txlogger.go b/eth/tracers/live/txlogger.go index cfeea37a3c..f39cc5983c 100644 --- a/eth/tracers/live/txlogger.go +++ b/eth/tracers/live/txlogger.go @@ -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