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

perf: unnecessary call to arweave.networkInfo when block height is requested from client #70

Closed
ppedziwiatr opened this issue Jan 1, 2022 · 2 comments
Assignees

Comments

@ppedziwiatr
Copy link
Contributor

ppedziwiatr commented Jan 1, 2022

calling contract.readState(txId, blockHeight) should not trigger call to arweave.networkInfo().

Also - verify how the deepCopy in https://github.com/redstone-finance/redstone-smartcontracts/blob/main/src/core/modules/impl/ContractHandlerApi.ts#L70 affects the performance - it is basically required by only one contract - ArweaveTeam/SmartWeave#92

@ppedziwiatr
Copy link
Contributor Author

fixed.

@ppedziwiatr
Copy link
Contributor Author

though no-one will ever use it real-life, but hey - benchmarks! ;-)

@ppedziwiatr ppedziwiatr changed the title perf: unnecessary call to arweave.networkInfo when block height is request from client perf: unnecessary call to arweave.networkInfo when block height is requested from client Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant