Repository navigation
fix: build the testnet indexer with testnet provider metadata - #123
Merged
Merged
Conversation
The single-instance deploy (#87) always ran `yarn bootstrap`, which aggregates the mainnet providers/ directory, even when ENV is testnet. So the testnet indexer serves mainnet provider names against testnet provider ids: provider 50 shows as "Staker Space" instead of TestInc, and the providers in providers-testnet/ never appear on the testnet dashboard. Run `yarn bootstrap-testnet` for testnet, the same switch bootstrap.sh's ECS deploy path already makes. The testnet indexer has to be redeployed to pick this up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Providers added under
providers-testnet/(e.g. TestInc, provider 50) don't show up on the testnet staking dashboard.The single-instance indexer deploy (#87) always runs
yarn bootstrap, which aggregates the mainnetproviders/directory, even whenENV=testnet. The testnet indexer therefore serves mainnet provider names against testnet provider ids:Fix
Run
yarn bootstrap-testnetwhenENV=testnet. This is the switchatp-indexer/bootstrap.shalready makes on the ECS deploy path. Prod is unchanged.Testing
yarn bootstrap-testnetaggregates the 5 files inproviders-testnet/, with provider 50 asTestInc.After merge
Redeploy the testnet indexer (
Deploy Indexer, environmenttestnet). The metadata is baked into the image at build time.