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 }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Currently an objective can stall, for example if a message is dropped. See also statechannels/statechannels#3230. When that happens, we can call wallet.syncObjectives. But we need a way to detect which ones have stalled in the first place.
Recent work in the wallet (statechannels/statechannels#3308) means that objectives now have timestamps. So hopefully we can hook into that to get the job done.
My view on this is that the timescale over which we would deem an objective to have stalled should be set by the app. This is partly because the app is responsible for messaging.
I think a short term approach is for the app to (pseudocode):
the app could use o.createdAt instead (and a corresponding const MAX_OBJECTIVE_LIFE_TIME), depending on the reliability of the progressLastMadeAt stamp.
longer term the wallet just accepts the timescale into syncObjectives() method and does the rest itself.