-
Notifications
You must be signed in to change notification settings - Fork 45
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
Labels
Comments
fixed. |
though no-one will ever use it real-life, but hey - benchmarks! ;-) |
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
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
The text was updated successfully, but these errors were encountered: