From 387cb7d9a0f073d28181f142d37e1ff3f0e14c49 Mon Sep 17 00:00:00 2001 From: Manav Darji Date: Wed, 8 Feb 2023 14:40:04 +0530 Subject: [PATCH] miner: use env for tracing instead of block object --- miner/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index cc6a2e1eec..60903e1e25 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1501,9 +1501,9 @@ func (w *worker) commit(ctx context.Context, env *environment, interval func(), tracing.SetAttributes( span, - attribute.Int("number", int(block.Number().Uint64())), - attribute.String("hash", block.Hash().String()), - attribute.String("sealhash", w.engine.SealHash(block.Header()).String()), + attribute.Int("number", int(env.header.Number.Uint64())), + attribute.String("hash", env.header.Hash().String()), + attribute.String("sealhash", w.engine.SealHash(env.header).String()), attribute.Int("len of env.txs", len(env.txs)), attribute.Bool("error", err != nil), )