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 trusted config to LCD server and index all events #1645

Merged
merged 2 commits into from
Feb 6, 2020

Conversation

antho1404
Copy link
Member

In order to use the LCD server at its full potential, I did a few fixes.

Trusted node

Configure it with a trusted node. If not we need to implement a Verifier but this package will be deprecated. Also, we are running a local node that runs in the same process so it is totally fine to trust it.

Benefits: We can now use the /blocks/{{height}} endpoint with no crashes ;)

Indexer

Index all the transactions in tendermint. By default, the tendermint tx indexer is indexing only the hashes of the transactions, with the indexAllTags it will index all the transactions based on their events eg: message.hash=xxx, message.module=service... We need to carefully think about the events now #1624

Benefits: We can now use the /txs with any type of event eg: /txs?message.module=runner&message.hash=3TPDv7qtJFWPJUqczJdndFas4rTPzvjPzM4Mzm4R9T13

@antho1404 antho1404 added the enhancement New feature or request label Feb 6, 2020
@antho1404 antho1404 self-assigned this Feb 6, 2020
@antho1404
Copy link
Member Author

Already processed transactions will not be present in the indexer and the client might need to synchronize from scratch again to index them. Created an issue about it here tendermint/tendermint#4371

@NicolasMahe NicolasMahe merged commit 7bd5a87 into dev Feb 6, 2020
@NicolasMahe NicolasMahe deleted the feature/lcd-server branch February 6, 2020 08:19
@NicolasMahe NicolasMahe added this to the next milestone Feb 6, 2020
@NicolasMahe NicolasMahe changed the title Improve LCD server Add trusted config to LCD server and index all events Feb 6, 2020
@NicolasMahe NicolasMahe added the release:change Pull requests that change something existant label Feb 6, 2020
@NicolasMahe NicolasMahe mentioned this pull request Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release:change Pull requests that change something existant
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants