diff --git a/beacon_chain/networking/peer_protocol.nim b/beacon_chain/networking/peer_protocol.nim index de04a749e..c7d564b05 100644 --- a/beacon_chain/networking/peer_protocol.nim +++ b/beacon_chain/networking/peer_protocol.nim @@ -150,16 +150,6 @@ p2pProtocol PeerSync(version = 1, let ourStatus = peer.networkState.getCurrentStatus() theirStatus = await peer.status(ourStatus, timeout = RESP_TIMEOUT_DUR) - - if incoming == true: - let - metadataRes = await peer.getMetadata_v3() - metadata = metadataRes.get - if metadata.custody_subnet_count < CUSTODY_REQUIREMENT: - debug "Custody requirement is lesser than min, peer disconnected", - peer, errorKind = theirStatus.error.kind - await peer.disconnect(FaultOrError) - else: discard if theirStatus.isOk: discard await peer.handleStatus(peer.networkState, theirStatus.get())