multi: use cache for source channels

This commit is contained in:
Oliver Gugger committed 2021-09-29 17:00:04 +02:00
1 parent 369c09be61
commit 15d3f62d5e
7 files changed
+37 -23

No files matched your search

+1
View File
@@ -2315,6 +2315,7 @@ func updateEdgePolicy(tx kvdb.RwTx, edge *ChannelEdgePolicy,
)
copy(fromNodePubKey[:], fromNode)
copy(toNodePubKey[:], toNode)
// TODO(guggero): Fetch lightning nodes before updating the cache!
graphCache.UpdatePolicy(edge, fromNodePubKey, toNodePubKey, isUpdate1)
return isUpdate1, nil