From d461d3f25f3e0791cc4a8a1de13632713961187e Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Mon, 9 Sep 2024 02:27:59 +0530 Subject: [PATCH] revert Csc to big endian uint64 --- beacon_chain/networking/eth2_network.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_chain/networking/eth2_network.nim b/beacon_chain/networking/eth2_network.nim index 15507a920..67f900ce9 100644 --- a/beacon_chain/networking/eth2_network.nim +++ b/beacon_chain/networking/eth2_network.nim @@ -1562,8 +1562,8 @@ proc runDiscoveryLoop(node: Eth2Node) {.async.} = (wantedAttnets, wantedSyncnets, wantedCscnets) = node.getLowSubnets(currentEpoch) wantedAttnetsCount = wantedAttnets.countOnes() wantedSyncnetsCount = wantedSyncnets.countOnes() - wantedCscnetsCount = wantedCscnets.countOnes() - wantedCscnetsUint = wantedCscnetsCount.uint8 + wantedCscnetsCount = wantedCscnets.countOnes().uint64() + wantedCscnetsBEBytes = wantedCscnetsCount.toBytesBE() outgoingPeers = node.peerPool.lenCurrent({PeerType.Outgoing}) targetOutgoingPeers = max(node.wantedPeers div 10, 3) @@ -1581,7 +1581,7 @@ proc runDiscoveryLoop(node: Eth2Node) {.async.} = node.discoveryForkId, wantedAttnets, wantedSyncnets, - wantedCscnetsUint, + uint64.fromBytesBE(wantedCscnetsBEBytes), minScore) let newPeers = block: