Skip to content

Commit

Permalink
Add fields at electra
Browse files Browse the repository at this point in the history
  • Loading branch information
gazzua committed Sep 25, 2024
1 parent c6a617a commit daaefb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions beacon-chain/state/state-native/getters_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,14 @@ func (b *BeaconState) ToProtoUnsafe() interface{} {
BlockRoots: br,
StateRoots: sr,
HistoricalRoots: b.historicalRoots.Slice(),
RewardAdjustmentFactor: b.rewardAdjustmentFactor,
Eth1Data: b.eth1Data,
Eth1DataVotes: b.eth1DataVotes,
Eth1DepositIndex: b.eth1DepositIndex,
Validators: vals,
Balances: bals,
PreviousEpochReserve: b.previousEpochReserve,
CurrentEpochReserve: b.currentEpochReserve,
RandaoMixes: rm,
Slashings: b.slashings,
PreviousEpochParticipation: b.previousEpochParticipation,
Expand All @@ -217,6 +220,7 @@ func (b *BeaconState) ToProtoUnsafe() interface{} {
InactivityScores: b.inactivityScoresVal(),
CurrentSyncCommittee: b.currentSyncCommittee,
NextSyncCommittee: b.nextSyncCommittee,
BailOutScores: b.bailoutScoresVal(),
LatestExecutionPayloadHeader: b.latestExecutionPayloadHeaderElectra,
NextWithdrawalIndex: b.nextWithdrawalIndex,
NextWithdrawalValidatorIndex: b.nextWithdrawalValidatorIndex,
Expand Down Expand Up @@ -426,11 +430,14 @@ func (b *BeaconState) ToProto() interface{} {
BlockRoots: br,
StateRoots: sr,
HistoricalRoots: b.historicalRoots.Slice(),
RewardAdjustmentFactor: b.rewardAdjustmentFactor,
Eth1Data: b.eth1DataVal(),
Eth1DataVotes: b.eth1DataVotesVal(),
Eth1DepositIndex: b.eth1DepositIndex,
Validators: b.validatorsVal(),
Balances: b.balancesVal(),
PreviousEpochReserve: b.previousEpochReserve,
CurrentEpochReserve: b.currentEpochReserve,
RandaoMixes: rm,
Slashings: b.slashingsVal(),
PreviousEpochParticipation: b.previousEpochParticipationVal(),
Expand All @@ -442,6 +449,7 @@ func (b *BeaconState) ToProto() interface{} {
InactivityScores: b.inactivityScoresVal(),
CurrentSyncCommittee: b.currentSyncCommitteeVal(),
NextSyncCommittee: b.nextSyncCommitteeVal(),
BailOutScores: b.bailoutScoresVal(),
LatestExecutionPayloadHeader: b.latestExecutionPayloadHeaderElectra.Copy(),
NextWithdrawalIndex: b.nextWithdrawalIndex,
NextWithdrawalValidatorIndex: b.nextWithdrawalValidatorIndex,
Expand Down

0 comments on commit daaefb0

Please sign in to comment.