Merge pull request #3806 from ethereum/construct_vanishing_polynomial-hotfix

Remove `assert len(missing_cell_indices) != 0` check
This commit is contained in:
Hsiao-Wei Wang 2024-06-15 00:30:31 +08:00 committed by GitHub
commit 00b74686e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -565,9 +565,6 @@ def construct_vanishing_polynomial(missing_cell_indices: Sequence[CellIndex]) ->
We never encounter this case however because this method is used solely for recovery and recovery only We never encounter this case however because this method is used solely for recovery and recovery only
works if at least half of the cells are available. works if at least half of the cells are available.
""" """
assert len(missing_cell_indices) != 0
# Get the small domain # Get the small domain
roots_of_unity_reduced = compute_roots_of_unity(CELLS_PER_EXT_BLOB) roots_of_unity_reduced = compute_roots_of_unity(CELLS_PER_EXT_BLOB)