mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-02 18:35:00 +01:00
peer_control: Print both to_self_delay
in listpeers.
This commit is contained in:
parent
b4f7ce61b4
commit
1de124277b
1 changed files with 10 additions and 1 deletions
|
@ -665,8 +665,17 @@ static void gossipd_getpeers_complete(struct subd *gossip, const u8 *msg,
|
|||
channel->our_config.channel_reserve_satoshis);
|
||||
json_add_u64(response, "htlc_minimum_msat",
|
||||
channel->our_config.htlc_minimum_msat);
|
||||
json_add_num(response, "to_self_delay",
|
||||
/* The `to_self_delay` is imposed on the *other*
|
||||
* side, so our configuration `to_self_delay` is
|
||||
* imposed on their side, while their configuration
|
||||
* `to_self_delay` is imposed on ours. */
|
||||
json_add_num(response, "their_to_self_delay",
|
||||
channel->our_config.to_self_delay);
|
||||
json_add_num(response, "our_to_self_delay",
|
||||
channel->channel_info.their_config.to_self_delay);
|
||||
if (deprecated_apis)
|
||||
json_add_num(response, "to_self_delay",
|
||||
channel->our_config.to_self_delay);
|
||||
json_add_num(response, "max_accepted_htlcs",
|
||||
channel->our_config.max_accepted_htlcs);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue