mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 03:06:01 +02:00
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:
@@ -835,12 +835,6 @@ func (g *GossipSyncer) processChanRangeReply(msg *lnwire.ReplyChannelRange) erro
|
|||||||
}
|
}
|
||||||
|
|
||||||
g.prevReplyChannelRange = msg
|
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 {
|
for i, scid := range msg.ShortChanIDs {
|
||||||
info := channeldb.NewChannelUpdateInfo(
|
info := channeldb.NewChannelUpdateInfo(
|
||||||
|
Reference in New Issue
Block a user