graph/db+autopilot: remove NodeRTx FetchNode method

In this commit, we remove the need for the NodeRTx interface to have the
FetchNode method on it.
This commit is contained in:
Elle Mouton
2025-08-03 16:48:22 +02:00
parent 70b8c8ec78
commit ae566744c4
5 changed files with 1 additions and 55 deletions

View File

@@ -742,16 +742,4 @@ func (t *testNodeTx) ForEachChannel(f func(*models.ChannelEdgeInfo,
)
}
func (t *testNodeTx) FetchNode(pub route.Vertex) (graphdb.NodeRTx, error) {
node, err := t.db.db.FetchLightningNode(context.Background(), pub)
if err != nil {
return nil, err
}
return &testNodeTx{
db: t.db,
node: node,
}, nil
}
var _ graphdb.NodeRTx = (*testNodeTx)(nil)