go-ethereum/miner
Stefan 974844c8d2
miner: restore GasUsed assignment in applyTransaction (#34082)
## Summary

- The BAL refactoring in 5808d212b removed the line `env.header.GasUsed
= env.gasPool.Used()` from `applyTransaction()`, causing all
geth-proposed blocks to have `GasUsed=0` in the header
- Every other client rejects these blocks during validation, so geth can
never successfully propose on the network
- Restores the single line that was present in upstream master

## Test plan

- [x] Verified line exists in upstream/master at miner/worker.go:409
- [x] Confirmed all 34 geth-proposed blocks on a 4-client devnet had
`GasUsed=0` via `debug_getBadBlocks` on besu
- [ ] Build local image and verify geth proposals are accepted in a
multi-client Kurtosis network
2026-03-24 14:05:50 +01:00
..
stress core: implement eip-7778: block gas accounting without refunds (#33593) 2026-03-04 18:18:18 +08:00
miner.go miner: add OpenTelemetry spans for block building path (#33773) 2026-03-16 19:24:41 +01:00
miner_test.go core, miner, tests: introduce codedb and simplify cachingDB (#33816) 2026-03-10 08:29:21 +01:00
ordering.go core/txpool, eth, miner: retrieve plain and blob txs separately (#29026) 2024-02-20 11:37:23 +02:00
ordering_test.go core/txpool, miner: speed up blob pool pending retrievals (#29008) 2024-02-19 15:59:40 +02:00
payload_building.go miner: add OpenTelemetry spans for block building path (#33773) 2026-03-16 19:24:41 +01:00
payload_building_test.go miner: add OpenTelemetry spans for block building path (#33773) 2026-03-16 19:24:41 +01:00
pending.go all: update license comments and AUTHORS (#31133) 2025-02-05 23:01:17 +01:00
worker.go miner: restore GasUsed assignment in applyTransaction (#34082) 2026-03-24 14:05:50 +01:00