Skip to content

Commit 118a2bd

Browse files
authored
Refactor kzg_7594 generator (#4296)
1 parent caee3b7 commit 118a2bd

File tree

3 files changed

+465
-466
lines changed

3 files changed

+465
-466
lines changed

tests/core/pyspec/eth2spec/gen_helpers/gen_base/gen_runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,17 @@ def debug_print(msg):
253253
for test_case in tprov.make_cases():
254254
# If preset list is assigned, filter by presets.
255255
if len(presets) != 0 and test_case.preset_name not in presets:
256-
print(f"Skipped: {get_test_identifier(test_case)}")
256+
debug_print(f"Skipped: {get_test_identifier(test_case)}")
257257
continue
258258

259259
# If fork list is assigned, filter by forks.
260260
if len(forks) != 0 and test_case.fork_name not in forks:
261-
print(f"Skipped: {get_test_identifier(test_case)}")
261+
debug_print(f"Skipped: {get_test_identifier(test_case)}")
262262
continue
263263

264264
# If cases list is assigned, filter by cases.
265-
if len(cases) != 0 and test_case.case_name not in cases:
266-
print(f"Skipped: {get_test_identifier(test_case)}")
265+
if len(cases) != 0 and not any(s in test_case.case_name for s in cases):
266+
debug_print(f"Skipped: {get_test_identifier(test_case)}")
267267
continue
268268

269269
print(f"Collected: {get_test_identifier(test_case)}")

tests/core/pyspec/eth2spec/test/utils/kzg_tests.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ def evaluate_blob_at(blob, z):
144144
BLOB_INVALID_LENGTH_MINUS_ONE,
145145
]
146146

147-
# Commitments
148-
149-
VALID_COMMITMENTS = [spec.blob_to_kzg_commitment(blob) for blob in VALID_BLOBS]
150-
151147
# Points
152148

153149
G1 = bls.G1_to_bytes48(bls.G1())

0 commit comments

Comments
 (0)