Closed adamsoffer closed 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.
🔍 Inspect: https://vercel.com/livepeerorg/explorer-mainnet/eFMq996Kj94a4UQCtEMx1zaoag41
✅ Preview: https://explorer-mainnet-git-as-fix-active-var-livepeerorg.vercel.app
🔍 Inspect: https://vercel.com/livepeerorg/explorer-rinkeby/ERCQp5TjKNd9TDyb5fFrGFbFRBJE
✅ Preview: https://explorer-rinkeby-git-as-fix-active-var-livepeerorg.vercel.app
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
anddeactivationRound
fields in the explorer instead to accurately query whether an orchestrator is active or not.