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

Cirrus log reader to prevent extra calls to the cirrus fullnode #134

Open
dangershony opened this issue Mar 29, 2022 · 0 comments
Open

Cirrus log reader to prevent extra calls to the cirrus fullnode #134

dangershony opened this issue Mar 29, 2022 · 0 comments
Assignees

Comments

@dangershony
Copy link
Member

When we come to check if a log reader needs enrichment when computing a table we should check if it wasn't already enriched and avoid the additional calls to the fullnode to fetch enrichment data.

For example this is a read that does the check
https://github.com/block-core/blockcore-indexer/blob/master/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/StandardToken/TransferToLogReader.cs
And this is a reader that does not do the check
https://github.com/block-core/blockcore-indexer/blob/master/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/StandardToken/TransferFromLogReader.cs

If we resync the cirrus backend the logs will get enriched so such calls can be avoided

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

2 participants