File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,9 @@ async fn fetch_block(
188
188
return Ok ( Some ( hash) ) ;
189
189
}
190
190
191
+ if latest_blocks. is_empty ( ) {
192
+ return Ok ( None ) ;
193
+ }
191
194
// We avoid fetching blocks higher than previously fetched `latest_blocks` as the local chain
192
195
// tip is used to signal for the last-synced-up-to-height.
193
196
let & tip_height = latest_blocks
Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ fn fetch_block(
178
178
return Ok ( Some ( hash) ) ;
179
179
}
180
180
181
+ if latest_blocks. is_empty ( ) {
182
+ return Ok ( None ) ;
183
+ }
181
184
// We avoid fetching blocks higher than previously fetched `latest_blocks` as the local chain
182
185
// tip is used to signal for the last-synced-up-to-height.
183
186
let & tip_height = latest_blocks
You can’t perform that action at this time.
0 commit comments