Skip to content
  • Tsvetomir Dimitrov's avatar
    Deprecate `para_id()` from `CoreState` in polkadot primitives (#3979) · 59f868d1
    Tsvetomir Dimitrov authored
    
    
    With Coretime enabled we can no longer assume there is a static 1:1
    mapping between core index and para id. This mapping should be obtained
    from the scheduler/claimqueue on block by block basis.
    
    This PR modifies `para_id()` (from `CoreState`) to return the scheduled
    `ParaId` for occupied cores and removes its usages in the code.
    
    Closes https://github.com/paritytech/polkadot-sdk/issues/3948
    
    ---------
    
    Co-authored-by: default avatarAndrei Sandu <[email protected]>
    59f868d1