File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,15 @@ impl Indexer {
142
142
}
143
143
144
144
let historical_sync_completed =
145
- matches ! ( current_lower_block_id, BlockId :: Slot ( slot) if slot < self . dencun_fork_slot) ;
145
+ matches ! ( current_lower_block_id, BlockId :: Slot ( slot) if slot <= self . dencun_fork_slot) ;
146
146
147
147
if !self . disable_sync_historical && !historical_sync_completed {
148
- let historical_sync_final_block_id =
149
- end_block_id. unwrap_or ( BlockId :: Slot ( self . dencun_fork_slot - 1 ) ) ;
148
+ let target_slot = if self . dencun_fork_slot == 0 {
149
+ self . dencun_fork_slot
150
+ } else {
151
+ self . dencun_fork_slot - 1
152
+ } ;
153
+ let historical_sync_final_block_id = end_block_id. unwrap_or ( BlockId :: Slot ( target_slot) ) ;
150
154
151
155
self . start_historical_indexing_task (
152
156
tx1,
You can’t perform that action at this time.
0 commit comments