Skip to content

Commit 5b53d4f

Browse files
committed
fix
1 parent f8e87ba commit 5b53d4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

programs/range/src/main.rs

+9-3
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,17 @@ where
270270

271271
println!("cycle-tracker-report-start: block-execution");
272272
let mut block_executor = executor.new_executor(cursor.l2_safe_head_header().clone());
273-
let header = match block_executor.execute_payload(attributes.clone()) {
273+
274+
println!("cycle-tracker-report-start: block-execution");
275+
let res = block_executor.execute_payload(attributes.clone());
276+
println!("cycle-tracker-report-end: block-execution");
277+
let header = match res {
274278
Ok(header) => header,
275279
Err(e) => {
276280
error!(target: "client", "Failed to execute L2 block: {}", e);
277281

278282
if cfg.is_holocene_active(attributes.payload_attributes.timestamp) {
283+
println!("cycle-tracker-report-start: block-execution");
279284
// Retry with a deposit-only block.
280285
warn!(target: "client", "Flushing current channel and retrying deposit only block");
281286

@@ -294,7 +299,9 @@ where
294299

295300
// Retry the execution.
296301
block_executor = executor.new_executor(cursor.l2_safe_head_header().clone());
297-
match block_executor.execute_payload(attributes.clone()) {
302+
let res = block_executor.execute_payload(attributes.clone());
303+
println!("cycle-tracker-report-end: block-execution");
304+
match res {
298305
Ok(header) => header,
299306
Err(e) => {
300307
error!(
@@ -310,7 +317,6 @@ where
310317
}
311318
}
312319
};
313-
println!("cycle-tracker-report-end: block-execution");
314320

315321
// Construct the block.
316322
let block = OpBlock {

0 commit comments

Comments
 (0)