Skip to content

Commit c9e0e6d

Browse files
committed
Add a short node_id test
1 parent fdad206 commit c9e0e6d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

tests/core/pyspec/eth2spec/test/eip7594/networking/test_get_custody_columns.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@ def test_get_custody_columns__max_node_id_max_custody_subnet_count_minus_1(spec)
7676
)
7777

7878

79+
@with_eip7594_and_later
80+
@spec_test
81+
@single_phase
82+
def test_get_custody_columns__short_node_id(spec):
83+
rng = random.Random(1111)
84+
yield from _run_get_custody_columns(spec, rng, node_id=1048576, custody_subnet_count=1)
85+
86+
7987
@with_eip7594_and_later
8088
@spec_test
8189
@single_phase

tests/formats/networking/get_custody_columns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
```yaml
1010
description: string -- optional: description of test case, purely for debugging purposes.
11-
node_id: int -- argument: the NodeId input.
11+
node_id: int -- argument: the NodeID input.
1212
custody_subnet_count: int -- argument: the count of custody subnets.
1313
result: list of int -- output: the list of resulting column indices.
1414
```

0 commit comments

Comments
 (0)