mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-10 22:13:47 +00:00
rm embedding of noop tracer
This commit is contained in:
parent
03e48ee451
commit
7190602bd2
8 changed files with 0 additions and 12 deletions
|
|
@ -98,8 +98,6 @@ func fromBuf(vm *goja.Runtime, bufType goja.Value, buf goja.Value, allowString b
|
||||||
// jsTracer is an implementation of the Tracer interface which evaluates
|
// jsTracer is an implementation of the Tracer interface which evaluates
|
||||||
// JS functions on the relevant EVM hooks. It uses Goja as its JS engine.
|
// JS functions on the relevant EVM hooks. It uses Goja as its JS engine.
|
||||||
type jsTracer struct {
|
type jsTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
|
|
||||||
vm *goja.Runtime
|
vm *goja.Runtime
|
||||||
env *tracing.VMContext
|
env *tracing.VMContext
|
||||||
toBig toBigFn // Converts a hex string into a JS bigint
|
toBig toBigFn // Converts a hex string into a JS bigint
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/core/tracing"
|
"github.com/ethereum/go-ethereum/core/tracing"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/core/vm"
|
"github.com/ethereum/go-ethereum/core/vm"
|
||||||
"github.com/ethereum/go-ethereum/eth/tracers/directory"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// accessList is an accumulator for the set of accounts and storage slots an EVM
|
// accessList is an accumulator for the set of accounts and storage slots an EVM
|
||||||
|
|
@ -103,7 +102,6 @@ func (al accessList) accessList() types.AccessList {
|
||||||
// AccessListTracer is a tracer that accumulates touched accounts and storage
|
// AccessListTracer is a tracer that accumulates touched accounts and storage
|
||||||
// slots into an internal set.
|
// slots into an internal set.
|
||||||
type AccessListTracer struct {
|
type AccessListTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
excl map[common.Address]struct{} // Set of account to exclude from the list
|
excl map[common.Address]struct{} // Set of account to exclude from the list
|
||||||
list accessList // Set of accounts and storage slots touched
|
list accessList // Set of accounts and storage slots touched
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,6 @@ func (s *StructLog) ErrorString() string {
|
||||||
// a track record of modified storage which is used in reporting snapshots of the
|
// a track record of modified storage which is used in reporting snapshots of the
|
||||||
// contract their storage.
|
// contract their storage.
|
||||||
type StructLogger struct {
|
type StructLogger struct {
|
||||||
directory.NoopTracer
|
|
||||||
cfg Config
|
cfg Config
|
||||||
env *tracing.VMContext
|
env *tracing.VMContext
|
||||||
|
|
||||||
|
|
@ -339,7 +338,6 @@ func WriteLogs(writer io.Writer, logs []*types.Log) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type mdLogger struct {
|
type mdLogger struct {
|
||||||
directory.NoopTracer
|
|
||||||
out io.Writer
|
out io.Writer
|
||||||
cfg *Config
|
cfg *Config
|
||||||
env *tracing.VMContext
|
env *tracing.VMContext
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,9 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/core/tracing"
|
"github.com/ethereum/go-ethereum/core/tracing"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/core/vm"
|
"github.com/ethereum/go-ethereum/core/vm"
|
||||||
"github.com/ethereum/go-ethereum/eth/tracers/directory"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type JSONLogger struct {
|
type JSONLogger struct {
|
||||||
directory.NoopTracer
|
|
||||||
encoder *json.Encoder
|
encoder *json.Encoder
|
||||||
cfg *Config
|
cfg *Config
|
||||||
env *tracing.VMContext
|
env *tracing.VMContext
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,6 @@ func init() {
|
||||||
// 0xc281d19e-0: 1
|
// 0xc281d19e-0: 1
|
||||||
// }
|
// }
|
||||||
type fourByteTracer struct {
|
type fourByteTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
ids map[string]int // ids aggregates the 4byte ids found
|
ids map[string]int // ids aggregates the 4byte ids found
|
||||||
interrupt atomic.Bool // Atomic flag to signal execution interruption
|
interrupt atomic.Bool // Atomic flag to signal execution interruption
|
||||||
reason error // Textual reason for the interruption
|
reason error // Textual reason for the interruption
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,6 @@ type callFrameMarshaling struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type callTracer struct {
|
type callTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
callstack []callFrame
|
callstack []callFrame
|
||||||
config callTracerConfig
|
config callTracerConfig
|
||||||
gasLimit uint64
|
gasLimit uint64
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,6 @@ type flatCallResultMarshaling struct {
|
||||||
// flatCallTracer reports call frame information of a tx in a flat format, i.e.
|
// flatCallTracer reports call frame information of a tx in a flat format, i.e.
|
||||||
// as opposed to the nested format of `callTracer`.
|
// as opposed to the nested format of `callTracer`.
|
||||||
type flatCallTracer struct {
|
type flatCallTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
tracer *callTracer
|
tracer *callTracer
|
||||||
config flatCallTracerConfig
|
config flatCallTracerConfig
|
||||||
ctx *directory.Context // Holds tracer context data
|
ctx *directory.Context // Holds tracer context data
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,6 @@ type accountMarshaling struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type prestateTracer struct {
|
type prestateTracer struct {
|
||||||
directory.NoopTracer
|
|
||||||
env *tracing.VMContext
|
env *tracing.VMContext
|
||||||
pre stateMap
|
pre stateMap
|
||||||
post stateMap
|
post stateMap
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue