mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-20 14:59:26 +00:00
eth/tracers: minor fix
This commit is contained in:
parent
c55a903e77
commit
a9c2051d3f
1 changed files with 4 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/eth/tracers/internal/tracers"
|
"github.com/ethereum/go-ethereum/eth/tracers/internal/tracers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Tracer interface extends vm.JSTracer and additionally
|
// Tracer interface extends vm.Tracer and additionally
|
||||||
// allows collecting the tracing result.
|
// allows collecting the tracing result.
|
||||||
type Tracer interface {
|
type Tracer interface {
|
||||||
vm.Tracer
|
vm.Tracer
|
||||||
|
|
@ -40,9 +40,9 @@ var (
|
||||||
jsTracers = make(map[string]string)
|
jsTracers = make(map[string]string)
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterNativeTracer makes native tracers in this directory which adhere
|
// RegisterNativeTracer makes native tracers which adhere
|
||||||
// to the `JSTracer` interface available to the rest of the codebase.
|
// to the `Tracer` interface available to the rest of the codebase.
|
||||||
// It is typically invoked in the `init()` function.
|
// It is typically invoked in the `init()` function, e.g. see the `native/call.go`.
|
||||||
func RegisterNativeTracer(name string, ctor func() Tracer) {
|
func RegisterNativeTracer(name string, ctor func() Tracer) {
|
||||||
nativeTracers[name] = ctor
|
nativeTracers[name] = ctor
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue