File tree Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Expand file tree Collapse file tree 1 file changed +21
-12
lines changed Original file line number Diff line number Diff line change @@ -303,20 +303,29 @@ impl SubmitTask {
303
303
self . config . clone ( ) ,
304
304
self . constants . clone ( ) ,
305
305
) ;
306
- let bumpable = res_unwrap_or_continue ! (
307
- prep. prep_transaction( & sim_result. env. prev_host)
308
- . instrument( submission_span. clone( ) )
309
- . await ,
310
- submission_span,
311
- error!( "failed to prepare transaction for submission - skipping block submission" )
312
- ) ;
306
+ let bumpable = match prep
307
+ . prep_transaction ( & prev_host. header )
308
+ . instrument ( submission_span. clone ( ) )
309
+ . await
310
+ {
311
+ Ok ( bumpable) => bumpable,
312
+ Err ( error) => {
313
+ submission_span. in_scope ( || {
314
+ error ! ( %error, "failed to prepare transaction for submission - skipping block submission" ) ;
315
+ } ) ;
316
+ continue ;
317
+ }
318
+ } ;
313
319
314
320
// Simulate the transaction to check for reverts
315
- res_unwrap_or_continue ! (
316
- self . sim_with_call( bumpable. req( ) ) . instrument( submission_span. clone( ) ) . await ,
317
- submission_span,
318
- error!( "simulation failed for transaction - skipping block submission" )
319
- ) ;
321
+ if let Err ( error) =
322
+ self . sim_with_call ( bumpable. req ( ) ) . instrument ( submission_span. clone ( ) ) . await
323
+ {
324
+ submission_span. in_scope ( || {
325
+ error ! ( %error, "simulation failed for transaction - skipping block submission" ) ;
326
+ } ) ;
327
+ continue ;
328
+ } ;
320
329
321
330
// Now send the transaction
322
331
let _ = res_unwrap_or_continue ! (
You can’t perform that action at this time.
0 commit comments