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
Our current mocking of lnd subscriptions involves single golang channels (e.g the epochChannel) which are used by various lnd subscription calls like RegisterBlockEpochNtfn which currently simply reads from that channel (e.g reading from the epochChannel).
This causes issues when more than one subscribers are listening for updates from a mocked interface, as the order of reading from the channel is not guaranteed by golang.
Solution
We should enhance the internals of such mocked interfaces to instead use channel structures rather than a single channel
e.g
map[int32] chanint32
in order to guarantee exact delivery of updates to all subscribers.
The text was updated successfully, but these errors were encountered:
Description
Our current mocking of lnd subscriptions involves single golang channels (e.g the
epochChannel
) which are used by various lnd subscription calls likeRegisterBlockEpochNtfn
which currently simply reads from that channel (e.greading from the epochChannel
).This causes issues when more than one subscribers are listening for updates from a mocked interface, as the order of reading from the channel is not guaranteed by golang.
Solution
We should enhance the internals of such mocked interfaces to instead use channel structures rather than a single channel
e.g
in order to guarantee exact delivery of updates to all subscribers.
The text was updated successfully, but these errors were encountered: