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

add separate explorer service #2467

Closed

Conversation

ecioppettini
Copy link
Contributor

Add separate explorer service (wip)

NOTE: this depends on #2378 (note the base branch)

Start moving the explorer outside of the node into a subcrate.

There are still a lot of questions of what's the best way to move forward with this, so this is mostly to start somewhere. The idea was to just copy-paste the the whole API but there are some part of the indexing process that depend on the ledger/blockchain object (particularly all the vote counting). Shouldn't be that hard to extract, but maybe it's better to do it after starting with the storage.

The logging part is fairly simple to get started, but ideally we should reuse the same setup (configuration) that the node uses.
The warp/api setup should be the same too, not sure how worth it is to share it.

There are more details, but may be better to create an issue to keep track of everything (todo)

@ecioppettini ecioppettini self-assigned this Jul 23, 2020
@ecioppettini ecioppettini force-pushed the add-blockchain-event-notifier-service branch from 5ca7915 to 5c7253c Compare September 2, 2020 15:10
@ecioppettini ecioppettini force-pushed the add-blockchain-event-notifier-service branch from 5c7253c to 10afb4e Compare September 10, 2020 16:55
the serialization can change, but use json for now
add also setting to configuration builder, in order to test it, and
improve the panic handling of the notifier client
in order to avoid platform specific dependencies in Cargo.lock
the new connection requests are handled through a new message
tip changes are handled with tokio::watch because we only care about the
latest state, but block changes use a broadcast to keep old ones too
@ecioppettini ecioppettini force-pushed the add-blockchain-event-notifier-service branch from 941a3f0 to 7c6c721 Compare October 30, 2020 23:01
@ecioppettini
Copy link
Contributor Author

I'll open a new PR more according with the new plans. (and with the current graphql api)

@ecioppettini ecioppettini deleted the extract-explorer branch October 20, 2021 02:07
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.

1 participant