graph/db+sqldb: implement ForEachSourceNodeChannel

In this commit, the ForEachSourceNodeChannel implementation of the
SQLStore is added. Since this is the first method of the SQLStore that
fetches channel and policy info, it also adds all the helpers that are
required to do so. These will be re-used in upcoming commits as more
"For"-type methods are added.

With this implementation, we convert the `TestForEachSourceNodeChannel`
such that it is run against SQL backends.
This commit is contained in:
Elle Mouton committed 2025-06-18 08:43:56 +02:00
1 parent 3ed53cdcba
commit f89e3ceced
6 files changed
+797 -1

No files matched your search

@@ -76,6 +76,7 @@ circuit. The indices are only available for forwarding events saved after v0.20.
* [1](https://github.com/lightningnetwork/lnd/pull/9866)
* [2](https://github.com/lightningnetwork/lnd/pull/9869)
* [3](https://github.com/lightningnetwork/lnd/pull/9887)
* [4](https://github.com/lightningnetwork/lnd/pull/9931)
## RPC Updates