From 2c25f38a5a914760c8dd7bbd987d980fbad6881b Mon Sep 17 00:00:00 2001 From: Matt Morehouse Date: Tue, 10 Sep 2024 14:52:16 -0500 Subject: [PATCH] discovery: remove check for incorrect number of timestamps The check is no longer required, as it is now done during decoding. --- discovery/syncer.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/discovery/syncer.go b/discovery/syncer.go index b6adb447a..cdb041d99 100644 --- a/discovery/syncer.go +++ b/discovery/syncer.go @@ -835,12 +835,6 @@ func (g *GossipSyncer) processChanRangeReply(msg *lnwire.ReplyChannelRange) erro } g.prevReplyChannelRange = msg - if len(msg.Timestamps) != 0 && - len(msg.Timestamps) != len(msg.ShortChanIDs) { - - return fmt.Errorf("number of timestamps not equal to " + - "number of SCIDs") - } for i, scid := range msg.ShortChanIDs { info := channeldb.NewChannelUpdateInfo(