-
Notifications
You must be signed in to change notification settings - Fork 895
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
listpeerchannels: split conversion into stages #5825
listpeerchannels: split conversion into stages #5825
Commits on Jan 12, 2023
-
lightningd: prepare internal json routines for listpeerchannels.
We're soon going to call json_add_unsaved_channel and json_add_uncommitted_channel from a new place, where we want the peer state directly included. Based on patch by @vincenzopalazzo. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for d586d9a - Browse repository at this point
Copy the full SHA d586d9aView commit details -
lightningd: add listpeerchannels command
Changelog-Added: JSON-RPC: new command `listpeerchannels` now contains information on direct channels with our peers. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8e69aab - Browse repository at this point
Copy the full SHA 8e69aabView commit details -
Configuration menu - View commit details
-
Copy full SHA for de9ecd1 - Browse repository at this point
Copy the full SHA de9ecd1View commit details -
plugins/libplugin: flatten return from json_to_listpeers_result.
Instead of returning a peers -> channels heirarchy, return (as callers want!) a flat array of channels. This is actually most of the transition work to make them work with listpeerchannels. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2138776 - Browse repository at this point
Copy the full SHA 2138776View commit details -
libplugin: don't return unopened channels from json_to_listpeers_chan…
…nels(). This way we always have an SCID and a direction. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 8dd41d5 - Browse repository at this point
Copy the full SHA 8dd41d5View commit details -
pay: use json_to_listpeers_channels() for local_channel_hints.
Don't parse the listpeers.channels output ourselves: with two extra fields we can simply reuse json_to_listpeers_channels(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 3b7775a - Browse repository at this point
Copy the full SHA 3b7775aView commit details -
plugins: use listpeerchannels instead of listpeers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 2ca2065 - Browse repository at this point
Copy the full SHA 2ca2065View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3f418e - Browse repository at this point
Copy the full SHA f3f418eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3230b6b - Browse repository at this point
Copy the full SHA 3230b6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c1a5deb - Browse repository at this point
Copy the full SHA c1a5debView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcf6484 - Browse repository at this point
Copy the full SHA fcf6484View commit details -
pytest: fix race in test_bookkeeping_closing_subsat_htlcs
With the next change (which, as a side-effect, speeds up listpeers), we seem to hit a race in this test. The bookkeeper doesn't get to process the final payment before the node is shutdown. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 9e8a8db - Browse repository at this point
Copy the full SHA 9e8a8dbView commit details -
lightningd: deprecate listpeers.channels
Changelog-Deprecated: JSON-RPC: `listpeers` `channels` array: use `listpeerchannels` Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2dfd4a8 - Browse repository at this point
Copy the full SHA 2dfd4a8View commit details -
doc: remove manual field descriptions from listpeerchannels(7).
Some are best copied into the schema, but some are already out-of-date, so cleanest to remove them and rely on the generated (and thus, checked!) fields. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Configuration menu - View commit details
-
Copy full SHA for 6b41666 - Browse repository at this point
Copy the full SHA 6b41666View commit details