Skip to content

Commit

Permalink
Merge pull request #622 from eco-stake/use-proxy-status-directory-health
Browse files Browse the repository at this point in the history
Use proxy status when checking directory health
  • Loading branch information
tombeynon authored Oct 4, 2022
2 parents 4b89e89 + 62f8eb8 commit 4c37bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/Network.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 4c37bf9

Please sign in to comment.