discovery: remove check for incorrect number of timestamps

The check is no longer required, as it is now done during decoding.
This commit is contained in:
Matt Morehouse committed 2024-09-10 14:52:16 -05:00
1 parent c1a6d3ac31
commit 532fe05b63
1 file changed
-6
-6
View File
@@ -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(