]> Untitled Git - bdk-cli/commit
Retry Payjoin requests with other relays
authorMshehu5 <musheu@gmail.com>
Sun, 28 Jun 2026 16:01:25 +0000 (17:01 +0100)
committerMshehu5 <musheu@gmail.com>
Thu, 2 Jul 2026 11:30:31 +0000 (12:30 +0100)
commit2f14a368158dbeacfc9420587a85fb7b29e2ab07
tree29c8b6f79c75739c1d26a68425e3b5e321abd24c
parent6fb0ecd00e089a8cd2d8eecf46e8f6ac48dc4033
Retry Payjoin requests with other relays

Payjoin currently keeps using the relay selected during OHTTP key
bootstrapping. If that relay goes offline, the session fails even when
other relay URLs were supplied.

Select from the available relays for each OHTTP request and remember
failures for the rest of the command. Build a fresh request for every
attempt so failover does not reuse linkable OHTTP ciphertext.
src/payjoin/mod.rs
src/payjoin/ohttp.rs