jsonrpc: Add option_zeroconf handling to listpeers

This commit is contained in:
Christian Decker
2022-04-25 12:56:10 +02:00
parent 8609f9e00d
commit 3fbaac3fdb
3 changed files with 6 additions and 3 deletions

View File

@@ -749,6 +749,8 @@ static void json_add_channel(struct lightningd *ld,
json_add_string(response, NULL, "option_static_remotekey");
if (channel_has(channel, OPT_ANCHOR_OUTPUTS))
json_add_string(response, NULL, "option_anchor_outputs");
if (channel_has(channel, OPT_ZEROCONF))
json_add_string(response, NULL, "option_zeroconf");
json_array_end(response);
if (!amount_sat_sub(&peer_funded_sats, channel->funding_sats,