channeldb+routing: remove tx arg for ForEachNode

This commit is contained in:
Conner Fromknecht committed 2020-05-12 17:53:20 -07:00
1 parent b6915d9fbf
commit 90d3bf532d
5 files changed
+8 -21

No files matched your search

+1 -1
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