fusion44 / blitz_api

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

Unify send pay invoice behavior #131

Open fusion44 opened 2 years ago

fusion44 commented 2 years ago

Each LN node behavior differs when attempting to pay an invoice that was previously paid:

LND

Returns an error and the API returns a 409

CLN

Just returns the payment data without error.

The CLN implementation should check before attempting to pay the invoice if it is already paid and return a 409.