Repository navigation
fix(config): refuse to start with an unusable chain price cap - #760
Merged
MoonBoi9001 merged 4 commits intoOct 27, 2026
Conversation
Dipper's per-chain cap on what it pays each 30 days was never checked when the service started. A cap of 0 shuts out every priced indexer, and IISA refuses a negative one, which dipper retries every 60 seconds forever. Startup now refuses any cap that is not positive, naming its chain.
MoonBoi9001
marked this pull request as ready for review
October 27, 2026 09:44
…use-unusable-per-chain-price-caps
Every offer's on-chain payment limit comes from this cap, so 0, a negative or NaN offered indexers nothing and infinity lifted the limit. Test configs now use the default of 20,000.
It rejects caps of 0, negative, NaN and infinity, and only a cap of 0 excludes every priced indexer, so the old name described 1 case out of 4.
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.
Dipper now refuses to start when any entry in
max_grt_per_30_daysis not a positive number, and the error names the chain and its value. A cap of 0 shuts out every priced indexer on that chain, and IISA rejects a negative one, which dipper treats as an outage and retries every 60 seconds without end.