mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
graph: export addZombieEdge and rename to MarkZombieEdge
The `graph.Builder`'s `addZombieEdge` method is currently called during funding transaction validation for the case where the funding tx is not found. In preparation for moving this code to the gossiper, we export the method and add it to the ChannelGraphSource interface so that the gossiper will be able to call it later on.
This commit is contained in:
@@ -107,6 +107,12 @@ func (r *mockGraphSource) AddNode(node *models.LightningNode,
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *mockGraphSource) MarkZombieEdge(scid uint64) error {
|
||||
return r.MarkEdgeZombie(
|
||||
lnwire.NewShortChanIDFromInt(scid), [33]byte{}, [33]byte{},
|
||||
)
|
||||
}
|
||||
|
||||
func (r *mockGraphSource) AddEdge(info *models.ChannelEdgeInfo,
|
||||
_ ...batch.SchedulerOption) error {
|
||||
|
||||
|
Reference in New Issue
Block a user