From bc019a7bcf03df43f3d99614433b3d393e4311f4 Mon Sep 17 00:00:00 2001 From: David May Date: Mon, 8 Jun 2026 21:15:39 +0200 Subject: [PATCH] fix(lndhub): default limit=200 for getuserinvoices and gettxs 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')