Repository navigation
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
Changes from 4 commits
cc6468c
a9d8ee7
7e32805
3e8b4bb
b509a1c
4aa8d7b
5d2de28
9b00e10
9fde901
6276687
98b3d72
ba9faf4
0983500
b638046
128e645
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| /* | ||
| * 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); | ||
| for (DepositRequest depositRequest : depositRequests) { | ||
| final SszMutableList<PendingDeposit> pendingDeposits = stateElectra.getPendingDeposits(); | ||
| final PendingDeposit deposit = | ||
| schemaDefinitions | ||
| .getPendingDepositSchema() | ||
| .create( | ||
| new SszPublicKey(depositRequest.getPubkey()), | ||
| SszBytes32.of(depositRequest.getWithdrawalCredentials()), | ||
| SszUInt64.of(depositRequest.getAmount()), | ||
| new SszSignature(depositRequest.getSignature()), | ||
| SszUInt64.of(state.getSlot())); | ||
| pendingDeposits.append(deposit); | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,9 @@ | |
| import tech.pegasys.teku.infrastructure.unsigned.UInt64; | ||
| import tech.pegasys.teku.spec.config.SpecConfigFulu; | ||
| import tech.pegasys.teku.spec.datastructures.state.beaconstate.MutableBeaconState; | ||
| import tech.pegasys.teku.spec.datastructures.state.beaconstate.versions.electra.BeaconStateElectra; | ||
| import tech.pegasys.teku.spec.datastructures.state.beaconstate.versions.fulu.MutableBeaconStateFulu; | ||
| import tech.pegasys.teku.spec.datastructures.state.versions.electra.PendingDeposit; | ||
| import tech.pegasys.teku.spec.logic.common.helpers.BeaconStateMutators; | ||
| import tech.pegasys.teku.spec.logic.common.statetransition.epoch.status.ValidatorStatusFactory; | ||
| import tech.pegasys.teku.spec.logic.common.util.BeaconStateUtil; | ||
|
|
@@ -59,6 +61,13 @@ public EpochProcessorFulu( | |
| this.schemaDefinitionsFulu = SchemaDefinitionsFulu.required(schemaDefinitions); | ||
| } | ||
|
|
||
| // modified to remove support for the former deposit mechanism | ||
| @Override | ||
| public boolean areEth1BridgeDepositsNotApplied( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it "Not"? if it should be, I'd find another name for it, boolean with "not" is confusing |
||
| final PendingDeposit deposit, final BeaconStateElectra state) { | ||
| return false; | ||
| } | ||
|
|
||
| /** process_proposer_lookahead */ | ||
| @Override | ||
| public void processProposerLookahead(final MutableBeaconState state) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| version: v1.7.0-alpha.8 | ||
| version: v1.7.0-alpha.9 | ||
| style: full | ||
|
|
||
| specrefs: | ||
|
|
@@ -29,6 +29,7 @@ specrefs: | |
|
|
||
| # Constant for max value, defined elsewhere | ||
| - UINT64_MAX_SQRT | ||
| - EMPTY_BLOCK_HASH#bellatrix | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we have this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is part of Tuweni, on the other side we have MAX_SQRT, will do some changes |
||
| # No light client support | ||
| - MAX_REQUEST_LIGHT_CLIENT_UPDATES | ||
|
|
@@ -102,6 +103,8 @@ specrefs: | |
| - Seen#capella | ||
| - Seen#deneb | ||
| - Seen#electra | ||
| - Seen#fulu | ||
| - Seen#gloas | ||
|
|
||
| # Not implemented: heze | ||
| - GetInclusionListResponse#heze | ||
|
|
@@ -254,6 +257,13 @@ specrefs: | |
| - update_fast_confirmation_variables#phase0 | ||
| - will_current_target_be_justified#phase0 | ||
| - will_no_conflicting_checkpoint_be_justified#phase0 | ||
| - get_node_for_root#phase0 | ||
| - get_node_for_root#gloas | ||
| - get_safe_execution_block_hash#bellatrix | ||
| - get_safe_execution_block_hash#gloas | ||
|
|
||
| # Not implemented: phase0 | ||
| - get_dependent_root#phase0 | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have this probably |
||
| # Not implemented: capella | ||
| - prepare_execution_payload#capella | ||
|
|
@@ -289,13 +299,24 @@ specrefs: | |
| - recover_matrix#fulu | ||
| - verify_partial_data_column_header_inclusion_proof#fulu | ||
| - verify_partial_data_column_sidecar_kzg_proofs#fulu | ||
| - validate_beacon_block_gossip#fulu | ||
| - validate_data_column_sidecar_gossip#fulu | ||
| - validate_partial_data_column_sidecar_gossip#fulu | ||
|
|
||
| # Not implemented: gloas | ||
| - get_proposer_dependent_root#gloas | ||
| - get_dependent_root#gloas | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we probably have this |
||
| # Will be fixed later: gloas | ||
| - get_payload_due_ms#gloas | ||
|
|
||
| # Will be fixed later phase0 and gloas | ||
| - get_supported_node#phase0 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. when?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i mean what scope it fits better? |
||
| - get_supported_node#gloas | ||
| - is_ancestor#phase0 | ||
|
cursor[bot] marked this conversation as resolved.
Resolved
|
||
| - is_ancestor#gloas | ||
| - is_previous_slot_payload_decision#gloas | ||
|
|
||
| # Not implemented: heze | ||
| - get_forkchoice_store#heze | ||
| - get_inclusion_list_bits#heze | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.