lnrpc: add filters to forwardhistoryrequest

This commit adds incoming and outgoing channel ids filter to forwarding history request to filter events received/forwarded from/to a particular channel
This commit is contained in:
Shivam Chawla committed 2025-06-11 09:10:13 +05:30
1 parent 92a5d35cff
commit bfe1edf4ec
8 files changed
+1089 -815

No files matched your search

+829 -803
View File
File diff suppressed because it is too large. Load diff
+8
View File
@@ -4671,6 +4671,14 @@ message ForwardingHistoryRequest {
// Informs the server if the peer alias should be looked up for each
// forwarding event.
bool peer_alias_lookup = 5;
// List of incoming channel ids to filter htlcs received from a
// particular channel
repeated uint64 incoming_chan_ids = 6;
// List of outgoing channel ids to filter htlcs being forwarded to a
// particular channel
repeated uint64 outgoing_chan_ids = 7;
}
message ForwardingEvent {
// Timestamp is the time (unix epoch offset) that this circuit was
+16
View File
@@ -5114,6 +5114,22 @@
"peer_alias_lookup": {
"type": "boolean",
"description": "Informs the server if the peer alias should be looked up for each\nforwarding event."
},
"incoming_chan_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
"title": "List of incoming channel ids to filter htlcs received from a\nparticular channel"
},
"outgoing_chan_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uint64"
},
"title": "List of outgoing channel ids to filter htlcs being forwarded to a\nparticular channel"
}
}
},