From e32c36abd6b49b3e86d37998fcc67cb0e5fdbd02 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 26 Dec 2024 15:30:23 +0530 Subject: [PATCH] addressed review 2 --- beacon_chain/spec/peerdas_helpers.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beacon_chain/spec/peerdas_helpers.nim b/beacon_chain/spec/peerdas_helpers.nim index c0d882d239..8f1a970072 100644 --- a/beacon_chain/spec/peerdas_helpers.nim +++ b/beacon_chain/spec/peerdas_helpers.nim @@ -120,7 +120,7 @@ func handle_custody_groups(node_id: NodeId, if current_id == UInt256.high.NodeId: # Overflow prevention current_id = NodeId(StUint[256].zero) - current_id += NodeId(StUint[256].one) + inc current_id custody_groups @@ -131,8 +131,7 @@ func get_custody_groups*(node_id: NodeId, let custody_groups = node_id.handle_custody_groups(custody_group_count) - var groups: seq[CustodyIndex] - groups = custody_groups.toSeq() + var groups = custody_groups.toSeq() groups.sort() groups