channeldb+routing: remove tx arg for ForEachNode

This commit is contained in:
Conner Fromknecht
2020-05-12 15:24:40 -07:00
parent b6915d9fbf
commit 90d3bf532d
5 changed files with 8 additions and 21 deletions

View File

@@ -121,7 +121,7 @@ func (d dbNode) ForEachChannel(cb func(ChannelEdge) error) error {
//
// NOTE: Part of the autopilot.ChannelGraph interface.
func (d *databaseChannelGraph) ForEachNode(cb func(Node) error) error {
return d.db.ForEachNode(nil, func(tx kvdb.ReadTx, n *channeldb.LightningNode) error {
return d.db.ForEachNode(func(tx kvdb.ReadTx, n *channeldb.LightningNode) error {
// We'll skip over any node that doesn't have any advertised
// addresses. As we won't be able to reach them to actually