@@ -48,7 +48,7 @@ fd_snapin_process_account_header_funk( fd_snapin_tile_t * ctx,
4848 if ( FD_UNLIKELY ( existing_rec ) ) {
4949 fd_account_meta_t * meta = fd_funk_val ( existing_rec , funk -> wksp );
5050 if ( FD_UNLIKELY ( meta ) ) {
51- if ( FD_LIKELY ( meta -> slot > result -> account_header .slot ) ) {
51+ if ( FD_LIKELY ( rec -> slot > result -> account_header .slot ) ) {
5252 ctx -> acc_data = NULL ;
5353 fd_snapin_send_duplicate_account ( ctx , result -> account_header .lamports , NULL , result -> account_header .data_len , (uchar )result -> account_header .executable , result -> account_header .owner , result -> account_header .pubkey , 0 , & early_exit );
5454 return early_exit ;
@@ -78,7 +78,7 @@ fd_snapin_process_account_header_funk( fd_snapin_tile_t * ctx,
7878 rec -> val_sz = (uint )( alloc_sz & FD_FUNK_REC_VAL_MAX );
7979
8080 meta -> dlen = (uint )result -> account_header .data_len ;
81- meta -> slot = result -> account_header .slot ;
81+ rec -> slot = result -> account_header .slot ;
8282 memcpy ( meta -> owner , result -> account_header .owner , sizeof (fd_pubkey_t ) );
8383 meta -> lamports = result -> account_header .lamports ;
8484 meta -> executable = (uchar )result -> account_header .executable ;
@@ -129,10 +129,10 @@ streamlined_insert( fd_snapin_tile_t * ctx,
129129 rec -> val_gaddr = fd_wksp_gaddr_fast ( funk -> wksp , meta );
130130 rec -> val_max = (uint )( fd_ulong_min ( alloc_max , FD_FUNK_REC_VAL_MAX ) & FD_FUNK_REC_VAL_MAX );
131131 rec -> val_sz = (uint )( alloc_sz & FD_FUNK_REC_VAL_MAX );
132+ rec -> slot = slot ;
132133
133134 /* Write metadata */
134135 meta -> dlen = (uint )data_len ;
135- meta -> slot = slot ;
136136 memcpy ( meta -> owner , owner , sizeof (fd_pubkey_t ) );
137137 meta -> lamports = lamports ;
138138 meta -> executable = (uchar )executable ;
@@ -237,11 +237,11 @@ fd_snapin_process_account_batch_funk( fd_snapin_tile_t * ctx,
237237 fd_account_meta_t const * existing = fd_funk_val ( r , funk -> wksp );
238238 if ( FD_UNLIKELY ( !existing ) ) FD_LOG_HEXDUMP_NOTICE (( "r" , r , sizeof (fd_funk_rec_t ) ));
239239 FD_TEST ( existing );
240- if ( existing -> slot > slot ) {
240+ if ( r -> slot > slot ) {
241241 rec [ i ] = NULL ; /* skip record if existing value is newer */
242242 /* send the skipped account to the subtracting hash tile */
243243 fd_snapin_send_duplicate_account ( ctx , lamports , data , data_len , executable , owner , pubkey , 1 , & early_exit );
244- } else if ( slot > existing -> slot ) {
244+ } else if ( slot > r -> slot ) {
245245 /* send the to-be-replaced account to the subtracting hash tile */
246246 fd_snapin_send_duplicate_account ( ctx , existing -> lamports , (uchar const * )existing + sizeof (fd_account_meta_t ), existing -> dlen , existing -> executable , existing -> owner , pubkey , 1 , & early_exit );
247247 } else { /* slot==existing->slot */
@@ -310,7 +310,6 @@ fd_snapin_read_account_funk( fd_snapin_tile_t * ctx,
310310
311311 memcpy ( meta -> owner , fd_accdb_ref_owner ( peek -> acc ), sizeof (fd_pubkey_t ) );
312312 meta -> lamports = fd_accdb_ref_lamports ( peek -> acc );
313- meta -> slot = fd_accdb_ref_slot ( peek -> acc );
314313 meta -> dlen = (uint )data_sz ;
315314 meta -> executable = !!fd_accdb_ref_exec_bit ( peek -> acc );
316315 fd_memcpy ( data , fd_accdb_ref_data_const ( peek -> acc ), data_sz );
0 commit comments