lightningd: improve wait API by making details fields per-subsystem.

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 <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-04-28 14:15:15 +09:30
parent f7f5696f94
commit db104aae92
13 changed files with 1202 additions and 469 deletions

View File

@@ -26,6 +26,7 @@ hidden: false
| experimental-offers | Config | v24.11 | v25.05 | Now the default |
| xpay.ignore_bolt12_mpp | Field | v25.05 | v25.11 | Try MPP even if the BOLT12 invoice doesn't explicitly allow it (CLN didn't until 25.02) |
| listpeerchannels.max_total_htlc_in_msat | Field | v25.02 | v26.02 | Use our_max_total_htlc_out_msat |
| wait.details | Field | v25.05 | v26.05 | Use subsystem-specific object instead |
Inevitably there are features which need to change: either to be generalized, or removed when they can no longer be supported.