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

Accelerating On-Chain Contract Interaction Tests #56

Open
ipromise2324 opened this issue Dec 5, 2024 · 3 comments
Open

Accelerating On-Chain Contract Interaction Tests #56

ipromise2324 opened this issue Dec 5, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ipromise2324
Copy link

Is your feature request related to a problem? Please describe.
I am currently using RemoteBlockchainStorage for testing my on-chain contracts, and while I use snapshot and loadFrom with specified block numbers, the process is still quite slow. Each transaction takes 1-2 seconds to test, which makes the overall testing workflow less efficient.

Describe the solution you'd like
I would appreciate any optimizations to reduce the time required for test execution, such as caching, lightweight transaction simulation, or parallel execution, to speed up the testing process.

@ipromise2324 ipromise2324 added the enhancement New feature or request label Dec 5, 2024
@Trinketer22
Copy link
Contributor

Are you using local node or default configuration? Most likely most of the time is chewed simply by network interaction

@ipromise2324
Copy link
Author

Is it possible to adjust the local node’s configuration settings to make it identical to the blockchain? I noticed that when running tests, the transaction fees incurred through the sandbox differ from the actual fees on the blockchain.

@Trinketer22
Copy link
Contributor

Well, local node is synced to blockchain, so it's configuration should be identical.
However, i think you might be using older version of sandbox, which config is different from blockchain.
Update the sandbox or you could set it explicitly via blockahain.setConfig(Cell.fromBase64("...config dumped from network..."))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants