@@ -127,7 +127,7 @@ impl Step<Flashblocks> for PublishFlashblock {
127127 state_root : sealed_block. block ( ) . state_root ,
128128 receipts_root : sealed_block. block ( ) . receipts_root ,
129129 logs_bloom : sealed_block. block ( ) . logs_bloom ,
130- gas_used : payload . cumulative_gas_used ( ) ,
130+ gas_used : sealed_block . block ( ) . gas_used ,
131131 block_hash : sealed_block. block ( ) . hash ( ) ,
132132 transactions,
133133 withdrawals : vec ! [ ] ,
@@ -160,7 +160,7 @@ impl Step<Flashblocks> for PublishFlashblock {
160160 // Place a barrier after each published flashblock to freeze the contents
161161 // of the payload up to this point, since this becomes a publicly committed
162162 // state.
163- ControlFlow :: Ok ( payload. barrier ( ) )
163+ ControlFlow :: Ok ( payload. barrier_with_tag ( "flashblock" ) )
164164 }
165165
166166 /// Before the payload job starts prepare the contents of the
@@ -237,13 +237,10 @@ impl PublishFlashblock {
237237 & self ,
238238 payload : & Checkpoint < Flashblocks > ,
239239 ) -> Span < Flashblocks > {
240- if self . flashblock_number . load ( Ordering :: SeqCst ) == 0 {
241- // first block, get all checkpoints, including sequencer txs
242- payload. history_sealed ( )
243- } else {
244- // subsequent block, get all checkpoints since last barrier
245- payload. history_staging ( )
246- }
240+ // If we haven't published flashblock return whole history
241+ payload
242+ . history_since_last_tag ( "flashblock" )
243+ . unwrap_or ( payload. history ( ) )
247244 }
248245
249246 /// Called for each flashblock to capture metrics about the produced
0 commit comments