-
Notifications
You must be signed in to change notification settings - Fork 391
EIP-8045 + bump ref tests to v1.7.0-alpha.9 #10766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
zilm13
merged 15 commits into
Consensys-Incorporated:master
from
StefanBratanov:eip_8045
Jun 3, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cc6468c
Implement EIP-8045 (Exclude slashed validators from proposing)
StefanBratanov a9d8ee7
cleaner
StefanBratanov 7e32805
Remove support for old deposit mechanism in Fulu
StefanBratanov 3e8b4bb
Fix ethspecify
StefanBratanov b509a1c
Fix tests
StefanBratanov 4aa8d7b
cleaner
StefanBratanov 5d2de28
Fix test
StefanBratanov 9b00e10
feedback + fix some of the ref tests
StefanBratanov 9fde901
fix specrefs
StefanBratanov 6276687
fix build
StefanBratanov 98b3d72
Merge branch 'master' into eip_8045
StefanBratanov ba9faf4
fix build
StefanBratanov 0983500
better
StefanBratanov b638046
fix ref tests
StefanBratanov 128e645
better comment
StefanBratanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
.../tech/pegasys/teku/spec/logic/versions/fulu/execution/ExecutionRequestsProcessorFulu.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| /* | ||
| * Copyright Consensys Software Inc., 2026 | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
| * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
| * specific language governing permissions and limitations under the License. | ||
| */ | ||
|
|
||
| package tech.pegasys.teku.spec.logic.versions.fulu.execution; | ||
|
|
||
| import java.util.List; | ||
| import tech.pegasys.teku.infrastructure.ssz.SszMutableList; | ||
| import tech.pegasys.teku.infrastructure.ssz.primitive.SszBytes32; | ||
| import tech.pegasys.teku.infrastructure.ssz.primitive.SszUInt64; | ||
| import tech.pegasys.teku.spec.config.SpecConfigFulu; | ||
| import tech.pegasys.teku.spec.datastructures.execution.versions.electra.DepositRequest; | ||
| import tech.pegasys.teku.spec.datastructures.state.beaconstate.MutableBeaconState; | ||
| import tech.pegasys.teku.spec.datastructures.state.beaconstate.versions.electra.MutableBeaconStateElectra; | ||
| import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingDeposit; | ||
| import tech.pegasys.teku.spec.datastructures.type.SszPublicKey; | ||
| import tech.pegasys.teku.spec.datastructures.type.SszSignature; | ||
| import tech.pegasys.teku.spec.logic.common.util.ValidatorsUtil; | ||
| import tech.pegasys.teku.spec.logic.versions.electra.execution.ExecutionRequestsProcessorElectra; | ||
| import tech.pegasys.teku.spec.logic.versions.electra.helpers.BeaconStateMutatorsElectra; | ||
| import tech.pegasys.teku.spec.logic.versions.electra.helpers.PredicatesElectra; | ||
| import tech.pegasys.teku.spec.logic.versions.fulu.helpers.BeaconStateAccessorsFulu; | ||
| import tech.pegasys.teku.spec.logic.versions.fulu.helpers.MiscHelpersFulu; | ||
| import tech.pegasys.teku.spec.schemas.SchemaDefinitionsFulu; | ||
|
|
||
| public class ExecutionRequestsProcessorFulu extends ExecutionRequestsProcessorElectra { | ||
|
|
||
| public ExecutionRequestsProcessorFulu( | ||
| final SchemaDefinitionsFulu schemaDefinitions, | ||
| final MiscHelpersFulu miscHelpers, | ||
| final SpecConfigFulu specConfig, | ||
| final PredicatesElectra predicates, | ||
| final ValidatorsUtil validatorsUtil, | ||
| final BeaconStateMutatorsElectra beaconStateMutators, | ||
| final BeaconStateAccessorsFulu beaconStateAccessors) { | ||
| super( | ||
| schemaDefinitions, | ||
| miscHelpers, | ||
| specConfig, | ||
| predicates, | ||
| validatorsUtil, | ||
| beaconStateMutators, | ||
| beaconStateAccessors); | ||
| } | ||
|
|
||
| /* | ||
| The function `process_deposit_request` is modified to remove support for the former deposit mechanism. | ||
| */ | ||
| @Override | ||
| public void processDepositRequests( | ||
| final MutableBeaconState state, final List<DepositRequest> depositRequests) { | ||
| final MutableBeaconStateElectra stateElectra = MutableBeaconStateElectra.required(state); | ||
| final SszMutableList<PendingDeposit> pendingDeposits = stateElectra.getPendingDeposits(); | ||
| final PendingDeposit.PendingDepositSchema pendingDepositSchema = | ||
| schemaDefinitions.getPendingDepositSchema(); | ||
| for (DepositRequest depositRequest : depositRequests) { | ||
| pendingDeposits.append( | ||
| pendingDepositSchema.create( | ||
| new SszPublicKey(depositRequest.getPubkey()), | ||
| SszBytes32.of(depositRequest.getWithdrawalCredentials()), | ||
| SszUInt64.of(depositRequest.getAmount()), | ||
| new SszSignature(depositRequest.getSignature()), | ||
| SszUInt64.of(state.getSlot()))); | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.