lightningd: actually deprecate the listpeerchannels field.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2025-02-21 15:05:20 +10:30
committed by Alex Myers
parent fe4d5036c2
commit afb54ff8e8
2 changed files with 5 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ hidden: false
| close.txid | Field | v24.11 | v25.11 | Use txids array instead |
| 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 |
Inevitably there are features which need to change: either to be generalized, or removed when they can no longer be supported.

View File

@@ -1146,8 +1146,10 @@ static void NON_NULL_ARGS(1, 2, 4, 5) json_add_channel(struct command *cmd,
/* channel config */
json_add_amount_sat_msat(response, "dust_limit_msat",
channel->our_config.dust_limit);
json_add_amount_msat(response, "max_total_htlc_in_msat",
channel->our_config.max_htlc_value_in_flight);
if (command_deprecated_out_ok(cmd, "max_total_htlc_in_msat",
"v25.02", "v26.02"))
json_add_amount_msat(response, "max_total_htlc_in_msat",
channel->our_config.max_htlc_value_in_flight);
json_add_amount_msat(
response, "their_max_htlc_value_in_flight_msat",
channel->channel_info.their_config.max_htlc_value_in_flight);