routing: return nicer error message when routes fail due to the fee limit #2660
Labels
error messages
gRPC
intermediate
Issues suitable for developers moderately familiar with the codebase and LN
P2
should be fixed if one has time
payments
Related to invoices/payments
routing nodes
routing
Today when making a payment or requesting a route, a payment can fail if hits the specified fee limit. The default value is 100% (should definitely be lowered), so a routine payment of 1 satoshi can at times fail since many nodes (on testnet at least) enforce a 1 satoshi base fee. In order to make this error more actionable for users and also GUIs, we should return a concrete error if path finding fails due to the fee limit. Atm, we just let that error go, and attempt to move unto the next route.
Related to #1662.
Steps To Completion
In
findPath
, keep track of unexplored routes due to fee limit errors.If no route is found, then if all of our past errors were due to violating the fee limit, then return a new concrete error.
Amend the relevant RPC servers (and possibly sub-servers) to expose this new error to the caller.
The text was updated successfully, but these errors were encountered: