mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
lightningd: expose ignore_fee_limits field in listpeerchannels.
Changelog-Added: JSON-RPC: `listpeerchannels` has a new field `ignore_fee_limits` Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -748,6 +748,9 @@ static void json_add_channel(struct lightningd *ld,
|
||||
json_add_node_id(response, "peer_id", &peer->id);
|
||||
json_add_bool(response, "peer_connected", peer->connected == PEER_CONNECTED);
|
||||
json_add_channel_type(response, "channel_type", channel->type);
|
||||
if (channel->ignore_fee_limits) {
|
||||
json_add_bool(response, "ignore_fee_limits", channel->ignore_fee_limits);
|
||||
}
|
||||
}
|
||||
json_add_string(response, "state", channel_state_name(channel));
|
||||
if (channel->last_tx && !invalid_last_tx(channel->last_tx)) {
|
||||
|
||||
Reference in New Issue
Block a user