mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
eth/tracers/native: godoc
This commit is contained in:
parent
73836aa4c3
commit
324dc8f588
1 changed files with 6 additions and 0 deletions
|
|
@ -57,6 +57,12 @@ func newMuxTracerFromConfig(ctx *tracers.Context, cfg json.RawMessage, chainConf
|
||||||
return NewMuxTracer(names, objects)
|
return NewMuxTracer(names, objects)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewMuxTracer creates a multiplexing tracer that fans out tracing hooks to
|
||||||
|
// multiple child tracers. Each hook invocation is forwarded to all children,
|
||||||
|
// in the order they are provided.
|
||||||
|
//
|
||||||
|
// The names parameter associates a label with each tracer, used as keys in
|
||||||
|
// the aggregated JSON result returned by GetResult.
|
||||||
func NewMuxTracer(names []string, objects []*tracers.Tracer) (*tracers.Tracer, error) {
|
func NewMuxTracer(names []string, objects []*tracers.Tracer) (*tracers.Tracer, error) {
|
||||||
t := &muxTracer{names: names, tracers: objects}
|
t := &muxTracer{names: names, tracers: objects}
|
||||||
return &tracers.Tracer{
|
return &tracers.Tracer{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue