File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ async fn chain_update<S: Sleeper>(
264
264
265
265
tip = tip
266
266
. extend ( conflicts. into_iter ( ) . rev ( ) . map ( |b| ( b. height , b. hash ) ) )
267
- . expect ( "evicted are in order" ) ;
267
+ . map_err ( |_| Box :: new ( esplora_client :: Error :: InvalidResponse ) ) ? ;
268
268
269
269
for ( anchor, _txid) in anchors {
270
270
let height = anchor. block_id . height ;
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ fn chain_update(
249
249
250
250
tip = tip
251
251
. extend ( conflicts. into_iter ( ) . rev ( ) . map ( |b| ( b. height , b. hash ) ) )
252
- . expect ( "evicted are in order" ) ;
252
+ . map_err ( |_| Box :: new ( esplora_client :: Error :: InvalidResponse ) ) ? ;
253
253
254
254
for ( anchor, _) in anchors {
255
255
let height = anchor. block_id . height ;
You can’t perform that action at this time.
0 commit comments