Skip to content

Commit 0d2ec8e

Browse files
committed
miner: assign header fields in usual order
1 parent 48bebc9 commit 0d2ec8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/worker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -945,9 +945,9 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) {
945945
// For the first post-fork block, both parent.data_gas_used and parent.excess_data_gas are evaluated as 0
946946
excessBlobGas = eip4844.CalcExcessBlobGas(0, 0)
947947
}
948+
header.BlobGasUsed = new(uint64)
948949
header.ExcessBlobGas = &excessBlobGas
949950
header.BeaconRoot = genParams.beaconRoot
950-
header.BlobGasUsed = new(uint64)
951951
}
952952
// Run the consensus preparation with the default or customized consensus engine.
953953
if err := w.engine.Prepare(w.chain, header); err != nil {

0 commit comments

Comments
 (0)