]> Untitled Git - bdk/commit
fix(electrum): propagate transport errors when syncing outpoints
authorchaitika <chaitikab@gmail.com>
Sat, 26 Sep 2026 15:17:00 +0000 (20:47 +0530)
committerchaitika <chaitikab@gmail.com>
Sat, 26 Sep 2026 15:19:57 +0000 (20:49 +0530)
commit84b0acf323e2f95919f39a3c3102925ce64174dd
tree343e41a0912ec34349dcbafd17970c1baba7e578
parente417c43666b2046c3b54efd571521669a4643ea4
fix(electrum): propagate transport errors when syncing outpoints

`populate_with_outpoints` discarded every error returned by `fetch_tx`,
so a connection, TLS or timeout failure made `sync` report success
without any data for the requested outpoint. A spend of that outpoint
was then missed and the UTXO kept being treated as unspent.

Skip the outpoint only on `Error::Protocol` and propagate all other
errors, matching `populate_with_txids`.
crates/electrum/src/bdk_electrum_client.rs