diff --git a/beacon_chain/eth2_network.nim b/beacon_chain/eth2_network.nim index f74d9556e..44d75a2ba 100644 --- a/beacon_chain/eth2_network.nim +++ b/beacon_chain/eth2_network.nim @@ -832,7 +832,7 @@ proc runDiscoveryLoop*(node: Eth2Node) {.async.} = new_peers = newPeers if newPeers == 0: - if node.peerPool.lenSpace() <= node.wantedPeers shr 2: + if node.peerPool.lenCurrent() <= node.wantedPeers shr 2: warn "Less than 25% wanted peers and could not discover new nodes", discovered = len(discoveredNodes), new_peers = newPeers, wanted_peers = node.wantedPeers diff --git a/vendor/nim-chronicles b/vendor/nim-chronicles index b60f70718..b9a7c6bb0 160000 --- a/vendor/nim-chronicles +++ b/vendor/nim-chronicles @@ -1 +1 @@ -Subproject commit b60f70718f8039c5c86dfc2a4680d8c1e37cbce2 +Subproject commit b9a7c6bb0733ce8c76f0ac8c7889c5e48e7c924f