You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: a stopped node's last event can be delivered twice after a restart #1397
LightningService.stop() cancels the event loop by clearing node, then returns without waiting for the loop. A loop that is mid-iteration finishes it after stop() returned, possibly blocked in node.eventHandled() (which persists the event queue) or in the MainActor hop of event delivery.
restart() then builds the next node on the same storage. If the old node's queue write has not landed, the new node can load a queue that still holds the event and deliver it again, or the late write can overwrite the new node's queue.
The window is narrow (an event dequeued while node.stop() runs) and predates the polling loop in a wider form.
Expected: no work of the stopped node's event loop overlaps the next node's setup(). Waiting for the loop in stop() needs a bound, since eventHandled() can block on a stuck VSS write.
Activity
ovitrif commentedon Nov 25, 2026
Triage: moved to the 3.3.0 milestone. 3.2.0 now holds only the Spark release work and nearby payments (NFC and Bluetooth).