Skip to content

Commit 2c25f38

Browse files
morehouseguggero
authored andcommitted
discovery: remove check for incorrect number of timestamps
The check is no longer required, as it is now done during decoding.
1 parent c8033e1 commit 2c25f38

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

discovery/syncer.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -835,12 +835,6 @@ func (g *GossipSyncer) processChanRangeReply(msg *lnwire.ReplyChannelRange) erro
835835
}
836836

837837
g.prevReplyChannelRange = msg
838-
if len(msg.Timestamps) != 0 &&
839-
len(msg.Timestamps) != len(msg.ShortChanIDs) {
840-
841-
return fmt.Errorf("number of timestamps not equal to " +
842-
"number of SCIDs")
843-
}
844838

845839
for i, scid := range msg.ShortChanIDs {
846840
info := channeldb.NewChannelUpdateInfo(

0 commit comments

Comments
 (0)