Skip to content

Commit e93eb1e

Browse files
authored
track env size (#1358)
1 parent 7c54a43 commit e93eb1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

miner/worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ func (w *worker) commitTransaction(env *environment, tx *types.Transaction, coin
309309
}
310310
env.txs = append(env.txs, tx)
311311
env.receipts = append(env.receipts, receipt)
312+
env.size += tx.Size()
312313
return receipt.Logs, nil
313314
}
314315

0 commit comments

Comments
 (0)