Merge pull request #4693 from joostjager/listchannels-circuits

lnrpc: expose linked htlcs in ListChannels
This commit is contained in:
Conner Fromknecht authored and GitHub committed 2020-10-29 12:52:34 -07:00
commit 4adb8123af
6 files changed
+898 -776

No files matched your search

+800 -764
View File
File diff suppressed because it is too large. Load diff
+15
View File
@@ -1006,6 +1006,21 @@ message HTLC {
int64 amount = 2;
bytes hash_lock = 3;
uint32 expiration_height = 4;
// Index identifying the htlc on the channel.
uint64 htlc_index = 5;
// If this HTLC is involved in a forwarding operation, this field indicates
// the forwarding channel. For an outgoing htlc, it is the incoming channel.
// For an incoming htlc, it is the outgoing channel. When the htlc
// originates from this node or this node is the final destination,
// forwarding_channel will be zero. The forwarding channel will also be zero
// for htlcs that need to be forwarded but don't have a forwarding decision
// persisted yet.
uint64 forwarding_channel = 6;
// Index identifying the htlc on the forwarding channel.
uint64 forwarding_htlc_index = 7;
}
enum CommitmentType {
+15
View File
@@ -3813,6 +3813,21 @@
"expiration_height": {
"type": "integer",
"format": "int64"
},
"htlc_index": {
"type": "string",
"format": "uint64",
"description": "Index identifying the htlc on the channel."
},
"forwarding_channel": {
"type": "string",
"format": "uint64",
"description": "If this HTLC is involved in a forwarding operation, this field indicates\nthe forwarding channel. For an outgoing htlc, it is the incoming channel.\nFor an incoming htlc, it is the outgoing channel. When the htlc\noriginates from this node or this node is the final destination,\nforwarding_channel will be zero. The forwarding channel will also be zero\nfor htlcs that need to be forwarded but don't have a forwarding decision\npersisted yet."
},
"forwarding_htlc_index": {
"type": "string",
"format": "uint64",
"description": "Index identifying the htlc on the forwarding channel."
}
}
},