Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Musitdev/correct chain id init #4

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

musitdev
Copy link
Collaborator

@musitdev musitdev commented Nov 4, 2024

To get the chain id, the indexer sends a gRpc request for Tx 1 and 2 and extract the chain id from them.
The issue is if the node has a pruned db it don't have the Tx 1 and 2 so the Grpc call fail and the indexer panic.
This PR correct it by using the last sync version in db to request the Tx needed to get the chain_id.

@musitdev musitdev merged commit 65185e5 into main Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants