mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-11 13:22:36 +01:00
In this commit, we add a new abstraction, the ValidationBarrier. This struct will be used to allow parallel validation of announcements within notes AuthenticatedGossiper as well as the ChannelRouter. Naively validating the announcement in parallel would run into issues as it would be possible for validate an update announcement, before validating the channel announcement itself. We solve this by creating a waiting dependance using the ValidationBarrier to ensure that the defendant jobs wait until their parents have been full validated.
8.5 KiB
8.5 KiB