From 89564aaaa618b6d85892c13080401c05c2bfbeee Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Tue, 12 Mar 2024 21:51:58 +0800 Subject: [PATCH] Add unittest to check `FIELD_ELEMENTS_PER_EXT_BLOB` value --- .../test/eip7594/unittests/test_config_invariants.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/core/pyspec/eth2spec/test/eip7594/unittests/test_config_invariants.py diff --git a/tests/core/pyspec/eth2spec/test/eip7594/unittests/test_config_invariants.py b/tests/core/pyspec/eth2spec/test/eip7594/unittests/test_config_invariants.py new file mode 100644 index 000000000..20baca8bf --- /dev/null +++ b/tests/core/pyspec/eth2spec/test/eip7594/unittests/test_config_invariants.py @@ -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