multi: move ChannelGraphSource interface

... to the new `graph` package in preparation for the implementation of
the interface being moved to this new package.
This commit is contained in:
Elle Mouton
2024-06-14 20:05:20 -04:00
parent e9c89ae0ec
commit c1d7a9d2e7
4 changed files with 96 additions and 79 deletions

View File

@@ -25,6 +25,7 @@ import (
"github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/channeldb/models"
"github.com/lightningnetwork/lnd/graph"
"github.com/lightningnetwork/lnd/keychain"
"github.com/lightningnetwork/lnd/kvdb"
"github.com/lightningnetwork/lnd/lnpeer"
@@ -108,7 +109,7 @@ func newMockRouter(height uint32) *mockGraphSource {
}
}
var _ routing.ChannelGraphSource = (*mockGraphSource)(nil)
var _ graph.ChannelGraphSource = (*mockGraphSource)(nil)
func (r *mockGraphSource) AddNode(node *channeldb.LightningNode,
_ ...batch.SchedulerOption) error {