-
Notifications
You must be signed in to change notification settings - Fork 974
listhtlcs pagination #8166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rustyrussell
merged 9 commits into
ElementsProject:master
from
rustyrussell:guilt/listhtlcs-pagination
Apr 29, 2025
Merged
listhtlcs pagination #8166
rustyrussell
merged 9 commits into
ElementsProject:master
from
rustyrussell:guilt/listhtlcs-pagination
Apr 29, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22ccf70 to
670a36a
Compare
670a36a to
c49ccbb
Compare
cc2e043 to
d59e2bc
Compare
42f6fca to
c1baf6d
Compare
Member
|
ACK c1baf6d |
cdecker
approved these changes
Apr 25, 2025
296c20d to
5a40d83
Compare
Otherwise it can get included in contrib/msggen/msggen/schema.json! Signed-off-by: Rusty Russell <[email protected]>
The last argument is a pointer, but we were handing `false`. Which, for terrible historic reasons, gets treated as NULL. Signed-off-by: Rusty Russell <[email protected]>
It makes the schema simpler, and indeed, expressable by GRPC. Changelog-Added: JSON-RPC: `wait` now has separate `invoices`, `forwards` and `sendpays` objects for each subsystem. Changelog-Deprecated: JSON-RPC: `wait` reply `details` object: use subsytem specific object instead. Signed-off-by: Rusty Russell <[email protected]>
We're not going to increment one at a time for bulk deletion of htlcs when a channel closes. There could be millions of HTLCs! Signed-off-by: Rusty Russell <[email protected]>
This prepares us for doing listhtlcs pagination. Signed-off-by: Rusty Russell <[email protected]>
Note that documentation says invoice expiries can batch, but that's no longer true, so delete it. Usually, we miss a number because the change is too fast. This adds the wait interface, but it doesn't actually fire until the next commit, which wires it into the db code. Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: JSON-RPC: `wait` now supports the `htlcs` (`listhtlcs`) subsystem.
…cs). Signed-off-by: Rusty Russell <[email protected]>
Signed-off-by: Rusty Russell <[email protected]> Changelog-Added: JSON-RPC: `listhtlcs` has `created_index` and `updated_index` fields.
Changelog-Added: JSON-RPC: `listhtlcs` supports `index`, `start` and `end` parameters for pagination support. Signed-off-by: Rusty Russell <[email protected]>
5a40d83 to
35d9c81
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Long requested, adds wait/pagination support to listhtlcs.