eth/tracers: minor fix
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user