@@ -709,11 +709,7 @@ replay_block_start( fd_replay_tile_t * ctx,
709709 & is_epoch_boundary );
710710 if ( FD_UNLIKELY ( is_epoch_boundary ) ) publish_stake_weights ( ctx , stem , bank , 1 );
711711
712- int res = fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad );
713- if ( FD_UNLIKELY ( res != FD_RUNTIME_EXECUTE_SUCCESS ) ) {
714- FD_LOG_CRIT (( "block prep execute failed" ));
715- }
716-
712+ FD_TEST ( !fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
717713 return bank ;
718714}
719715
@@ -770,9 +766,7 @@ publish_slot_completed( fd_replay_tile_t * ctx,
770766 slot_info -> tips = 0UL ; /* todo ... tip accounts balance delta */
771767 slot_info -> shred_count = fd_bank_shred_cnt_get ( bank );
772768
773- fd_cost_tracker_t const * cost_tracker = fd_bank_cost_tracker_locking_query ( bank );
774- slot_info -> max_compute_units = !!cost_tracker ? cost_tracker -> block_cost_limit : ULONG_MAX ;
775- fd_bank_cost_tracker_end_locking_query ( bank );
769+ slot_info -> max_compute_units = fd_cost_tracker_block_cost_limit ( bank );
776770
777771 slot_info -> first_fec_set_received_nanos = bank -> first_fec_set_received_nanos ;
778772 slot_info -> preparation_begin_nanos = bank -> preparation_begin_nanos ;
@@ -940,10 +934,7 @@ prepare_leader_bank( fd_replay_tile_t * ctx,
940934 & is_epoch_boundary );
941935 if ( FD_UNLIKELY ( is_epoch_boundary ) ) publish_stake_weights ( ctx , stem , ctx -> leader_bank , 1 );
942936
943- int res = fd_runtime_block_execute_prepare ( ctx -> leader_bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad );
944- if ( FD_UNLIKELY ( res != FD_RUNTIME_EXECUTE_SUCCESS ) ) {
945- FD_LOG_CRIT (( "block prep execute failed" ));
946- }
937+ FD_TEST ( !fd_runtime_block_execute_prepare ( ctx -> leader_bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
947938
948939 /* Now that a bank has been created for the leader slot, increment the
949940 reference count until we are done with the leader slot. */
@@ -1109,7 +1100,7 @@ init_after_snapshot( fd_replay_tile_t * ctx ) {
11091100 fd_sha256_hash ( poh -> hash , 32UL , poh -> hash );
11101101 }
11111102
1112- FD_TEST ( fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) == 0 );
1103+ FD_TEST ( ! fd_runtime_block_execute_prepare ( bank , ctx -> funk , & xid , ctx -> capture_ctx , ctx -> runtime_spad ) );
11131104 fd_runtime_block_execute_finalize ( bank , ctx -> funk , & xid , ctx -> capture_ctx , 1 );
11141105
11151106 snapshot_slot = 0UL ;
@@ -1298,9 +1289,7 @@ boot_genesis( fd_replay_tile_t * ctx,
12981289 fd_genesis_solana_global_t const * genesis = fd_type_pun ( (uchar * )fd_chunk_to_laddr ( ctx -> in [ in_idx ].mem , chunk )+ sizeof (fd_hash_t )+ sizeof (fd_lthash_value_t ) );
12991290
13001291 fd_bank_t * bank = fd_banks_bank_query ( ctx -> banks , FD_REPLAY_BOOT_BANK_IDX );
1301- if ( FD_UNLIKELY ( !bank ) ) {
1302- FD_LOG_CRIT (( "invariant violation: bank is NULL for bank index %lu" , FD_REPLAY_BOOT_BANK_IDX ));
1303- }
1292+ FD_TEST ( bank );
13041293 fd_funk_txn_xid_t xid = { .ul = { 0UL , 0UL } };
13051294
13061295 fd_runtime_read_genesis ( ctx -> banks , bank , ctx -> funk , & xid , NULL , fd_type_pun_const ( genesis_hash ), fd_type_pun_const ( lthash ), genesis , ctx -> runtime_spad );
@@ -1366,7 +1355,6 @@ boot_genesis( fd_replay_tile_t * ctx,
13661355 publish_slot_completed ( ctx , stem , bank , 1 );
13671356 publish_root_advanced ( ctx , stem );
13681357 publish_reset ( ctx , stem , bank );
1369-
13701358}
13711359
13721360static void
0 commit comments