mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-18 10:06:51 +01:00
This commit adds a new GraphSources interface that LND requires for graph related read-only queries. As of this commit, the interface is empty but it will be populated over the next couple of commits. We add an implementation of this interface backed by a pointer to a graphdb.ChannelGraph. The infrustructure is put into place so that the GraphSoure provided to LND can be overridden by a caller of the lnd.Main function. By default, LND will satisfy the interface itself via the new `graphsource.DBSource` struct.
7 lines
147 B
Go
7 lines
147 B
Go
package sources
|
|
|
|
// GraphSource defines the read-only graph interface required by LND for graph
|
|
// related queries.
|
|
type GraphSource interface {
|
|
}
|