remove metadata v3 call from handleStatus
This commit is contained in:
parent
7c33d3f0f4
commit
7c39d79e7e
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue