lnd/lntest/node
Elle Mouton 57c6c236d8
lntest: wait for ChanUpdate req to be fully processed before sending another
Before this commit, it was possible for a request to be sent on the
`chanWatchRequests` channel in `WaitForChannelPolicyUpdate` and then for
the `ticker.C` case to select _before_ the `eventChan` select gets
triggered when the `topologyWatcher` closes the `eventChan` in its call
to `handlePolicyUpdateWatchRequest`. This could lead to a "close of a
closed channel" panic.

To fix this, this commit ensures that we only move on to the next
iteration of the select statement in `WaitForChannelPolicyUpdate` once
the request sent on `chanWatchRequests` has been fully handled.
2025-03-03 17:53:15 +02:00
..
config.go lntest+itest: start flattening the multi-hop tests 2024-12-20 17:54:09 +08:00
harness_node.go lntest: log timestamp when printing errors 2025-02-05 22:51:46 +08:00
state.go multi: update to fn v2 2024-12-04 13:19:00 -07:00
watcher.go lntest: wait for ChanUpdate req to be fully processed before sending another 2025-03-03 17:53:15 +02:00