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 2024-09-10 14:52:16 -05:00
parent c1a6d3ac31
commit 532fe05b63
No known key found for this signature in database
GPG Key ID: CC8ECA224831C982

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(