-
Notifications
You must be signed in to change notification settings - Fork 17
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
indexer: index new blocks #797
Comments
I understand this is done, right @mvdan ? |
Yes, this was #993, I forgot to link the issue. Up to you whether we mark it as fully fixed or not. Note that we currently only index |
#1329 finished this. |
Blockchain blocks are currently not being handled by the indexer. Instead, we just retrieve them from the Tendermint blockstore once requested by the API endpoint
/chain/blocks/height/:height
.There is a need on the Vocdoni explorer side (https://dev.explorer.vote) to retrieve a summary list of blocks; thus they can be listed. This summary needs to include little information, so we can aggregate several blocks on the same page.
Ideally, the indexer SQL database would store the following information.
Currently, the Vochain application does not have an even handler (https://github.com/vocdoni/vocdoni-node/blob/master/vochain/state/eventlistener.go#L20) for allowing subscription to new blocks, but it might be added. Somehow, this even callback should be executed from
vochain.BeginNewBlock()
.Finally, the
vochain/indexer
can use this event call to store new block indxes on its SQL database.An example on how a block looks like.
The text was updated successfully, but these errors were encountered: