mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
listpeers: include private field in channels output
Reveal channel's 'privacy' in `listpeers` output Suggested-By: @shesek
This commit is contained in:
committed by
Rusty Russell
parent
36e060aa60
commit
efa38875b2
@@ -716,6 +716,8 @@ static void json_add_peer(struct lightningd *ld,
|
||||
json_add_txid(response,
|
||||
"funding_txid",
|
||||
&channel->funding_txid);
|
||||
json_add_bool(response, "private",
|
||||
!(channel->channel_flags & CHANNEL_FLAGS_ANNOUNCE_CHANNEL));
|
||||
json_add_u64(response, "msatoshi_to_us",
|
||||
channel->our_msatoshi);
|
||||
json_add_u64(response, "msatoshi_to_us_min",
|
||||
|
||||
Reference in New Issue
Block a user