Skip to content

Instantly share code, notes, and snippets.

@Terryhung
Created April 2, 2025 17:38
Show Gist options
  • Save Terryhung/9834b028a99f45b44457820a68620db4 to your computer and use it in GitHub Desktop.
Save Terryhung/9834b028a99f45b44457820a68620db4 to your computer and use it in GitHub Desktop.
test state check in each mode

Fallback

ParentHash
ParentStateRoot
ExtrinsicHash
Slot

Safrole

包含 Fallback 所有 fields

ticketsOrKeys (GammaS)
ticketsAccumulator (GammaA??)
entropy (Eta)
Commitment (GammaZ)

Assurances

包含 Safrole 所有 fields

  1. 檢查 reports 欄位是否根據 extrinsic.assurances 正確更新(pending report 與 available report 的處理
  2. preimages
  3. Bootstrap Services
  4. gas 消耗等等, 會牽扯到 PVM

Ordered Accumulation Mode

包含 Assurances 所有 fields

  1. AccumulatedHistories (Xi)
  2. accumulationQueue (Theta)
  3. accumulateRoot
  4. AccumulateState
  5. privilegedServices (Chi)
  6. recentHistory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment