File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,11 @@ pub fn get_block_poller_stream(
72
72
log:: error!( "Rewinding block stream to {}: {}" , to_slot, reason) ;
73
73
// Clear cached blocks
74
74
block_cache. clear( ) ;
75
- // Clear sequence state to re-learn from rewound point
76
- crate :: ingester:: gap:: clear_sequence_state( ) ;
77
75
// Reset positions
78
76
last_indexed_slot = to_slot - 1 ;
79
77
current_start_slot = to_slot;
80
78
rewind_occurred = true ;
81
- log:: info!( "Cleared cache and sequence state , restarting from slot {}" , current_start_slot) ;
79
+ log:: info!( "Cleared cache, restarting from slot {}" , current_start_slot) ;
82
80
break ;
83
81
}
84
82
}
Original file line number Diff line number Diff line change @@ -119,18 +119,19 @@ impl StateUpdateSequences {
119
119
}
120
120
}
121
121
122
- // Extract out_account leaf indexes
122
+ // Extract out_account sequences
123
123
for account_with_context in & state_update. out_accounts {
124
124
let tree_pubkey = account_with_context. account . tree . 0 ;
125
- let leaf_index = account_with_context. account . leaf_index . 0 ;
126
- self . out_account_leaf_indexes
127
- . entry ( tree_pubkey)
128
- . or_insert_with ( Vec :: new)
129
- . push ( SequenceEntry {
130
- sequence : leaf_index,
131
- slot,
132
- signature : signature. to_string ( ) ,
133
- } ) ;
125
+ if let Some ( seq_value) = account_with_context. account . seq {
126
+ self . out_account_leaf_indexes
127
+ . entry ( tree_pubkey)
128
+ . or_insert_with ( Vec :: new)
129
+ . push ( SequenceEntry {
130
+ sequence : seq_value. 0 ,
131
+ slot,
132
+ signature : signature. to_string ( ) ,
133
+ } ) ;
134
+ }
134
135
}
135
136
}
136
137
You can’t perform that action at this time.
0 commit comments