lnd+lnrpc: update fwdinghistory message

In this commit we update the returned message for fwdinghistory
to include the htlcindex for all forwarded htlcs.
This commit is contained in:
Abdullahi Yunus committed 2025-06-06 12:21:46 +01:00
1 parent f79e6137c1
commit a0634e4ade
5 files changed
+860 -778

No files matched your search

+807 -778
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -4716,6 +4716,14 @@ message ForwardingEvent {
// The peer alias of the outgoing channel.
string peer_alias_out = 13;
// The ID of the incoming HTLC in the payment circuit. This field is
// optional and is unset for forwarding events happened before v0.20.
optional uint64 incoming_htlc_id = 14;
// The ID of the outgoing HTLC in the payment circuit. This field is
// optional and may be unset for legacy forwarding events.
optional uint64 outgoing_htlc_id = 15;
// TODO(roasbeef): add settlement latency?
// * use FPE on the chan id?
// * also list failures?
+10
View File
@@ -5075,6 +5075,16 @@
"peer_alias_out": {
"type": "string",
"description": "The peer alias of the outgoing channel."
},
"incoming_htlc_id": {
"type": "string",
"format": "uint64",
"description": "The ID of the incoming HTLC in the payment circuit. This field is\noptional and is unset for forwarding events happened before v0.20."
},
"outgoing_htlc_id": {
"type": "string",
"format": "uint64",
"description": "The ID of the outgoing HTLC in the payment circuit. This field is\noptional and may be unset for legacy forwarding events."
}
}
},