From 3ca6b8d83b5e50692f90b103795968663b0c801a Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Tue, 30 Jan 2024 15:00:49 +0100 Subject: [PATCH] load only first 100 transctions otherwise the NWC payload is too big we need to add pagination later --- breez.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/breez.go b/breez.go index 4f942ceb..7a0c9790 100644 --- a/breez.go +++ b/breez.go @@ -187,7 +187,8 @@ func (bs *BreezService) ListTransactions(ctx context.Context, senderPubkey strin } transactions = []Nip47Transaction{} - for _, payment := range payments { + paymentList := payments[0:100] + for _, payment := range paymentList { if payment.PaymentType != breez_sdk.PaymentTypeReceived && payment.PaymentType != breez_sdk.PaymentTypeSent { // skip other types of payments for now continue