Skip to content

fix(lndhub): default limit=200 for getuserinvoices and gettxs#196

Merged
davidleomay merged 1 commit into
developfrom
fix/lndhub-default-limit
Jun 9, 2026
Merged

fix(lndhub): default limit=200 for getuserinvoices and gettxs#196
davidleomay merged 1 commit into
developfrom
fix/lndhub-default-limit

Conversation

@davidleomay

Copy link
Copy Markdown
Collaborator

Summary

  • getuserinvoices and gettxs now default to limit=200 (LNBits max) when the caller sends no limit
  • App can still override by passing its own limit param — the default only applies when absent
  • Fixes missing transaction history for users: app sends no limit to getuserinvoices, LNBits defaulted to 20, probe payments consumed most slots leaving few real transactions visible

Test plan

  • Refresh Lightning wallet in app — full incoming invoice history should appear
  • Verify app-supplied limit still works (e.g. ?limit=10 returns 10)
  • Confirm no regression on gettxs (outgoing payments)

App sends no limit to getuserinvoices, causing LNBits to default to 20.
With probe payments mixed in, users see far fewer real transactions than
expected. Setting a server-side default of 200 (LNBits max) ensures full
history is returned without requiring a wallet release.
@davidleomay davidleomay merged commit 0e998af into develop Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant