mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-05-11 03:01:36 -04:00
**1 — proto + API structs** New fields: `execution_requests_root` on the bid, `parent_execution_requests` on the body. `state_root` gone from the envelope. Nothing uses them yet. **2 — consensus-types accessors + state interfaces** Wires up the Go side of (1). Also adds `QueueBuilderPaymentForSlot` and factors `queueBuilderPaymentAtIndex` out of `QueueBuilderPayment`. **3 — ProcessParentExecutionPayload + spec tests** New spec fn, not wired in yet. Read it side-by-side with the pyspec. **4 — swap the mutation site** Old `ProcessExecutionPayload` drops all its state mutations and becomes verify only. `ProcessParentExecutionPayload` gets wired into `ProcessBlockForStateRoot` before `process_block_header` per spec order. Also: renames `IsParentBlockFull` → `LatestBlockHashMatchesBidBlockHash` (old name was misleading, it's just an equality check). `ProcessSlotsForBlock` and `head.full` are deleted. Envelope no longer computes a `state_root`. **5 — proposer** Sets `parent_execution_requests` on the body, builds the bid with the new fields, computes withdrawals via `computePayloadWithdrawals`. That fn has three branches (empty parent / pre-Gloas parent / full Gloas parent). **6 — gossip validation** Adds `validateParentExecutionRequests`: body's `parent_execution_requests` has to hash to what the parent bid said. **7 — rip out dual-key state access** State's always keyed by beacon block root now, so all the "sometimes execution block hash" code across forkchoice, stategen, and the blockchain service can go. Almost pure deletions. One actual behavior change: FCU notifications use `forkchoice.BlockHash()` instead of `st.LatestBlockHash()` **8 — rename ProcessExecutionPayload → VerifyExecutionPayloadEnvelope** Rename only, nothing else. Just approve. **9 — test utilities + assertions + changelog** Mechanical. Test builders pick up the new fields, a few stray `envelope.StateRoot` references get swept up, changelog added.
318 lines
18 KiB
Python
318 lines
18 KiB
Python
load("@prysm//tools/go:def.bzl", "go_test")
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"altair__epoch_processing__effective_balance_updates_test.go",
|
|
"altair__epoch_processing__eth1_data_reset_test.go",
|
|
"altair__epoch_processing__historical_roots_update_test.go",
|
|
"altair__epoch_processing__inactivity_updates_test.go",
|
|
"altair__epoch_processing__justification_and_finalization_test.go",
|
|
"altair__epoch_processing__participation_flag_updates_test.go",
|
|
"altair__epoch_processing__randao_mixes_reset_test.go",
|
|
"altair__epoch_processing__registry_updates_test.go",
|
|
"altair__epoch_processing__rewards_and_penalties_test.go",
|
|
"altair__epoch_processing__slashings_reset_test.go",
|
|
"altair__epoch_processing__slashings_test.go",
|
|
"altair__finality__finality_test.go",
|
|
"altair__fork__upgrade_to_altair_test.go",
|
|
"altair__fork_transition__transition_test.go",
|
|
"altair__forkchoice__forkchoice_test.go",
|
|
"altair__light_client__single_merkle_proof_test.go",
|
|
"altair__light_client__update_ranking_test.go",
|
|
"altair__operations__attestation_test.go",
|
|
"altair__operations__attester_slashing_test.go",
|
|
"altair__operations__block_header_test.go",
|
|
"altair__operations__deposit_test.go",
|
|
"altair__operations__proposer_slashing_test.go",
|
|
"altair__operations__sync_committee_test.go",
|
|
"altair__operations__voluntary_exit_test.go",
|
|
"altair__random__random_test.go",
|
|
"altair__rewards__rewards_test.go",
|
|
"altair__sanity__blocks_test.go",
|
|
"altair__sanity__slots_test.go",
|
|
"altair__ssz_static__ssz_static_test.go",
|
|
"bellatrix__epoch_processing__effective_balance_updates_test.go",
|
|
"bellatrix__epoch_processing__eth1_data_reset_test.go",
|
|
"bellatrix__epoch_processing__historical_roots_update_test.go",
|
|
"bellatrix__epoch_processing__inactivity_updates_test.go",
|
|
"bellatrix__epoch_processing__justification_and_finalization_test.go",
|
|
"bellatrix__epoch_processing__participation_flag_updates_test.go",
|
|
"bellatrix__epoch_processing__randao_mixes_reset_test.go",
|
|
"bellatrix__epoch_processing__registry_updates_test.go",
|
|
"bellatrix__epoch_processing__rewards_and_penalties_test.go",
|
|
"bellatrix__epoch_processing__slashings_reset_test.go",
|
|
"bellatrix__epoch_processing__slashings_test.go",
|
|
"bellatrix__finality__finality_test.go",
|
|
"bellatrix__fork__upgrade_to_altair_test.go",
|
|
"bellatrix__fork_transition__transition_test.go",
|
|
"bellatrix__forkchoice__forkchoice_test.go",
|
|
"bellatrix__light_client__single_merkle_proof_test.go",
|
|
"bellatrix__light_client__update_ranking_test.go",
|
|
"bellatrix__operations__attestation_test.go",
|
|
"bellatrix__operations__attester_slashing_test.go",
|
|
"bellatrix__operations__block_header_test.go",
|
|
"bellatrix__operations__deposit_test.go",
|
|
"bellatrix__operations__execution_payload_test.go",
|
|
"bellatrix__operations__proposer_slashing_test.go",
|
|
"bellatrix__operations__sync_committee_test.go",
|
|
"bellatrix__operations__voluntary_exit_test.go",
|
|
"bellatrix__random__random_test.go",
|
|
"bellatrix__rewards__rewards_test.go",
|
|
"bellatrix__sanity__blocks_test.go",
|
|
"bellatrix__sanity__slots_test.go",
|
|
"bellatrix__ssz_static__ssz_static_test.go",
|
|
"capella__epoch_processing__effective_balance_updates_test.go",
|
|
"capella__epoch_processing__eth1_data_reset_test.go",
|
|
"capella__epoch_processing__historical_roots_summaries_test.go",
|
|
"capella__epoch_processing__inactivity_updates_test.go",
|
|
"capella__epoch_processing__justification_and_finalization_test.go",
|
|
"capella__epoch_processing__participation_flag_updates_test.go",
|
|
"capella__epoch_processing__randao_mixes_reset_test.go",
|
|
"capella__epoch_processing__registry_updates_test.go",
|
|
"capella__epoch_processing__rewards_and_penalties_test.go",
|
|
"capella__epoch_processing__slashings_reset_test.go",
|
|
"capella__epoch_processing__slashings_test.go",
|
|
"capella__finality__finality_test.go",
|
|
"capella__fork__upgrade_to_capella_test.go",
|
|
"capella__fork_transition__transition_test.go",
|
|
"capella__forkchoice__forkchoice_test.go",
|
|
"capella__light_client__single_merkle_proof_test.go",
|
|
"capella__light_client__update_ranking_test.go",
|
|
"capella__operations__attestation_test.go",
|
|
"capella__operations__attester_slashing_test.go",
|
|
"capella__operations__block_header_test.go",
|
|
"capella__operations__bls_to_execution_change_test.go",
|
|
"capella__operations__deposit_test.go",
|
|
"capella__operations__execution_payload_test.go",
|
|
"capella__operations__proposer_slashing_test.go",
|
|
"capella__operations__sync_committee_test.go",
|
|
"capella__operations__voluntary_exit_test.go",
|
|
"capella__operations__withdrawals_test.go",
|
|
"capella__random__random_test.go",
|
|
"capella__rewards__rewards_test.go",
|
|
"capella__sanity__blocks_test.go",
|
|
"capella__sanity__slots_test.go",
|
|
"capella__ssz_static__ssz_static_test.go",
|
|
"deneb__epoch_processing__effective_balance_updates_test.go",
|
|
"deneb__epoch_processing__eth1_data_reset_test.go",
|
|
"deneb__epoch_processing__historical_summaries_update_test.go",
|
|
"deneb__epoch_processing__inactivity_updates_test.go",
|
|
"deneb__epoch_processing__justification_and_finalization_test.go",
|
|
"deneb__epoch_processing__participation_flag_updates_test.go",
|
|
"deneb__epoch_processing__randao_mixes_reset_test.go",
|
|
"deneb__epoch_processing__registry_updates_test.go",
|
|
"deneb__epoch_processing__rewards_and_penalties_test.go",
|
|
"deneb__epoch_processing__slashings_reset_test.go",
|
|
"deneb__epoch_processing__slashings_test.go",
|
|
"deneb__finality__finality_test.go",
|
|
"deneb__fork__upgrade_to_deneb_test.go",
|
|
"deneb__fork_transition__transition_test.go",
|
|
"deneb__forkchoice__forkchoice_test.go",
|
|
"deneb__light_client__single_merkle_proof_test.go",
|
|
"deneb__light_client__update_ranking_test.go",
|
|
"deneb__merkle_proof__merkle_proof_test.go",
|
|
"deneb__operations__attestation_test.go",
|
|
"deneb__operations__attester_slashing_test.go",
|
|
"deneb__operations__block_header_test.go",
|
|
"deneb__operations__bls_to_execution_change_test.go",
|
|
"deneb__operations__deposit_test.go",
|
|
"deneb__operations__execution_payload_test.go",
|
|
"deneb__operations__proposer_slashing_test.go",
|
|
"deneb__operations__sync_committee_test.go",
|
|
"deneb__operations__voluntary_exit_test.go",
|
|
"deneb__operations__withdrawals_test.go",
|
|
"deneb__random__random_test.go",
|
|
"deneb__rewards__rewards_test.go",
|
|
"deneb__sanity__blocks_test.go",
|
|
"deneb__sanity__slots_test.go",
|
|
"deneb__ssz_static__ssz_static_test.go",
|
|
"electra__epoch_processing__effective_balance_updates_test.go",
|
|
"electra__epoch_processing__eth1_data_reset_test.go",
|
|
"electra__epoch_processing__historical_summaries_update_test.go",
|
|
"electra__epoch_processing__inactivity_updates_test.go",
|
|
"electra__epoch_processing__justification_and_finalization_test.go",
|
|
"electra__epoch_processing__participation_flag_updates_test.go",
|
|
"electra__epoch_processing__pending_consolidations_test.go",
|
|
"electra__epoch_processing__pending_deposits_updates_test.go",
|
|
"electra__epoch_processing__randao_mixes_reset_test.go",
|
|
"electra__epoch_processing__registry_updates_test.go",
|
|
"electra__epoch_processing__rewards_and_penalties_test.go",
|
|
"electra__epoch_processing__slashings_reset_test.go",
|
|
"electra__epoch_processing__slashings_test.go",
|
|
"electra__epoch_processing__sync_committee_updates_test.go",
|
|
"electra__finality__finality_test.go",
|
|
"electra__fork__upgrade_to_electra_test.go",
|
|
"electra__fork_transition__transition_test.go",
|
|
"electra__forkchoice__forkchoice_test.go",
|
|
"electra__light_client__single_merkle_proof_test.go",
|
|
"electra__light_client__update_ranking_test.go",
|
|
"electra__merkle_proof__merkle_proof_test.go",
|
|
"electra__operations__attestation_test.go",
|
|
"electra__operations__attester_slashing_test.go",
|
|
"electra__operations__block_header_test.go",
|
|
"electra__operations__bls_to_execution_change_test.go",
|
|
"electra__operations__consolidation_test.go",
|
|
"electra__operations__deposit_requests_test.go",
|
|
"electra__operations__deposit_test.go",
|
|
"electra__operations__execution_layer_withdrawals_test.go",
|
|
"electra__operations__execution_payload_test.go",
|
|
"electra__operations__proposer_slashing_test.go",
|
|
"electra__operations__sync_committee_test.go",
|
|
"electra__operations__voluntary_exit_test.go",
|
|
"electra__operations__withdrawals_test.go",
|
|
"electra__random__random_test.go",
|
|
"electra__rewards__rewards_test.go",
|
|
"electra__sanity__blocks_test.go",
|
|
"electra__sanity__slots_test.go",
|
|
"electra__ssz_static__ssz_static_test.go",
|
|
"fulu__epoch_processing__effective_balance_updates_test.go",
|
|
"fulu__epoch_processing__eth1_data_reset_test.go",
|
|
"fulu__epoch_processing__historical_summaries_update_test.go",
|
|
"fulu__epoch_processing__inactivity_updates_test.go",
|
|
"fulu__epoch_processing__justification_and_finalization_test.go",
|
|
"fulu__epoch_processing__participation_flag_updates_test.go",
|
|
"fulu__epoch_processing__pending_consolidations_test.go",
|
|
"fulu__epoch_processing__pending_deposits_updates_test.go",
|
|
"fulu__epoch_processing__proposer_lookahead_test.go",
|
|
"fulu__epoch_processing__randao_mixes_reset_test.go",
|
|
"fulu__epoch_processing__registry_updates_test.go",
|
|
"fulu__epoch_processing__rewards_and_penalties_test.go",
|
|
"fulu__epoch_processing__slashings_reset_test.go",
|
|
"fulu__epoch_processing__slashings_test.go",
|
|
"fulu__epoch_processing__sync_committee_updates_test.go",
|
|
"fulu__finality__finality_test.go",
|
|
"fulu__fork__upgrade_to_fulu_test.go",
|
|
"fulu__fork_transition__transition_test.go",
|
|
"fulu__forkchoice__forkchoice_test.go",
|
|
"fulu__light_client__single_merkle_proof_test.go",
|
|
"fulu__merkle_proof__merkle_proof_test.go",
|
|
"fulu__networking__custody_columns_test.go",
|
|
"fulu__operations__attestation_test.go",
|
|
"fulu__operations__attester_slashing_test.go",
|
|
"fulu__operations__block_header_test.go",
|
|
"fulu__operations__bls_to_execution_change_test.go",
|
|
"fulu__operations__consolidation_test.go",
|
|
"fulu__operations__deposit_requests_test.go",
|
|
"fulu__operations__deposit_test.go",
|
|
"fulu__operations__execution_layer_withdrawals_test.go",
|
|
"fulu__operations__execution_payload_test.go",
|
|
"fulu__operations__proposer_slashing_test.go",
|
|
"fulu__operations__sync_committee_test.go",
|
|
"fulu__operations__voluntary_exit_test.go",
|
|
"fulu__operations__withdrawals_test.go",
|
|
"fulu__random__random_test.go",
|
|
"fulu__rewards__rewards_test.go",
|
|
"fulu__sanity__blocks_test.go",
|
|
"fulu__sanity__slots_test.go",
|
|
"fulu__ssz_static__ssz_static_test.go",
|
|
"gloas__epoch_processing__process_builder_pending_payments_test.go",
|
|
"gloas__finality__finality_test.go",
|
|
"gloas__fork__upgrade_to_gloas_test.go",
|
|
"gloas__fork_transition__transition_test.go",
|
|
"gloas__operations__attestation_test.go",
|
|
"gloas__operations__execution_payload_bid_test.go",
|
|
"gloas__operations__parent_execution_payload_test.go",
|
|
"gloas__operations__payload_attestation_test.go",
|
|
"gloas__operations__proposer_slashing_test.go",
|
|
"gloas__operations__voluntary_exit_test.go",
|
|
"gloas__operations__withdrawals_test.go",
|
|
"gloas__sanity__blocks_test.go",
|
|
"gloas__sanity__slots_test.go",
|
|
"gloas__ssz_static__ssz_static_test.go",
|
|
"phase0__epoch_processing__effective_balance_updates_test.go",
|
|
"phase0__epoch_processing__epoch_processing_test.go",
|
|
"phase0__epoch_processing__eth1_data_reset_test.go",
|
|
"phase0__epoch_processing__historical_roots_update_test.go",
|
|
"phase0__epoch_processing__justification_and_finalization_test.go",
|
|
"phase0__epoch_processing__participation_record_updates_test.go",
|
|
"phase0__epoch_processing__randao_mixes_reset_test.go",
|
|
"phase0__epoch_processing__registry_updates_test.go",
|
|
"phase0__epoch_processing__rewards_and_penalties_test.go",
|
|
"phase0__epoch_processing__slashings_reset_test.go",
|
|
"phase0__epoch_processing__slashings_test.go",
|
|
"phase0__finality__finality_test.go",
|
|
"phase0__operations__attestation_test.go",
|
|
"phase0__operations__attester_slashing_test.go",
|
|
"phase0__operations__block_header_test.go",
|
|
"phase0__operations__deposit_test.go",
|
|
"phase0__operations__proposer_slashing_test.go",
|
|
"phase0__operations__voluntary_exit_test.go",
|
|
"phase0__random__random_test.go",
|
|
"phase0__rewards__rewards_test.go",
|
|
"phase0__sanity__blocks_test.go",
|
|
"phase0__sanity__slots_test.go",
|
|
"phase0__ssz_static__ssz_static_test.go",
|
|
],
|
|
data = ["@consensus_spec_tests//:test_data"],
|
|
eth_network = "minimal",
|
|
tags = [
|
|
"minimal",
|
|
"spectest",
|
|
],
|
|
deps = [
|
|
"//config/params:go_default_library",
|
|
"//runtime/version:go_default_library",
|
|
"//testing/spectest/shared/altair/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/altair/finality:go_default_library",
|
|
"//testing/spectest/shared/altair/fork:go_default_library",
|
|
"//testing/spectest/shared/altair/operations:go_default_library",
|
|
"//testing/spectest/shared/altair/rewards:go_default_library",
|
|
"//testing/spectest/shared/altair/sanity:go_default_library",
|
|
"//testing/spectest/shared/altair/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/finality:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/fork:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/operations:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/rewards:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/sanity:go_default_library",
|
|
"//testing/spectest/shared/bellatrix/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/capella/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/capella/finality:go_default_library",
|
|
"//testing/spectest/shared/capella/fork:go_default_library",
|
|
"//testing/spectest/shared/capella/operations:go_default_library",
|
|
"//testing/spectest/shared/capella/rewards:go_default_library",
|
|
"//testing/spectest/shared/capella/sanity:go_default_library",
|
|
"//testing/spectest/shared/capella/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/common/forkchoice:go_default_library",
|
|
"//testing/spectest/shared/common/light_client:go_default_library",
|
|
"//testing/spectest/shared/deneb/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/deneb/finality:go_default_library",
|
|
"//testing/spectest/shared/deneb/fork:go_default_library",
|
|
"//testing/spectest/shared/deneb/merkle_proof:go_default_library",
|
|
"//testing/spectest/shared/deneb/operations:go_default_library",
|
|
"//testing/spectest/shared/deneb/rewards:go_default_library",
|
|
"//testing/spectest/shared/deneb/sanity:go_default_library",
|
|
"//testing/spectest/shared/deneb/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/electra/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/electra/finality:go_default_library",
|
|
"//testing/spectest/shared/electra/fork:go_default_library",
|
|
"//testing/spectest/shared/electra/merkle_proof:go_default_library",
|
|
"//testing/spectest/shared/electra/operations:go_default_library",
|
|
"//testing/spectest/shared/electra/rewards:go_default_library",
|
|
"//testing/spectest/shared/electra/sanity:go_default_library",
|
|
"//testing/spectest/shared/electra/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/fulu/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/fulu/finality:go_default_library",
|
|
"//testing/spectest/shared/fulu/fork:go_default_library",
|
|
"//testing/spectest/shared/fulu/merkle_proof:go_default_library",
|
|
"//testing/spectest/shared/fulu/networking:go_default_library",
|
|
"//testing/spectest/shared/fulu/operations:go_default_library",
|
|
"//testing/spectest/shared/fulu/rewards:go_default_library",
|
|
"//testing/spectest/shared/fulu/sanity:go_default_library",
|
|
"//testing/spectest/shared/fulu/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/gloas/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/gloas/finality:go_default_library",
|
|
"//testing/spectest/shared/gloas/fork:go_default_library",
|
|
"//testing/spectest/shared/gloas/operations:go_default_library",
|
|
"//testing/spectest/shared/gloas/sanity:go_default_library",
|
|
"//testing/spectest/shared/gloas/ssz_static:go_default_library",
|
|
"//testing/spectest/shared/phase0/epoch_processing:go_default_library",
|
|
"//testing/spectest/shared/phase0/finality:go_default_library",
|
|
"//testing/spectest/shared/phase0/operations:go_default_library",
|
|
"//testing/spectest/shared/phase0/rewards:go_default_library",
|
|
"//testing/spectest/shared/phase0/sanity:go_default_library",
|
|
"//testing/spectest/shared/phase0/ssz_static:go_default_library",
|
|
],
|
|
)
|