mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
listchannels: add funding_outnum to listchannels
Changelog-Added: JSONRPC: `listchannels` now includes the `funding_outnum`
This commit is contained in:
parent
36ca175ec7
commit
081ef05dd1
3 changed files with 11 additions and 1 deletions
|
@ -55,6 +55,7 @@ On success, an object containing **peers** is returned. It is an array of objec
|
|||
- **short_channel_id** (short_channel_id, optional): The short_channel_id (once locked in)
|
||||
- **channel_id** (hex, optional): The full channel_id (always 64 characters)
|
||||
- **funding_txid** (txid, optional): ID of the funding transaction
|
||||
- **funding_outnum** (u32, optional): The 0-based output number of the funding transaction which opens the channel
|
||||
- **initial_feerate** (string, optional): For inflight opens, the first feerate used to initiate the channel open
|
||||
- **last_feerate** (string, optional): For inflight opens, the most recent feerate used on the channel open
|
||||
- **next_feerate** (string, optional): For inflight opens, the next feerate we'll use for the channel open
|
||||
|
@ -376,4 +377,4 @@ Main web site: <https://github.com/ElementsProject/lightning> Lightning
|
|||
RFC site (BOLT \#9):
|
||||
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
|
||||
|
||||
[comment]: # ( SHA256STAMP:956a13291bebc808bf1505a5d2030280aca441c5ca9991a6baae70c8715429a4)
|
||||
[comment]: # ( SHA256STAMP:444080f602bbce7d86bc7c38a4a2b1186a31c63d6b747d92c5aa4711dd9118c1)
|
||||
|
|
|
@ -235,6 +235,10 @@
|
|||
"type": "txid",
|
||||
"description": "ID of the funding transaction"
|
||||
},
|
||||
"funding_outnum": {
|
||||
"type": "u32",
|
||||
"description": "The 0-based output number of the funding transaction which opens the channel"
|
||||
},
|
||||
"initial_feerate": {
|
||||
"type": "string",
|
||||
"description": "For inflight opens, the first feerate used to initiate the channel open"
|
||||
|
@ -741,6 +745,7 @@
|
|||
"short_channel_id": {},
|
||||
"channel_id": {},
|
||||
"funding_txid": {},
|
||||
"funding_outnum": {},
|
||||
"close_to": {},
|
||||
"private": {},
|
||||
"opener": {},
|
||||
|
@ -826,6 +831,7 @@
|
|||
"short_channel_id": {},
|
||||
"channel_id": {},
|
||||
"funding_txid": {},
|
||||
"funding_outnum": {},
|
||||
"inflight": {},
|
||||
"close_to": {},
|
||||
"private": {},
|
||||
|
@ -913,6 +919,7 @@
|
|||
"short_channel_id": {},
|
||||
"channel_id": {},
|
||||
"funding_txid": {},
|
||||
"funding_outnum": {},
|
||||
"inflight": {},
|
||||
"close_to": {},
|
||||
"private": {},
|
||||
|
@ -1000,6 +1007,7 @@
|
|||
"short_channel_id": {},
|
||||
"channel_id": {},
|
||||
"funding_txid": {},
|
||||
"funding_outnum": {},
|
||||
"close_to": {},
|
||||
"private": {},
|
||||
"opener": {},
|
||||
|
|
|
@ -656,6 +656,7 @@ static void json_add_channel(struct lightningd *ld,
|
|||
json_add_string(response, "channel_id",
|
||||
type_to_string(tmpctx, struct channel_id, &channel->cid));
|
||||
json_add_txid(response, "funding_txid", &channel->funding.txid);
|
||||
json_add_num(response, "funding_outnum", channel->funding.n);
|
||||
|
||||
if (!list_empty(&channel->inflights)) {
|
||||
struct channel_inflight *initial, *inflight;
|
||||
|
|
Loading…
Add table
Reference in a new issue