print stack, async node.close

This commit is contained in:
Sina Mahmoodi 2025-03-27 13:11:07 +01:00
parent 5be44741bc
commit 379278ff3a

View file

@ -20,6 +20,7 @@ import (
"fmt" "fmt"
"math/big" "math/big"
"reflect" "reflect"
"runtime/debug"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/tracing" "github.com/ethereum/go-ethereum/core/tracing"
@ -89,7 +90,8 @@ func (rt *recoverTracer) safeCall(name string, shutdown bool, fn func()) {
if r := recover(); r != nil { if r := recover(); r != nil {
log.Error(fmt.Sprintf("panic in child tracer during %s: %v", name, r)) log.Error(fmt.Sprintf("panic in child tracer during %s: %v", name, r))
if shutdown { if shutdown {
rt.node.Close() debug.PrintStack()
go rt.node.Close()
} }
} }
}() }()