Skip to content

Fix static default from and to pagination#2484

Merged
t-bast merged 3 commits into
masterfrom
fix-from-to-api
Nov 14, 2022
Merged

Fix static default from and to pagination#2484
t-bast merged 3 commits into
masterfrom
fix-from-to-api

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented Nov 14, 2022

The default values for the from and to parameters of some API requests were generated once when the eclair node starts instead of being recomputed for every request.

We also add count and skip argument to listPendingInvoices since it was added to listInvoices.

Fixes #2475

The default values were generated once when the eclair node starts instead
of being recomputed for every request.

Fixes #2475
This is a follow-up for #2474: listing pending invoices should also benefit
from `skip` and `count` pagination.
@t-bast t-bast requested a review from pm47 November 14, 2022 10:24
@t-bast t-bast mentioned this pull request Nov 14, 2022
Comment thread eclair-node/src/main/scala/fr/acinq/eclair/api/directives/ExtraDirectives.scala Outdated
Just convert val to def instead of an explicit function.
@t-bast t-bast merged commit 6eba3e7 into master Nov 14, 2022
@t-bast t-bast deleted the fix-from-to-api branch November 14, 2022 15:03
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.

listinvoices returns an incomplete list

2 participants