Skip to content

Commit 53fd1fe

Browse files
authored
miner: use env for tracing instead of block object (ethereum#728)
1 parent 0ed78b9 commit 53fd1fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

miner/worker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,9 +1501,9 @@ func (w *worker) commit(ctx context.Context, env *environment, interval func(),
15011501

15021502
tracing.SetAttributes(
15031503
span,
1504-
attribute.Int("number", int(block.Number().Uint64())),
1505-
attribute.String("hash", block.Hash().String()),
1506-
attribute.String("sealhash", w.engine.SealHash(block.Header()).String()),
1504+
attribute.Int("number", int(env.header.Number.Uint64())),
1505+
attribute.String("hash", env.header.Hash().String()),
1506+
attribute.String("sealhash", w.engine.SealHash(env.header).String()),
15071507
attribute.Int("len of env.txs", len(env.txs)),
15081508
attribute.Bool("error", err != nil),
15091509
)

0 commit comments

Comments
 (0)