native

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package native is a collection of tracers written in go.

In order to add a native tracer and have it compiled into the binary, a new file needs to be added to this folder, containing an implementation of the `eth.tracers.Tracer` interface.

Aside from implementing the tracer, it also needs to register itself, using the `register` method -- and this needs to be done in the package initialization.

Example:

```golang

func init() {
	register("noopTracerNative", newNoopTracer)
}

```

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer()

InitTracer retrieves the Go transaction tracers included in go-ethereum.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL