Skip to content

Commit 303fd4c

Browse files
committed
fix: ignore unsupported MODEXP test vectors
for BlockchainReferenceTest_x, x = 242, 26, 33 Note: unsupported prior to Osaka
1 parent 59be61e commit 303fd4c

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

reference-tests/src/test/java/net/consensys/linea/BlockchainReferenceTestTools.java

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
@Slf4j
6767
public class BlockchainReferenceTestTools {
6868
// Keep the forkName and the zkevm_fork in github worklow in PascalCase
69-
private static final Fork fork = getForkOrDefault(LONDON);
69+
private static final Fork fork = getForkOrDefault(PRAGUE);
7070
private static final ReferenceTestProtocolSchedules REFERENCE_TEST_PROTOCOL_SCHEDULES =
7171
ReferenceTestProtocolSchedules.create();
7272
private static final List<String> NETWORKS_TO_RUN = List.of(toPascalCase(fork));
@@ -703,6 +703,41 @@ public class BlockchainReferenceTestTools {
703703
PARAMS.ignore("randomStatetest650_d0g0v0_*");
704704
}
705705

706+
// Prior to Osaka MODEXP had unsupported arguments in the arithmetization
707+
if (forkPredatesOsaka(fork)) {
708+
// massive mbs
709+
PARAMS.ignore(
710+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d2-g[0-3]\\]");
711+
712+
// massive bbs
713+
PARAMS.ignore(
714+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d28-g[0-3]\\]");
715+
PARAMS.ignore(
716+
"test_precompiles.py::test_precompiles\\[fork_.*-address_0x0000000000000000000000000000000000000005-precompile_exists_True-blockchain_test_from_state_test\\]");
717+
718+
// massive ebs
719+
PARAMS.ignore(
720+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d29-g[0-3]\\]");
721+
PARAMS.ignore(
722+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d30-g[0-3]\\]");
723+
PARAMS.ignore(
724+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d36-g[0-3]\\]");
725+
PARAMS.ignore(
726+
"modexpFiller.json::modexp\\[fork_.*-blockchain_test_from_state_test-d37-g[0-3]\\]");
727+
728+
// byte sizes 512 < xbs ≤ 1024t
729+
PARAMS.ignore(
730+
"test_modexp_thresholds.py::test_modexp_variable_gas_cost_exceed_tx_gas_cap\\[fork_.*-blockchain_test_from_state_test-Z16-gas-cap-test\\]");
731+
PARAMS.ignore(
732+
"test_modexp_thresholds.py::test_vectors_from_eip\\[fork_.*-blockchain_test_from_state_test-guido-3-even\\]");
733+
PARAMS.ignore(
734+
"test_modexp_thresholds.py::test_vectors_from_eip\\[fork_.*-blockchain_test_from_state_test-nagydani-5-pow0x10001\\]");
735+
PARAMS.ignore(
736+
"test_modexp_thresholds.py::test_vectors_from_eip\\[fork_.*-blockchain_test_from_state_test-nagydani-5-qube\\]");
737+
PARAMS.ignore(
738+
"test_modexp_thresholds.py::test_vectors_from_eip\\[fork_.*-blockchain_test_from_state_test-nagydani-5-square\\]");
739+
}
740+
706741
// unsupported behaviour: uncle blocks, re-orgs, forks, side chain (?)
707742
if (!isPostPrague(fork)) {
708743
PARAMS.ignore("ChainAtoChainBCallContractFormA_London\\[London\\]");

0 commit comments

Comments
 (0)