fix: update query stake using indexer as priority - #47
Merged
Conversation
hejkerooo
requested changes
May 21, 2026
hejkerooo
left a comment
Collaborator
There was a problem hiding this comment.
Good idea to use Indexer for it, just some small cleanup required
azam-ismail
force-pushed
the
fix/query-stake
branch
from
May 21, 2026 09:10
4927523 to
3c7b829
Compare
azam-ismail
force-pushed
the
fix/query-stake
branch
from
May 21, 2026 09:18
3c7b829 to
68f9ce3
Compare
hejkerooo
reviewed
May 21, 2026
hejkerooo
left a comment
Collaborator
There was a problem hiding this comment.
You need to check also for squidStatus - there is a finalizedHeight property. If this is outdated (i.e. 50 blocks behind, should be configurable), you should not treat Indexer as source of truth, instead use RPC. Please implement one method that checks if Indexer is healthy so it can be re-used, maybe with some small cache like 5 seconds.
azam-ismail
force-pushed
the
fix/query-stake
branch
from
May 21, 2026 09:35
68f9ce3 to
d0345c9
Compare
azam-ismail
force-pushed
the
fix/query-stake
branch
from
May 21, 2026 10:27
d0345c9 to
f09258c
Compare
hejkerooo
approved these changes
May 21, 2026
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.
No description provided.