This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Fill the gaps in RollingSessionWindow
from the runtime state
#6165
Labels
I4-annoyance
Code behaves within expectations, however this “expected behaviour” itself is at issue.
T4-parachains_engineering
This PR/Issue is related to Parachains performance, stability, maintenance.
U3-nice_to_have
Issue is worth doing eventually.
This is a follow-up to #6040 aiming to address an issue described in #6106 (comment).
The edge case scenario can arise when 1/3+ of active validators are being offline or somehow lose their parachain db for a few sessions (>
dispute_period
, currently 6). We don't expect this to happen on mainnet, but it could be an annoyance for small testnets with short session durations.With #6106, validators will try to persist the session window, but if there are missing sessions at the beginning of the window, when querying runtime, they will use the state of the best block typically, which only contains the latest
dispute_period
sessions.A way to address this would be to modify the API to allow the caller to pass the appropriate (old) relay parent needed to query the old
SessionInfo
s.The text was updated successfully, but these errors were encountered: