erigon-pulse/eth/tracers/api.go
hexoscott 683f022c69
pass config to tracer from RPC request (#6795)
Created to handle #6758.

Just takes the parameters and passes them down the pipe. A local test
against mainnet showed the trace size varied accordingly when passing
true/false values for `onlyTopCall`.
2023-02-07 15:50:11 +00:00

20 lines
462 B
Go

package tracers
import (
"encoding/json"
"github.com/ledgerwatch/erigon/eth/tracers/logger"
"github.com/ledgerwatch/erigon/turbo/adapter/ethapi"
)
// TraceConfig holds extra parameters to trace functions.
type TraceConfig struct {
*logger.LogConfig
Tracer *string
TracerConfig *json.RawMessage
Timeout *string
Reexec *uint64
NoRefunds *bool // Turns off gas refunds when tracing
StateOverrides *ethapi.StateOverrides
}