From 36d9ea6cd19963ddf0f3628b438e85dc6acddf64 Mon Sep 17 00:00:00 2001 From: Dmitrii Shmatko Date: Thu, 3 Aug 2023 19:12:07 +0300 Subject: [PATCH] Fix dimension of nodeId and remove outdated comment (#3445) * Fix dimension of nodeId and remove incorrect comment * Remove debugging --- .../test/phase0/unittests/validator/test_validator_unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py b/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py index 918ab96e2..f5f417bba 100644 --- a/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py +++ b/tests/core/pyspec/eth2spec/test/phase0/unittests/validator/test_validator_unittest.py @@ -485,7 +485,7 @@ def test_get_aggregate_and_proof_signature(spec, state): def run_compute_subscribed_subnets_arguments(spec, rng=random.Random(1111)): - node_id = rng.randint(0, 2**40 - 1) # try VALIDATOR_REGISTRY_LIMIT + node_id = rng.randint(0, 2**256 - 1) epoch = rng.randint(0, 2**64 - 1) subnets = spec.compute_subscribed_subnets(node_id, epoch) assert len(subnets) == spec.config.SUBNETS_PER_NODE