You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a check to abort early if
there's insufficient liquidity when fulfilling
the payment in `pay_for_offer`
The logic gets the available liquidity by summing up the
`next_outbound_htlc_limit_msat` from all usable channels.
Then, compares the total liquidity amount with the total
payment amount. If the payment amount is > the available
liquidity, the function logs an error and returns a
Bolt12SemanticError::InsufficientLiquidity error.
0 commit comments