@@ -164,7 +164,7 @@ runtime_replay( fd_ledger_args_t * ledger_args ) {
164
164
165
165
fd_features_restore ( ledger_args -> slot_ctx , ledger_args -> runtime_spad );
166
166
167
- fd_runtime_update_leaders ( ledger_args -> slot_ctx -> bank , ledger_args -> slot_ctx -> slot , ledger_args -> runtime_spad );
167
+ fd_runtime_update_leaders ( ledger_args -> slot_ctx -> bank , ledger_args -> slot_ctx -> bank -> slot , ledger_args -> runtime_spad );
168
168
169
169
fd_calculate_epoch_accounts_hash_values ( ledger_args -> slot_ctx );
170
170
@@ -173,8 +173,8 @@ runtime_replay( fd_ledger_args_t * ledger_args ) {
173
173
ulong slot_cnt = 0 ;
174
174
fd_blockstore_t * blockstore = ledger_args -> blockstore ;
175
175
176
- ulong prev_slot = ledger_args -> slot_ctx -> slot ;
177
- ulong start_slot = ledger_args -> slot_ctx -> slot + 1 ;
176
+ ulong prev_slot = ledger_args -> slot_ctx -> bank -> slot ;
177
+ ulong start_slot = ledger_args -> slot_ctx -> bank -> slot + 1 ;
178
178
179
179
/* On demand rocksdb ingest */
180
180
fd_rocksdb_t rocks_db = {0 };
@@ -519,7 +519,7 @@ fd_ledger_main_setup( fd_ledger_args_t * args ) {
519
519
520
520
/* Finish other runtime setup steps */
521
521
fd_features_restore ( args -> slot_ctx , args -> runtime_spad );
522
- fd_runtime_update_leaders ( args -> slot_ctx -> bank , args -> slot_ctx -> slot , args -> runtime_spad );
522
+ fd_runtime_update_leaders ( args -> slot_ctx -> bank , args -> slot_ctx -> bank -> slot , args -> runtime_spad );
523
523
fd_calculate_epoch_accounts_hash_values ( args -> slot_ctx );
524
524
525
525
/* After both snapshots have been loaded in, we can determine if we should
@@ -926,11 +926,11 @@ ingest( fd_ledger_args_t * args ) {
926
926
927
927
/* At this point the account state has been ingested into funk. Intake rocksdb */
928
928
if ( args -> start_slot == 0 ) {
929
- args -> start_slot = slot_ctx -> slot + 1 ;
929
+ args -> start_slot = slot_ctx -> bank -> slot + 1 ;
930
930
}
931
931
fd_blockstore_t * blockstore = args -> blockstore ;
932
932
if ( blockstore ) {
933
- blockstore -> shmem -> lps = blockstore -> shmem -> hcs = blockstore -> shmem -> wmk = slot_ctx -> slot ;
933
+ blockstore -> shmem -> lps = blockstore -> shmem -> hcs = blockstore -> shmem -> wmk = slot_ctx -> bank -> slot ;
934
934
}
935
935
936
936
if ( args -> funk_only ) {
@@ -939,8 +939,8 @@ ingest( fd_ledger_args_t * args ) {
939
939
FD_LOG_NOTICE (( "using shredcap" ));
940
940
fd_shredcap_populate_blockstore ( args -> shredcap , blockstore , args -> start_slot , args -> end_slot );
941
941
} else if ( args -> rocksdb_list [ 0UL ] ) {
942
- if ( args -> end_slot >= slot_ctx -> slot + args -> slot_history_max ) {
943
- args -> end_slot = slot_ctx -> slot + args -> slot_history_max - 1 ;
942
+ if ( args -> end_slot >= slot_ctx -> bank -> slot + args -> slot_history_max ) {
943
+ args -> end_slot = slot_ctx -> bank -> slot + args -> slot_history_max - 1 ;
944
944
}
945
945
ingest_rocksdb ( args -> rocksdb_list [ 0UL ], args -> start_slot , args -> end_slot ,
946
946
blockstore , args -> trash_hash , args -> valloc );
@@ -1107,7 +1107,7 @@ replay( fd_ledger_args_t * args ) {
1107
1107
fd_blockstore_init ( args -> blockstore ,
1108
1108
-1 ,
1109
1109
FD_BLOCKSTORE_ARCHIVE_MIN_SIZE ,
1110
- args -> slot_ctx -> slot );
1110
+ args -> slot_ctx -> bank -> slot );
1111
1111
fd_buf_shred_pool_reset ( args -> blockstore -> shred_pool , 0 );
1112
1112
1113
1113
FD_LOG_WARNING (( "setup done" ));
0 commit comments