From 62f8eb836a7ccecd99d0e18e9441834fde38c9b7 Mon Sep 17 00:00:00 2001 From: Tom Beynon Date: Tue, 4 Oct 2022 13:32:01 +0100 Subject: [PATCH] Use proxy status when checking directory health --- src/utils/Network.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/Network.mjs b/src/utils/Network.mjs index 91b77c12..90bf4b01 100644 --- a/src/utils/Network.mjs +++ b/src/utils/Network.mjs @@ -40,8 +40,8 @@ class Network { } connectedDirectory() { - const apis = this.chain ? this.chain.data['best_apis'] : this.data['best_apis'] - return apis && ['rest'].every(type => apis[type].length > 0) + const proxy_status = this.chain ? this.chain.data['proxy_status'] : this.data['proxy_status'] + return proxy_status && ['rest'].every(type => proxy_status[type]) } estimateOperatorCount() {