Skip to content

Commit

Permalink
Fix issues found by t-bast
Browse files Browse the repository at this point in the history
Also added a function in `BaseRouterSpec` to add a second b-c channel for the batch splice test in `Routerspec`. The alternative to adding a 2nd b-c channel in `BaseRouterSpec` for all tests requires too many other tests to need updating.
  • Loading branch information
remyers committed Feb 3, 2025
1 parent 78bcf0d commit 19e5538
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ object Validation {
val prunedChannels1 = d.prunedChannels -- shortChannelIds
val lostNodes = lostChannels.flatMap(lostChannel => Seq(lostChannel.nodeId1, lostChannel.nodeId2).filterNot(nodeId => hasChannels(nodeId, channels1.values)))
// let's clean the db and send the events
log.info("pruning shortChannelIds={} (spent)", shortChannelIds)
log.info("pruning shortChannelIds={} (spent)", shortChannelIds.mkString(","))
shortChannelIds.foreach(db.removeChannel(_)) // NB: this also removes channel updates
// we also need to remove updates from the graph
val graphWithBalances1 = lostChannels.foldLeft(d.graphWithBalances) { (graph, lostChannel) =>
Expand Down

0 comments on commit 19e5538

Please sign in to comment.