graph/db: introduce VersionedGraph
For now, all instances will use V1 only so as not to change behaviour yet.
This commit is contained in:
9 files changed
+122
-84
No files matched your search
@@ -31,12 +31,14 @@ type testGraph interface {
|
||||
}
|
||||
|
||||
type testDBGraph struct {
|
||||
db *graphdb.ChannelGraph
|
||||
db *graphdb.VersionedGraph
|
||||
databaseChannelGraph
|
||||
}
|
||||
|
||||
func newDiskChanGraph(t *testing.T) (testGraph, error) {
|
||||
graphDB := graphdb.MakeTestGraph(t)
|
||||
graphDB := graphdb.NewVersionedGraph(
|
||||
graphdb.MakeTestGraph(t), lnwire.GossipVersion1,
|
||||
)
|
||||
require.NoError(t, graphDB.Start())
|
||||
t.Cleanup(func() {
|
||||
require.NoError(t, graphDB.Stop())
|
||||
|
||||
Reference in new issue
Block a user