fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
18 stars 18 forks source link

Better error handling when outbound liquidity is to low #226

Open fusion44 opened 11 months ago

fusion44 commented 11 months ago

If a user tries to send funds from a node where the channel has outgoing liquidity below the channel reserve amount, the error message will say no route found. This is technically correct, but the error message could be more descriptive to the API user.

A better solution would be to check before attempting to send. This affects at least Core Lightning.