Skip to content

Commit

Permalink
Caplin: Unflatten Attestation in preparation of Electra (#12228)
Browse files Browse the repository at this point in the history
Unflatted the Attestation struct so that it is easier to extend for
Electra
  • Loading branch information
Giulio2002 authored Oct 7, 2024
1 parent 7fe3101 commit 9c84bf5
Show file tree
Hide file tree
Showing 89 changed files with 1,356 additions and 1,671 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ test-erigon-ext:
@cd tests/erigon-ext-test && ./test.sh $(GIT_COMMIT)

## test: run unit tests with a 100s timeout
test: test-erigon-lib
test: # test-erigon-lib
$(GOTEST) --timeout 10m -coverprofile=coverage.out

## test-integration: run integration tests with a 30m timeout
Expand Down
8 changes: 4 additions & 4 deletions cl/abstract/beacon_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ type BeaconStateExtension interface {
BaseReward(index uint64) (uint64, error)
SyncRewards() (proposerReward, participantReward uint64, err error)
CommitteeCount(epoch uint64) uint64
GetAttestationParticipationFlagIndicies(data solid.AttestationData, inclusionDelay uint64, skipAssert bool) ([]uint8, error)
GetAttestationParticipationFlagIndicies(data *solid.AttestationData, inclusionDelay uint64, skipAssert bool) ([]uint8, error)
GetBeaconCommitee(slot, committeeIndex uint64) ([]uint64, error)
ComputeNextSyncCommittee() (*solid.SyncCommittee, error)
GetAttestingIndicies(attestation solid.AttestationData, aggregationBits []byte, checkBitsLength bool) ([]uint64, error)
GetAttestingIndicies(attestation *solid.AttestationData, aggregationBits []byte, checkBitsLength bool) ([]uint64, error)
GetValidatorChurnLimit() uint64
ValidatorIndexByPubkey(key [48]byte) (uint64, bool)
PreviousStateRoot() common.Hash
Expand Down Expand Up @@ -181,15 +181,15 @@ type BeaconStateMinimal interface {
Eth1DataVotes() *solid.ListSSZ[*cltypes.Eth1Data]
Eth1DepositIndex() uint64
ValidatorSet() *solid.ValidatorSet
PreviousEpochParticipation() *solid.BitList
PreviousEpochParticipation() *solid.ParticipationBitList

ForEachValidator(fn func(v solid.Validator, idx int, total int) bool)
ValidatorForValidatorIndex(index int) (solid.Validator, error)

ForEachSlashingSegment(fn func(idx int, v uint64, total int) bool)
SlashingSegmentAt(pos int) uint64

EpochParticipation(currentEpoch bool) *solid.BitList
EpochParticipation(currentEpoch bool) *solid.ParticipationBitList
JustificationBits() cltypes.JustificationBits

PreviousJustifiedCheckpoint() solid.Checkpoint
Expand Down
Loading

0 comments on commit 9c84bf5

Please sign in to comment.