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

Use Parity on-chain registry only when is needed #6052

Merged
merged 2 commits into from
Jan 22, 2019

Conversation

estebanmino
Copy link
Contributor

Right now we look up functions signatures using Parity on-chain registry every time the transaction list is rendered, for each transaction without exception.

This PR adds to state knownMethodData object with the objective to avoid unnecessary calls to Infura. If I have 10 txs of method data Transfer we just need to query the contract for the needed method data once, not 10 times nor 10 times each time the txs list is rendered.

This is hopefully going to reduce the load to Infura.

Copy link
Contributor

@danfinlay danfinlay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@danfinlay danfinlay merged commit e21dfd1 into develop Jan 22, 2019
@danfinlay danfinlay deleted the introduce-known-method-data branch January 22, 2019 18:23
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.

2 participants