-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fast-forwarding support #105
Comments
nearcore side work to support fast-forwarding is recently accomplished by @ChaoticTempest , support in workspaces-js is not added yet |
relevant PRs for reference: still waiting on near/nearcore#6211 for timestamps/epoch |
cool, thanks for the update! |
Any ideas on when this will be available for this api? I see it's already made it to workspaces-rs. |
@june07 it is on our roadmap but looks like we will have the capacity ~Q1 2023. |
@volovyks So it seems that it's possible in workspace-js simply using the following: await worker.manager.provider.sendJsonRpc('sandbox_fast_forward', { delta_height: 2000 }); I forked the repo and considered contributing in this regard... but it doesn't seem like much more abstraction is needed?! HOWEVER... while it does appear to work somewhat, it seems rather buggy with the block forwarding halting (verified by logs from rpc) more than half the time... at which time the test simply needs to be cancelled and restarted... else the test hangs until the test framework timeout. More important... when spooning a staking contract from testnet, the .get_account_total_balance method isn't showing any increase in value... in other words it seems that the spooned contract isn't being affected by the sandbox_fast_forward action. Since it has been spooned to the sandbox... it seems to be that it should be running its own code per blocks being fast forwarded, and as such I should see some increase in account balance... Any idea's on this... |
@june07 how are you using it with other calls? Any full code snippets I can take a look at to get more context? Its working as intended for me when I utilize the same contract in workspaces-rs/fast_forward.rs for workspaces-js Also, just noting that |
hey, I saw this issue: #1 ,
do we support fast-forwarding now?
I'm working on a contract that interacts with validator staking contract, it will be hard to test without the ability to fast-forward epoch numbers.
The text was updated successfully, but these errors were encountered: