Skip to content

Commit

Permalink
Speedloader: update for LND v0.18.4-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Dec 18, 2024
1 parent 2493e02 commit 3a1d6ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile/speedloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func ourNode(chanDB *channeldb.DB) (*channeldb.LightningNode, error) {
return node, err
}

func ourData(chanDB *channeldb.DB, tx walletdb.ReadWriteTx, ourNode *channeldb.LightningNode, log *Logger) (
func ourData(chanDB *channeldb.DB, ourNode *channeldb.LightningNode, log *Logger) (
[]*channeldb.LightningNode, []*models.ChannelEdgeInfo, []*models.ChannelEdgePolicy, error) {
nodeMap := make(map[string]*channeldb.LightningNode)
var edges []*models.ChannelEdgeInfo
Expand All @@ -235,7 +235,7 @@ func ourData(chanDB *channeldb.DB, tx walletdb.ReadWriteTx, ourNode *channeldb.L
return nodes, edges, policies, globalCtx.Err()
default:
graph := chanDB.ChannelGraph()
err := graph.ForEachNodeChannel(tx, ourNode.PubKeyBytes, func(tx walletdb.ReadTx,
err := graph.ForEachNodeChannel(ourNode.PubKeyBytes, func(tx walletdb.ReadTx,
channelEdgeInfo *models.ChannelEdgeInfo,
toPolicy *models.ChannelEdgePolicy,
fromPolicy *models.ChannelEdgePolicy) error {
Expand Down Expand Up @@ -789,7 +789,7 @@ func GossipSync(serviceUrl string, cacheDir string, dataDir string, networkType
//errors.New("source node was set before sync transaction, rolling back").Error()
}
if ourNode != nil {
channelNodes, channels, policies, err := ourData(destDB, kvdbTx, ourNode, log)
channelNodes, channels, policies, err := ourData(destDB, ourNode, log)
if err != nil {
callback.OnError(err)
return
Expand Down

0 comments on commit 3a1d6ee

Please sign in to comment.