We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00efcde commit bfe12c6Copy full SHA for bfe12c6
2 files changed
crates/esplora/src/async_ext.rs
@@ -264,7 +264,7 @@ async fn chain_update<S: Sleeper>(
264
265
tip = tip
266
.extend(conflicts.into_iter().rev().map(|b| (b.height, b.hash)))
267
- .expect("evicted are in order");
+ .map_err(|_| Box::new(esplora_client::Error::InvalidResponse))?;
268
269
for (anchor, _txid) in anchors {
270
let height = anchor.block_id.height;
crates/esplora/src/blocking_ext.rs
@@ -249,7 +249,7 @@ fn chain_update(
249
250
251
252
253
254
for (anchor, _) in anchors {
255
0 commit comments