remove metadata v3 call from handleStatus
This commit is contained in:
parent
7c33d3f0f4
commit
7c39d79e7e
|
@ -151,16 +151,6 @@ p2pProtocol PeerSync(version = 1,
|
|||
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())
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue