@@ -699,11 +699,7 @@ replay_block_start( fd_replay_tile_t * ctx,
699699 & is_epoch_boundary );
700700 if ( FD_UNLIKELY ( is_epoch_boundary ) ) publish_stake_weights ( ctx , stem , bank , 1 );
701701
702- int res = fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad );
703- if ( FD_UNLIKELY ( res != FD_RUNTIME_EXECUTE_SUCCESS ) ) {
704- FD_LOG_CRIT (( "block prep execute failed" ));
705- }
706-
702+ FD_TEST ( !fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
707703 return bank ;
708704}
709705
@@ -922,10 +918,7 @@ prepare_leader_bank( fd_replay_tile_t * ctx,
922918 & is_epoch_boundary );
923919 if ( FD_UNLIKELY ( is_epoch_boundary ) ) publish_stake_weights ( ctx , stem , ctx -> leader_bank , 1 );
924920
925- int res = fd_runtime_block_execute_prepare ( ctx -> leader_bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad );
926- if ( FD_UNLIKELY ( res != FD_RUNTIME_EXECUTE_SUCCESS ) ) {
927- FD_LOG_CRIT (( "block prep execute failed" ));
928- }
921+ FD_TEST ( !fd_runtime_block_execute_prepare ( ctx -> leader_bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
929922
930923 /* Now that a bank has been created for the leader slot, increment the
931924 reference count until we are done with the leader slot. */
@@ -1053,7 +1046,7 @@ init_after_snapshot( fd_replay_tile_t * ctx ) {
10531046 fd_sha256_hash ( poh -> hash , 32UL , poh -> hash );
10541047 }
10551048
1056- FD_TEST ( fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) == 0 );
1049+ FD_TEST ( ! fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
10571050 fd_runtime_block_execute_finalize ( bank , ctx -> funk , & xid , ctx -> capture_ctx , 1 );
10581051
10591052 snapshot_slot = 0UL ;
0 commit comments