rust-electrum-client icon indicating copy to clipboard operation
rust-electrum-client copied to clipboard

Routinely returns `AllAttemptsErrored([])` on failed requests

Open binarybaron opened this issue 1 month ago • 5 comments

In these parts of the code we returning before adding the latest error to the errors: Vec<_>. This causes this code to return AllAttemptsErrored([]) which is a bit frustrating.

https://github.com/bitcoindevkit/rust-electrum-client/blob/761796c94ae29a41651914796c926bbabf8784c8/src/client.rs#L56-L65 https://github.com/bitcoindevkit/rust-electrum-client/blob/761796c94ae29a41651914796c926bbabf8784c8/src/client.rs#L80-L89

binarybaron avatar Nov 07 '25 01:11 binarybaron