Skip to content

Commit afb54ff

Browse files
rustyrussellendothermicdev
authored andcommitted
lightningd: actually deprecate the listpeerchannels field.
Signed-off-by: Rusty Russell <[email protected]>
1 parent fe4d503 commit afb54ff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

doc/developers-guide/deprecations.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ hidden: false
3838
| close.txid | Field | v24.11 | v25.11 | Use txids array instead |
3939
| experimental-offers | Config | v24.11 | v25.05 | Now the default |
4040
| 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) |
41+
| listpeerchannels.max_total_htlc_in_msat | Field | v25.02 | v26.02 | Use our_max_total_htlc_out_msat |
4142

4243
Inevitably there are features which need to change: either to be generalized, or removed when they can no longer be supported.
4344

lightningd/peer_control.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,8 +1146,10 @@ static void NON_NULL_ARGS(1, 2, 4, 5) json_add_channel(struct command *cmd,
11461146
/* channel config */
11471147
json_add_amount_sat_msat(response, "dust_limit_msat",
11481148
channel->our_config.dust_limit);
1149-
json_add_amount_msat(response, "max_total_htlc_in_msat",
1150-
channel->our_config.max_htlc_value_in_flight);
1149+
if (command_deprecated_out_ok(cmd, "max_total_htlc_in_msat",
1150+
"v25.02", "v26.02"))
1151+
json_add_amount_msat(response, "max_total_htlc_in_msat",
1152+
channel->our_config.max_htlc_value_in_flight);
11511153
json_add_amount_msat(
11521154
response, "their_max_htlc_value_in_flight_msat",
11531155
channel->channel_info.their_config.max_htlc_value_in_flight);

0 commit comments

Comments
 (0)