From a81add9c340f2691c3fa3c67324c6c566d68933f Mon Sep 17 00:00:00 2001 From: Arowolokehinde Date: Mon, 24 Aug 2026 21:17:32 +0100 Subject: [PATCH] docs(esplora): replace misleading tx-cache TODO with explanation --- crates/esplora/src/async_ext.rs | 3 ++- crates/esplora/src/blocking_ext.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/esplora/src/async_ext.rs b/crates/esplora/src/async_ext.rs index 2b38289526..465900d262 100644 --- a/crates/esplora/src/async_ext.rs +++ b/crates/esplora/src/async_ext.rs @@ -492,7 +492,8 @@ where let mut update = TxUpdate::::default(); // make sure txs exists in graph and tx statuses are updated - // TODO: We should maintain a tx cache (like we do with Electrum). + // TODO: The per-outpoint get_output_status round trips can be optimized. + // A tx cache does not apply in this scenario. update.extend( fetch_txs_with_txids( client, diff --git a/crates/esplora/src/blocking_ext.rs b/crates/esplora/src/blocking_ext.rs index 225b574ea4..157aa0b145 100644 --- a/crates/esplora/src/blocking_ext.rs +++ b/crates/esplora/src/blocking_ext.rs @@ -451,7 +451,8 @@ fn fetch_txs_with_outpoints>( let mut update = TxUpdate::::default(); // make sure txs exists in graph and tx statuses are updated - // TODO: We should maintain a tx cache (like we do with Electrum). + // TODO: The per-outpoint get_output_status round trips can be optimized. + // A tx cache does not apply in this scenario. update.extend(fetch_txs_with_txids( client, start_time,