From 0e998af4edeff84115b910c5208c833b6bac2cb4 Mon Sep 17 00:00:00 2001 From: David May <85513542+davidleomay@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:40:55 +0200 Subject: [PATCH] fix(lndhub): default limit=200 for getuserinvoices and gettxs (#196) 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. --- .../controllers/lightning-lndhub-forward.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/subdomains/lightning/controllers/lightning-lndhub-forward.controller.ts b/src/subdomains/lightning/controllers/lightning-lndhub-forward.controller.ts index bf9fa39b6..3371aa0ea 100644 --- a/src/subdomains/lightning/controllers/lightning-lndhub-forward.controller.ts +++ b/src/subdomains/lightning/controllers/lightning-lndhub-forward.controller.ts @@ -23,13 +23,13 @@ export class LightingLndhubForwardController { @Get('gettxs') @ApiBearerAuth() async gettxs(@Req() req: Request, @Body() body: any, @Query() params: any): Promise { - return this.forwardService.lndhubRequest(req, body, params); + return this.forwardService.lndhubRequest(req, body, { limit: 200, ...params }); } @Get('getuserinvoices') @ApiBearerAuth() async getuserinvoices(@Req() req: Request, @Body() body: any, @Query() params: any): Promise { - return this.forwardService.lndhubRequest(req, body, params); + return this.forwardService.lndhubRequest(req, body, { limit: 200, ...params }); } @Get('getbtc')