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

@ -51,7 +51,7 @@ type prestateTracer struct {
reason error // Textual reason for the interruption
}
func newPrestateTracer() tracers.Tracer {
func newPrestateTracer(ctx *tracers.Context) tracers.Tracer {
// First callframe contains tx context info
// and is populated on start and end.
return &prestateTracer{prestate: prestate{}}