Merge pull request #4693 from joostjager/listchannels-circuits
lnrpc: expose linked htlcs in ListChannels
This commit is contained in:
6 files changed
+898
-776
No files matched your search
+800
-764
File diff suppressed because it is too large.
Load diff
@@ -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 {
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user