mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-09 09:15:35 +02:00
multi: carve out LinkNodeDB from channeldb.DB for cleaner separation
This commit is contained in:
committed by
Oliver Gugger
parent
292b8e1ce6
commit
60cccf8409
@@ -210,8 +210,8 @@ func TestAddrsForNode(t *testing.T) {
|
||||
if err != nil {
|
||||
t.Fatalf("unable to recv node pub: %v", err)
|
||||
}
|
||||
linkNode := cdb.NewLinkNode(
|
||||
wire.MainNet, nodePub, anotherAddr,
|
||||
linkNode := NewLinkNode(
|
||||
cdb.linkNodeDB, wire.MainNet, nodePub, anotherAddr,
|
||||
)
|
||||
if err := linkNode.Sync(); err != nil {
|
||||
t.Fatalf("unable to sync link node: %v", err)
|
||||
@@ -423,7 +423,9 @@ func TestRestoreChannelShells(t *testing.T) {
|
||||
|
||||
// We should also be able to find the link node that was inserted by
|
||||
// its public key.
|
||||
linkNode, err := cdb.FetchLinkNode(channelShell.Chan.IdentityPub)
|
||||
linkNode, err := cdb.linkNodeDB.FetchLinkNode(
|
||||
channelShell.Chan.IdentityPub,
|
||||
)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to fetch link node: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user