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
fix: resolve tree view API conflicts from cherry-pick
After cherry-picking "feat: tree view state (#168)", SSZ tree view conflicts
were resolved by keeping "ours", which lost new API functions the
state_transition code depends on. This commit adds back the missing APIs
and fixes all callers.
Key changes:
- Add missing tree view APIs: hashTreeRoot, fromValue, toValue, getReadonly,
getValue, setValue, getFieldRoot, iteratorReadonly across container,
array_basic, array_composite, list_basic, list_composite, bit_vector
- Fix CompositeChunks.get() to always mark changed (fixes attester_slashing
failures where getReadonly cached a child without tracking, then get()
returned the cached entry without marking it changed)
- Fix CompositeChunks.getAllValuesInto() to initialize variable-type values
before toValue (fixes segfault from uninitialized BitList fields)
- Fix pointer type mismatches (*TreeView vs **TreeView) across callers
- Fix beacon_state field name bugs and return type mismatches
- Add @setEvalBranchQuota(20000) for comptime iteration over BeaconState
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments