Add unittest to check FIELD_ELEMENTS_PER_EXT_BLOB value

This commit is contained in:
Hsiao-Wei Wang
2024-03-12 21:51:58 +08:00
parent 4b6b07b73e
commit 89564aaaa6

View File

@@ -0,0 +1,12 @@
from eth2spec.test.context import (
single_phase,
spec_test,
with_eip7594_and_later,
)
@with_eip7594_and_later
@spec_test
@single_phase
def test_polynomical_commitments_sampling(spec):
assert spec.FIELD_ELEMENTS_PER_EXT_BLOB == 2 * spec.FIELD_ELEMENTS_PER_BLOB