Skip to content

Commit

Permalink
Update reference tests for consolidation_request
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassaldanha committed Jun 24, 2024
1 parent 0480cde commit 13fe653
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ private enum Operation {
WITHDRAWAL,
DEPOSIT_REQUEST,
EXECUTION_LAYER_WITHDRAWAL_REQUEST,
CONSOLIDATION
CONSOLIDATION_REQUEST
}

public static final ImmutableMap<String, TestExecutor> OPERATIONS_TEST_TYPES =
Expand Down Expand Up @@ -127,8 +127,9 @@ private enum Operation {
"execution_layer_withdrawal_request.ssz_snappy",
Operation.EXECUTION_LAYER_WITHDRAWAL_REQUEST))
.put(
"operations/consolidation",
new OperationsTestExecutor<>("consolidation.ssz_snappy", Operation.CONSOLIDATION))
"operations/consolidation_request",
new OperationsTestExecutor<>(
"consolidation_request.ssz_snappy", Operation.CONSOLIDATION_REQUEST))
.build();

private final String dataFileName;
Expand Down Expand Up @@ -318,7 +319,7 @@ private void processOperation(
case DEPOSIT_REQUEST -> processDepositRequest(testDefinition, state, processor);
case EXECUTION_LAYER_WITHDRAWAL_REQUEST -> processExecutionLayerWithdrawalRequest(
testDefinition, state, processor);
case CONSOLIDATION -> processConsolidation(testDefinition, state, processor);
case CONSOLIDATION_REQUEST -> processConsolidation(testDefinition, state, processor);
default -> throw new UnsupportedOperationException(
"Operation " + operation + " not implemented in OperationTestExecutor");
}
Expand Down Expand Up @@ -441,7 +442,7 @@ public void checkBlockInclusionValidation(
WITHDRAWAL,
DEPOSIT_REQUEST,
EXECUTION_LAYER_WITHDRAWAL_REQUEST,
CONSOLIDATION -> {}
CONSOLIDATION_REQUEST -> {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ public class ReferenceTestFinder {
Path.of("src", "referenceTest", "resources", "consensus-spec-tests", "tests");
private static final List<String> SUPPORTED_FORKS =
List.of(
TestFork.PHASE0, TestFork.ALTAIR, TestFork.BELLATRIX, TestFork.CAPELLA, TestFork.DENEB);
TestFork.PHASE0,
TestFork.ALTAIR,
TestFork.BELLATRIX,
TestFork.CAPELLA,
TestFork.DENEB,
TestFork.ELECTRA);

@MustBeClosed
public static Stream<TestDefinition> findReferenceTests() throws IOException {
Expand Down

0 comments on commit 13fe653

Please sign in to comment.