lnd/discovery
Johan T. Halseth 3e01529de4
discovery/gossiper: don't reset batch after broadcast
This commit fixes a bug that could cause annoucements
to get lost, and resultet in flaky integration tests.
After a set of announcements was broadcastet, we would
reset (clear) the announcement batch, making any
annoucement that was added between the call to Emit()
and Reset() to be deleted, without ever being broadcast.

We can just remove the Reset() call, as the batch will
actually be reset within the call to Emit(), making
the previous call only delete those messages we hadn't
sent yet.
2018-01-24 10:26:39 +01:00
..
ann_validation.go discovery: publicly export announcement validation related functions 2017-12-01 19:31:54 -08:00
bootstrapper.go discovery: correctly format ipv6 addresses from dns seed 2017-12-22 20:12:35 +01:00
gossiper_test.go discovery test: update gossiper test to account for timestamp deduping 2018-01-09 13:09:28 +01:00
gossiper.go discovery/gossiper: don't reset batch after broadcast 2018-01-24 10:26:39 +01:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
utils.go discovery: set proper flag within createChanAnnouncement 2017-11-30 22:33:00 -08:00