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
Ensure that queries for past Sessions return a consistent set of Suppliers, regardless of Supplier turnover (i.e., staking/unstaking).
Origin Document
When hydrating a Session, the current logic always selects from the currently staked Suppliers.
This approach is problematic in the context of claim settlement, which occurs after the corresponding session has ended. At that point, the new Supplier set may not match the one used when serving the now-settling Session.
Goals
Ensure a deterministic set of Suppliers for a given Session, regardless of when the Session is queried.
Deliverables
A single PR addressing the issue by filtering Suppliers based on the query height.
Non-goals / Non-deliverables
Implementing historical state persistence
Persisting the Supplier set beyond the claim settlement height
General deliverables
Comments: Add/update TODOs and comments alongside the source code so it is easier to follow.
Testing: Add new tests (unit and/or E2E) to the test suite.
Makefile: Add new targets to the Makefile to make the new functionality easier to use.
Documentation: Update architectural or development READMEs; use mermaid diagrams where appropriate.
Objective
Ensure that queries for past
Session
s return a consistent set ofSupplier
s, regardless ofSupplier
turnover (i.e., staking/unstaking).Origin Document
When hydrating a
Session
, the current logic always selects from the currently stakedSupplier
s.This approach is problematic in the context of claim settlement, which occurs after the corresponding session has ended. At that point, the new
Supplier
set may not match the one used when serving the now-settlingSession
.Goals
Supplier
s for a givenSession
, regardless of when theSession
is queried.Deliverables
Supplier
s based on the query height.Non-goals / Non-deliverables
General deliverables
Creator: @Red0ne
Co-Owners: @bryanchriswhite
The text was updated successfully, but these errors were encountered: