multi: extract and pass through IsZombieChannel method

This commit is contained in:
Elle Mouton committed 2023-12-11 09:12:05 +02:00
1 parent 67df687f08
commit e12321cfd6
5 files changed
+77 -25

No files matched your search

+5
View File
@@ -293,6 +293,11 @@ type gossipSyncerCfg struct {
// maxQueryChanRangeReplies is the maximum number of replies we'll allow
// for a single QueryChannelRange request.
maxQueryChanRangeReplies uint32
// isStillZombieChannel takes the timestamps of the latest channel
// updates for a channel and returns true if the channel should be
// considered a zombie based on these timestamps.
isStillZombieChannel func(time.Time, time.Time) bool
}
// GossipSyncer is a struct that handles synchronizing the channel graph state