We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b583d commit 1ad381dCopy full SHA for 1ad381d
specs/_features/eip7594/das-core.md
@@ -229,6 +229,14 @@ def get_data_column_sidecars(signed_block: SignedBeaconBlock,
229
```python
230
def get_extended_sample_count(allowed_failures: uint64) -> uint64:
231
assert 0 <= allowed_failures <= NUMBER_OF_COLUMNS // 2
232
+ """
233
+ Return the sample count if allowing failures.
234
+
235
+ This helper demonstrates how to calculate the number of columns to query per slot when
236
+ allowing given number of failures, assuming uniform random selection without replacement.
237
+ Nested functions are direct replacements of Python library functions math.comb and
238
+ scipy.stats.hypergeom.cdf, with the same signatures.
239
240
241
def math_comb(n: int, k: int) -> int:
242
if not 0 <= k <= n:
0 commit comments