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>(
264264
265265 tip = tip
266266 . 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 ) ) ? ;
268268
269269 for ( anchor, _txid) in anchors {
270270 let height = anchor. block_id . height ;
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ fn chain_update(
249249
250250 tip = tip
251251 . 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 ) ) ? ;
253253
254254 for ( anchor, _) in anchors {
255255 let height = anchor. block_id . height ;
You can’t perform that action at this time.
0 commit comments