Closed
Description
1. When sending a payment via the async BOLT12 flow introduced in #3078, we would log-and-swallow any path finding errors and silently abandon the payment:
rust-lightning/lightning/src/ln/outbound_payment.rs
Lines 1019 to 1021 in 669a459
In order to tell the user what went wrong, it would be great to bubble up the Err
from find_route_and_send_payment
rather than continuing and returning Ok(())
.
~~2. We should also early-abort sending in the regular pay_for_offer
flow if we're certain we don't have sufficient liquidity (i.e. the offer amount surpasses the sum of our available next_outbound_htlc_limit_msat
s) ~~