Merge branch 'unstable' into progressive-list-tests

This commit is contained in:
Mac L
2026-05-28 05:45:25 +10:00
512 changed files with 44427 additions and 16719 deletions

View File

@@ -99,6 +99,18 @@ fn operations_execution_payload_bid() {
OperationsHandler::<MainnetEthSpec, ExecutionPayloadBidBlock<_>>::default().run();
}
#[test]
fn operations_parent_execution_payload() {
OperationsHandler::<MinimalEthSpec, ParentExecutionPayloadBlock<_>>::default().run();
OperationsHandler::<MainnetEthSpec, ParentExecutionPayloadBlock<_>>::default().run();
}
#[test]
fn operations_payload_attestation() {
OperationsHandler::<MinimalEthSpec, PayloadAttestation<_>>::default().run();
OperationsHandler::<MainnetEthSpec, PayloadAttestation<_>>::default().run();
}
#[test]
fn operations_withdrawals() {
OperationsHandler::<MinimalEthSpec, WithdrawalsPayload<_>>::default().run();
@@ -130,6 +142,12 @@ fn operations_bls_to_execution_change() {
OperationsHandler::<MainnetEthSpec, SignedBlsToExecutionChange>::default().run();
}
#[test]
fn operations_voluntary_exit_churn() {
OperationsHandler::<MinimalEthSpec, VoluntaryExitChurn>::default().run();
OperationsHandler::<MainnetEthSpec, VoluntaryExitChurn>::default().run();
}
#[test]
fn sanity_blocks() {
SanityBlocksHandler::<MinimalEthSpec>::default().run();
@@ -273,8 +291,19 @@ mod ssz_static {
ssz_static_test!(eth1_data, Eth1Data);
ssz_static_test!(fork, Fork);
ssz_static_test!(fork_data, ForkData);
ssz_static_test!(historical_batch, HistoricalBatch<_>);
ssz_static_test!(pending_attestation, PendingAttestation<_>);
// `HistoricalBatch` was removed in Capella, so test vectors only exist for Base,
// Altair and Bellatrix.
#[test]
fn historical_batch() {
SszStaticHandler::<HistoricalBatch<MinimalEthSpec>, MinimalEthSpec>::pre_capella().run();
SszStaticHandler::<HistoricalBatch<MainnetEthSpec>, MainnetEthSpec>::pre_capella().run();
}
// `PendingAttestation` was removed in Altair, so test vectors only exist for Base.
#[test]
fn pending_attestation() {
SszStaticHandler::<PendingAttestation<MinimalEthSpec>, MinimalEthSpec>::base_only().run();
SszStaticHandler::<PendingAttestation<MainnetEthSpec>, MainnetEthSpec>::base_only().run();
}
ssz_static_test!(proposer_slashing, ProposerSlashing);
ssz_static_test!(
signed_beacon_block,
@@ -895,6 +924,12 @@ fn epoch_processing_pending_balance_deposits() {
EpochProcessingHandler::<MainnetEthSpec, PendingBalanceDeposits>::default().run();
}
#[test]
fn epoch_processing_pending_deposits_churn() {
EpochProcessingHandler::<MinimalEthSpec, PendingDepositsChurn>::default().run();
EpochProcessingHandler::<MainnetEthSpec, PendingDepositsChurn>::default().run();
}
#[test]
fn epoch_processing_pending_consolidations() {
EpochProcessingHandler::<MinimalEthSpec, PendingConsolidations>::default().run();
@@ -962,6 +997,18 @@ fn epoch_processing_proposer_lookahead() {
EpochProcessingHandler::<MainnetEthSpec, ProposerLookahead>::default().run();
}
#[test]
fn epoch_processing_ptc_window() {
EpochProcessingHandler::<MinimalEthSpec, PtcWindow>::default().run();
EpochProcessingHandler::<MainnetEthSpec, PtcWindow>::default().run();
}
#[test]
fn epoch_processing_builder_pending_payments() {
EpochProcessingHandler::<MinimalEthSpec, BuilderPendingPayments>::default().run();
EpochProcessingHandler::<MainnetEthSpec, BuilderPendingPayments>::default().run();
}
#[test]
fn fork_upgrade() {
ForkHandler::<MinimalEthSpec>::default().run();
@@ -1028,6 +1075,24 @@ fn fork_choice_deposit_with_reorg() {
// There is no mainnet variant for this test.
}
#[test]
fn fork_choice_on_execution_payload_envelope() {
ForkChoiceHandler::<MinimalEthSpec>::new("on_execution_payload_envelope").run();
ForkChoiceHandler::<MainnetEthSpec>::new("on_execution_payload_envelope").run();
}
#[test]
fn fork_choice_get_parent_payload_status() {
ForkChoiceHandler::<MinimalEthSpec>::new("get_parent_payload_status").run();
ForkChoiceHandler::<MainnetEthSpec>::new("get_parent_payload_status").run();
}
#[test]
fn fork_choice_on_payload_attestation_message() {
ForkChoiceHandler::<MinimalEthSpec>::new("on_payload_attestation_message").run();
ForkChoiceHandler::<MainnetEthSpec>::new("on_payload_attestation_message").run();
}
#[test]
fn optimistic_sync() {
OptimisticSyncHandler::<MinimalEthSpec>::default().run();
@@ -1115,7 +1180,7 @@ fn kzg_inclusion_merkle_proof_validity() {
#[test]
fn rewards() {
for handler in &["basic", "leak", "random"] {
for handler in &["basic", "leak", "random", "inactivity_scores"] {
RewardsHandler::<MinimalEthSpec>::new(handler).run();
RewardsHandler::<MainnetEthSpec>::new(handler).run();
}