β† : Update last entry's state root with parent's prior state root. GP eq (24).
7.3. Recent History (§4.2)
def
Jar.updateParentStateRoot [Jar.JamConfig] (bs : Jar.RecentHistory) (h : Jar.Header) : Jar.RecentHistoryJar.updateParentStateRoot [Jar.JamConfig] (bs : Jar.RecentHistory) (h : Jar.Header) : Jar.RecentHistory
def
Compute accumulate root hash from accumulation outputs. Uses balanced Keccak-256 Merkle tree (GP eq 7.7 / E.4). Matches Grey's compute_output_hash.
def
Collect reported work-package hashes from guarantees. GP §7. Maps package hash → erasure root for each guaranteed report.
def
Jar.updateRecentHistory [Jar.JamConfig] (bdag : Jar.RecentHistory) (headerHash : Hash) (accOutputs : Jar.AccumulationOutputs) (guarantees : Jar.GuaranteesExtrinsic) : Jar.RecentHistoryJar.updateRecentHistory [Jar.JamConfig] (bdag : Jar.RecentHistory) (headerHash : Hash) (accOutputs : Jar.AccumulationOutputs) (guarantees : Jar.GuaranteesExtrinsic) : Jar.RecentHistory
β' : Full recent history update. GP eq (37–43).
-
MMR-append the accumulate root to the belt
-
Compute beefy root as MMR super-peak
-
Append new block info, truncate to H entries