fusion44 / fusion44/blitz_api

Unify send pay invoice behavior

Open
#131 0 comments 0 reactions 0 assignees View on GitHub
CLN REST v0.6.0-beta
Dominant language
Python
Stars
25
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the CLN implementation that handles paying invoices and any tests covering repeated payments. Compare its behavior with the LND path described in the issue; done means an already-paid invoice through CLN produces the same 409 API response as LND.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.