lnd/discovery
Brian Mancini 28931390ff discovery: prevent endBlock overflow in replyChanRangeQuery
Modifies syncer.replyChanRangeQuery method to use the LastBlockHeight
method on the query. LastBlockHeight safely calculates the ending
block height and prevents an overflow of start_block + num_blocks.

Prior to this change, query messages that had a start_block +
num_blocks that overflows uint32_max would return zero results in the
reply message.

Tests are added to fix the bug and ensure proper start and end values
are supplied to the channel graph filter.
2020-06-18 16:48:09 -04:00
..
bootstrapper.go discovery: error string lint fixes 2019-09-25 18:42:38 +00:00
chan_series.go discovery/chan_series: use netann.ChannelUpdateFromEdge helper 2020-03-17 16:24:25 -07:00
gossiper_test.go Ensure chain notifier is started before accessed. 2020-04-30 12:54:33 +03:00
gossiper.go discovery: remove unused updateChanPolicies struct 2020-03-19 13:43:57 -07:00
log.go multi: init subsystem loggers via build pkg 2018-10-05 13:04:45 +09:00
message_store_test.go discovery: covert to use new kvdb abstraction 2020-03-18 19:35:07 -07:00
message_store.go multi: rename ReadTx to RTx 2020-05-26 18:20:37 -07:00
mock_test.go multi: remove returned error from WipeChannel 2020-04-02 17:39:29 -07:00
reliable_sender_test.go multi: move WaitPredicate, WaitNoError, WaitInvariant to lntest/wait 2019-09-19 12:46:29 -07:00
reliable_sender.go discovery,fundingmanager: avoid serialization in NotifyWhenOnline 2019-06-04 16:36:21 -03:00
sync_manager_test.go discovery: interpret block range from ReplyChannelRange messages 2020-01-06 14:03:13 -08:00
sync_manager.go multi: remove dead code 2019-09-10 17:21:59 +02:00
syncer_test.go discovery: prevent endBlock overflow in replyChanRangeQuery 2020-06-18 16:48:09 -04:00
syncer.go discovery: prevent endBlock overflow in replyChanRangeQuery 2020-06-18 16:48:09 -04:00