eth/tracers: make txhash blockhash accessible to native tracers (#24679)

This commit is contained in:
Sina Mahmoodi
2022-04-12 21:09:27 +02:00
committed by GitHub
parent d4d288e3f1
commit 9c82c646e4
5 changed files with 12 additions and 9 deletions

View File

@ -56,7 +56,7 @@ type callTracer struct {
// newCallTracer returns a native go tracer which tracks
// call frames of a tx, and implements vm.EVMLogger.
func newCallTracer() tracers.Tracer {
func newCallTracer(ctx *tracers.Context) tracers.Tracer {
// First callframe contains tx context info
// and is populated on start and end.
return &callTracer{callstack: make([]callFrame, 1)}