Skip to content

Commit

Permalink
add dynssz-size annotations for electra types
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed May 8, 2024
1 parent 6470755 commit 264db37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/electra/attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
type Attestation struct {
AggregationBits bitfield.Bitlist `ssz-max:"131072"`
Data *phase0.AttestationData
CommitteeBits bitfield.Bitvector64 `ssz-size:"8"`
CommitteeBits bitfield.Bitvector64 `dynssz-size:"MAX_COMMITTEES_PER_SLOT/8" ssz-size:"8"`
Signature phase0.BLSSignature `ssz-size:"96"`
}

Expand Down
8 changes: 4 additions & 4 deletions spec/electra/beaconstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ type BeaconState struct {
Slot phase0.Slot
Fork *phase0.Fork
LatestBlockHeader *phase0.BeaconBlockHeader
BlockRoots []phase0.Root `ssz-size:"8192,32"`
StateRoots []phase0.Root `ssz-size:"8192,32"`
BlockRoots []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
StateRoots []phase0.Root `dynssz-size:"SLOTS_PER_HISTORICAL_ROOT,32" ssz-size:"8192,32"`
HistoricalRoots []phase0.Root `ssz-max:"16777216" ssz-size:"?,32"`
ETH1Data *phase0.ETH1Data
ETH1DataVotes []*phase0.ETH1Data `ssz-max:"2048"`
ETH1DepositIndex uint64
Validators []*phase0.Validator `ssz-max:"1099511627776"`
Balances []phase0.Gwei `ssz-max:"1099511627776"`
RANDAOMixes []phase0.Root `ssz-size:"65536,32"`
Slashings []phase0.Gwei `ssz-size:"8192"`
RANDAOMixes []phase0.Root `dynssz-size:"EPOCHS_PER_HISTORICAL_VECTOR,32" ssz-size:"65536,32"`
Slashings []phase0.Gwei `dynssz-size:"EPOCHS_PER_SLASHINGS_VECTOR" ssz-size:"8192"`
PreviousEpochParticipation []altair.ParticipationFlags `ssz-max:"1099511627776"`
CurrentEpochParticipation []altair.ParticipationFlags `ssz-max:"1099511627776"`
JustificationBits bitfield.Bitvector4 `ssz-size:"1"`
Expand Down

0 comments on commit 264db37

Please sign in to comment.