mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
listchannels: add funding_outnum to listchannels
Changelog-Added: JSONRPC: `listchannels` now includes the `funding_outnum`
This commit is contained in:
@@ -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)
|
- **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)
|
- **channel_id** (hex, optional): The full channel_id (always 64 characters)
|
||||||
- **funding_txid** (txid, optional): ID of the funding transaction
|
- **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
|
- **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
|
- **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
|
- **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):
|
RFC site (BOLT \#9):
|
||||||
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
|
<https://github.com/lightningnetwork/lightning-rfc/blob/master/09-features.md>
|
||||||
|
|
||||||
[comment]: # ( SHA256STAMP:956a13291bebc808bf1505a5d2030280aca441c5ca9991a6baae70c8715429a4)
|
[comment]: # ( SHA256STAMP:444080f602bbce7d86bc7c38a4a2b1186a31c63d6b747d92c5aa4711dd9118c1)
|
||||||
|
|||||||
@@ -235,6 +235,10 @@
|
|||||||
"type": "txid",
|
"type": "txid",
|
||||||
"description": "ID of the funding transaction"
|
"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": {
|
"initial_feerate": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "For inflight opens, the first feerate used to initiate the channel open"
|
"description": "For inflight opens, the first feerate used to initiate the channel open"
|
||||||
@@ -741,6 +745,7 @@
|
|||||||
"short_channel_id": {},
|
"short_channel_id": {},
|
||||||
"channel_id": {},
|
"channel_id": {},
|
||||||
"funding_txid": {},
|
"funding_txid": {},
|
||||||
|
"funding_outnum": {},
|
||||||
"close_to": {},
|
"close_to": {},
|
||||||
"private": {},
|
"private": {},
|
||||||
"opener": {},
|
"opener": {},
|
||||||
@@ -826,6 +831,7 @@
|
|||||||
"short_channel_id": {},
|
"short_channel_id": {},
|
||||||
"channel_id": {},
|
"channel_id": {},
|
||||||
"funding_txid": {},
|
"funding_txid": {},
|
||||||
|
"funding_outnum": {},
|
||||||
"inflight": {},
|
"inflight": {},
|
||||||
"close_to": {},
|
"close_to": {},
|
||||||
"private": {},
|
"private": {},
|
||||||
@@ -913,6 +919,7 @@
|
|||||||
"short_channel_id": {},
|
"short_channel_id": {},
|
||||||
"channel_id": {},
|
"channel_id": {},
|
||||||
"funding_txid": {},
|
"funding_txid": {},
|
||||||
|
"funding_outnum": {},
|
||||||
"inflight": {},
|
"inflight": {},
|
||||||
"close_to": {},
|
"close_to": {},
|
||||||
"private": {},
|
"private": {},
|
||||||
@@ -1000,6 +1007,7 @@
|
|||||||
"short_channel_id": {},
|
"short_channel_id": {},
|
||||||
"channel_id": {},
|
"channel_id": {},
|
||||||
"funding_txid": {},
|
"funding_txid": {},
|
||||||
|
"funding_outnum": {},
|
||||||
"close_to": {},
|
"close_to": {},
|
||||||
"private": {},
|
"private": {},
|
||||||
"opener": {},
|
"opener": {},
|
||||||
|
|||||||
@@ -656,6 +656,7 @@ static void json_add_channel(struct lightningd *ld,
|
|||||||
json_add_string(response, "channel_id",
|
json_add_string(response, "channel_id",
|
||||||
type_to_string(tmpctx, struct channel_id, &channel->cid));
|
type_to_string(tmpctx, struct channel_id, &channel->cid));
|
||||||
json_add_txid(response, "funding_txid", &channel->funding.txid);
|
json_add_txid(response, "funding_txid", &channel->funding.txid);
|
||||||
|
json_add_num(response, "funding_outnum", channel->funding.n);
|
||||||
|
|
||||||
if (!list_empty(&channel->inflights)) {
|
if (!list_empty(&channel->inflights)) {
|
||||||
struct channel_inflight *initial, *inflight;
|
struct channel_inflight *initial, *inflight;
|
||||||
|
|||||||
Reference in New Issue
Block a user