Merge pull request #8805 from breez/jssdwt-insert-edge-when-not-found

localchans: recreate missing edge if not found
This commit is contained in:
Oliver Gugger
2024-11-22 08:42:51 +01:00
committed by GitHub
12 changed files with 554 additions and 23 deletions

View File

@@ -1023,6 +1023,10 @@ func (c *ChannelGraph) AddChannelEdge(edge *models.ChannelEdgeInfo,
}
for _, f := range op {
if f == nil {
return fmt.Errorf("nil scheduler option was used")
}
f(r)
}