L2-Technology / sensei

A lightning node implementation for everyone
https://l2.technology/sensei
Other
198 stars 39 forks source link

ensure new node listeners are at same tip as manager before adding to global listener #40

Closed johncantrell97 closed 2 years ago

johncantrell97 commented 2 years ago

There's a potential issue where if a block is connected after we synchronize_listeners for a new node but before we add it to the global chain listener then the new node listeners will miss that new block.

This issue is more likely to arise if bitcoind is still catching up to tip and is connecting blocks very quickly.

the solution is to