discovery/sync_manager: restart historical sync on first connected peer #3103
To handle the case where we have been without peers, and get a new
This would cause integration tests to be flaky (especially with Neutrino), since we would risk not getting graph updates after having being disconnected.
wpaulino left a comment
An alternative approach would be to modify the historical sync interval in the integration tests, though I think this is still useful given the following scenario: if you've lost all your peers and start receiving new updates at tip, you won't be able to process some of these channels if you've yet to see their channel announcement, so performing a historical sync before doing so would make sense.