Funding page spam creates multiple invoices in LNbits #4

Open
opened 2026-01-11 16:22:51 +00:00 by padreug · 0 comments
Owner

Bug Description

Repeatedly clicking/refreshing the funding page creates multiple invoices in LNbits instead of reusing an existing unpaid invoice or rate-limiting invoice creation.

Expected Behavior

  • Reuse existing unpaid invoice if one already exists for the same amount
  • Or implement debouncing/rate-limiting to prevent invoice spam
  • Or invalidate previous invoice before creating a new one

Actual Behavior

Each request to the funding page creates a new invoice in LNbits, leading to orphaned unpaid invoices.

Investigation Needed

  • Identify where invoice creation is triggered in the funding flow
  • Determine if there's existing logic for invoice reuse
  • Implement appropriate fix (debounce, reuse, or cleanup)
## Bug Description Repeatedly clicking/refreshing the funding page creates multiple invoices in LNbits instead of reusing an existing unpaid invoice or rate-limiting invoice creation. ## Expected Behavior - Reuse existing unpaid invoice if one already exists for the same amount - Or implement debouncing/rate-limiting to prevent invoice spam - Or invalidate previous invoice before creating a new one ## Actual Behavior Each request to the funding page creates a new invoice in LNbits, leading to orphaned unpaid invoices. ## Investigation Needed - [ ] Identify where invoice creation is triggered in the funding flow - [ ] Determine if there's existing logic for invoice reuse - [ ] Implement appropriate fix (debounce, reuse, or cleanup)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: aiolabs/lamassu-server#4
No description provided.