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

Cache transactions in SWC readContractState #90

Open
AndreVallestero opened this issue Jul 23, 2021 · 1 comment
Open

Cache transactions in SWC readContractState #90

AndreVallestero opened this issue Jul 23, 2021 · 1 comment

Comments

@AndreVallestero
Copy link

AndreVallestero commented Jul 23, 2021

If SmartWeave.contracts.readContractState is used, all transactions of the target contract should be cached (maybe only if a parameter is specified). Currently, transactions up to the block height must be continuously refetched causing a massive slowdown in performance (up to 10 minutes for 100 transactions involoving readContractState).

@ppedziwiatr
Copy link
Contributor

hi @AndreVallestero ! Please consider switching to https://github.com/redstone-finance/redstone-smartcontracts - it has the above optimization (and many more!) already implemented.

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