Simplify handlers

This commit is contained in:
Michael Sproul
2026-05-07 18:06:51 +10:00
parent 6e2a27cc71
commit ed4de4ee52
2 changed files with 13 additions and 108 deletions

View File

@@ -1079,106 +1079,34 @@ fn fork_choice_get_parent_payload_status() {
ForkChoiceHandler::<MainnetEthSpec>::new("get_parent_payload_status").run();
}
// Compliance tests surface real consensus deltas (proposer-boost timing, viable-tree
// weights) that we want to be able to run on demand without blocking CI. They are gated
// behind `#[ignore]` and run via `scripts/compliance-fc-report.sh` (which passes
// `--include-ignored` to cargo test). To run them directly:
// cargo test --release --features "ef_tests,fake_crypto" -p ef_tests --test tests \
// fork_choice_compliance_ -- --include-ignored
#[test]
#[ignore]
fn fork_choice_compliance_attester_slashing_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("attester_slashing_test")
.only_fork(ForkName::Fulu)
.run();
fn fork_choice_compliance_attester_slashing_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("attester_slashing_test").run();
}
#[test]
#[ignore]
fn fork_choice_compliance_attester_slashing_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("attester_slashing_test")
.only_fork(ForkName::Gloas)
.run();
fn fork_choice_compliance_block_cover_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_cover_test").run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_cover_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_cover_test")
.only_fork(ForkName::Fulu)
.run();
fn fork_choice_compliance_block_tree_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_tree_test").run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_cover_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_cover_test")
.only_fork(ForkName::Gloas)
.run();
fn fork_choice_compliance_block_weight_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_weight_test").run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_tree_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_tree_test")
.only_fork(ForkName::Fulu)
.run();
fn fork_choice_compliance_invalid_message_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("invalid_message_test").run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_tree_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_tree_test")
.only_fork(ForkName::Gloas)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_weight_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_weight_test")
.only_fork(ForkName::Fulu)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_block_weight_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("block_weight_test")
.only_fork(ForkName::Gloas)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_invalid_message_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("invalid_message_test")
.only_fork(ForkName::Fulu)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_invalid_message_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("invalid_message_test")
.only_fork(ForkName::Gloas)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_shuffling_test_fulu() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("shuffling_test")
.only_fork(ForkName::Fulu)
.run();
}
#[test]
#[ignore]
fn fork_choice_compliance_shuffling_test_gloas() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("shuffling_test")
.only_fork(ForkName::Gloas)
.run();
fn fork_choice_compliance_shuffling_test() {
ForkChoiceComplianceHandler::<MinimalEthSpec>::new("shuffling_test").run();
}
#[test]