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

Use ChainInfo in authority to get the list of static chain data #2273

Closed
Tracked by #2005
lumtis opened this issue May 28, 2024 · 0 comments · Fixed by #2380
Closed
Tracked by #2005

Use ChainInfo in authority to get the list of static chain data #2273

lumtis opened this issue May 28, 2024 · 0 comments · Fixed by #2380
Assignees

Comments

@lumtis
Copy link
Member

lumtis commented May 28, 2024

Describe the Issue
Depends on #2272

In many part of the blcokchain and ZetaClient, we use DefaultChainList and GetChainFromChainID to get static information about chains (like consensus, etc...)

Currently the function fetch from a hardcoded list of chain info.

With the new ChainInfo structure in the authority module, new chain info can dynamically be added.

We should query this structure (along with using the hardcoded list) to get static chain info from chain ID.

The final list should be determined by using the hardcoded list and adding elements from authority's ChainInfo into this list, chain info in ChainInfo structure can overwrite the values in the hardcoded list

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 a pull request may close this issue.

1 participant