Skip to content

Commit

Permalink
Merge pull request #84 from eco-stake/faster-operator-counts
Browse files Browse the repository at this point in the history
Use registry endpoint to determine operator counts
  • Loading branch information
tombeynon authored Feb 13, 2024
2 parents ff344b4 + 758af9f commit 2410d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/CosmosDirectory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function CosmosDirectory(testnet){
}

function getOperatorAddresses(){
return axios.get(validatorsUrl)
return axios.get(validatorsUrl + '/registry')
.then(res => res.data)
.then(data => Array.isArray(data) ? data : data.validators) // deprecate
.then(data => data.reduce((sum, validator) => {
Expand Down Expand Up @@ -74,4 +74,4 @@ function CosmosDirectory(testnet){
}
}

export default CosmosDirectory
export default CosmosDirectory

0 comments on commit 2410d9e

Please sign in to comment.