remove metadata v3 call from handleStatus

This commit is contained in:
Agnish Ghosh 2024-08-18 01:06:05 +05:30
parent 7c33d3f0f4
commit 7c39d79e7e
No known key found for this signature in database
GPG Key ID: 7BDDA05D1B25E9F8
1 changed files with 0 additions and 10 deletions

View File

@ -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())