Skip to content

Commit

Permalink
small datatypes cleanups (#6266)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored May 6, 2024
1 parent a6f68d3 commit c41fe69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions beacon_chain/spec/datatypes/base.nim
Original file line number Diff line number Diff line change
Expand Up @@ -985,4 +985,5 @@ func ofLen*[T, N](ListType: type List[T, N], n: int): ListType =
else:
raise newException(SszSizeMismatchError)

template debugComment*(s: string) = discard
template debugRaiseAssert*(s: string) = discard
4 changes: 2 additions & 2 deletions beacon_chain/spec/datatypes/electra.nim
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ type
Attestation* = object
aggregation_bits*: ElectraCommitteeValidatorsBits
data*: AttestationData
committee_bits*: BitArray[static(MAX_COMMITTEES_PER_SLOT.int)] # [New in Electra:EIP7549]
committee_bits*: BitArray[MAX_COMMITTEES_PER_SLOT.int] # [New in Electra:EIP7549]
signature*: ValidatorSig

TrustedAttestation* = object
Expand All @@ -598,7 +598,7 @@ type
# Currently the code MUST verify the state transition as soon as the signature is verified
aggregation_bits*: ElectraCommitteeValidatorsBits
data*: AttestationData
committee_bits*: BitArray[static(MAX_COMMITTEES_PER_SLOT.int)] # [New in Electra:EIP7549]
committee_bits*: BitArray[MAX_COMMITTEES_PER_SLOT.int] # [New in Electra:EIP7549]
signature*: TrustedSig

SomeSignedBeaconBlock* =
Expand Down

0 comments on commit c41fe69

Please sign in to comment.