livepeer / livepeer-monorepo

JavaScript tools and applications that interact with Livepeer's smart contracts and peer-to-peer network
https://livepeer.org
MIT License
167 stars 71 forks source link

fix active var #1007

Closed adamsoffer closed 3 years ago

adamsoffer commented 3 years ago

What does this pull request do? Explain your changes. (required) The subgraph doesn’t always index the active boolean for some orchestrators. For example, query the active field for orchestrator 0xda43d85b8d419a9c51bbf0089c9bd5169c23f2f9 and you'll see it return false when it should return true. This causes the green status dot in the explorer to appear gray for some orchestrators.

Until this is resolved in the subgraph, this PR uses the activationRound and deactivationRound fields in the explorer instead to accurately query whether an orchestrator is active or not.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

explorer-mainnet – ./packages/explorer-2.0

🔍 Inspect: https://vercel.com/livepeerorg/explorer-mainnet/eFMq996Kj94a4UQCtEMx1zaoag41
✅ Preview: https://explorer-mainnet-git-as-fix-active-var-livepeerorg.vercel.app

explorer-rinkeby – ./packages/explorer-2.0

🔍 Inspect: https://vercel.com/livepeerorg/explorer-rinkeby/ERCQp5TjKNd9TDyb5fFrGFbFRBJE
✅ Preview: https://explorer-rinkeby-git-as-fix-active-var-livepeerorg.vercel.app