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

Better support for multiple chains #3

Closed
graup opened this issue Nov 22, 2018 · 4 comments
Closed

Better support for multiple chains #3

graup opened this issue Nov 22, 2018 · 4 comments
Assignees

Comments

@graup
Copy link
Member

graup commented Nov 22, 2018

The backend currently doesn't work with multiple blockchains. Since multi-chain is an important feature of Aergo, we need to improve this.

There are two approaches:

  • Have one instance of backend+frontend per chain (optionally reuse same db, with index prefix)
  • Have multiple chains in one instance (more flexible with UX, e.g. we can have a dropdown to switch between networks and also analyze cross-network traffic)
@graup
Copy link
Member Author

graup commented Nov 22, 2018

It would really help to have the indexer be part of the node (aergoio/aergo#14). That way it would be really easy to setup indexing multiple chains into one database and have just one unified backend and frontend.

@graup
Copy link
Member Author

graup commented Dec 10, 2018

Update: The indexer is now a standalone go program (https://github.com/aergoio/aergo-esindexer) which supports syncing multiple chains. The aergoscan backend is now only an API to access the data in the database.

We can still go both routes mentioned in the intro, it really is just a UX decision now.

@graup
Copy link
Member Author

graup commented Dec 26, 2018

Multi-chain support landed in the API server in c25d333

API URLs are now /:chainId/tx, /:chainId/bestBlock etc.

@graup graup self-assigned this Jan 3, 2019
@graup
Copy link
Member Author

graup commented Jan 28, 2019

What's left here is a better way of configuration and using the new chainInfo API which will be released in aergosvr 0.11.

@graup graup closed this as completed May 3, 2019
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

No branches or pull requests

1 participant