Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Cannot get state root with uncommitted checkpoints error when starting ganache forking with infura RPC endpoint #618

Closed
mds1 opened this issue Aug 22, 2020 · 5 comments

Comments

@mds1
Copy link

mds1 commented Aug 22, 2020

Sometimes when starting ganache an error is thrown, and it's fixed simply by restarting ganache. One of the errors I've seen when this happens is described in #615. The other is described in this issue. The error thrown is:

Error: Returned error: Cannot get state root with uncommitted checkpoints

Unfortunately I did not save off the stack trace when noting this error, so will update this issue to include the stack trace next time I see this error. As mentioned above, restarting ganache will fix the issue.

Your Environment

  • Version used: ganache-core 2.11.2 (no Ganache CLI, as I'm using ganache-core directly through OpenZeppelin Test Environment)
@mds1
Copy link
Author

mds1 commented Aug 25, 2020

Not super helpful, but here's the output from today (different project than the one where I first saw this the other day)

Error: Returned error: Cannot get state root with uncommitted checkpoints
 at Context.<anonymous> (test/batch-zkSync-deposit-test.js:59:54)
 at processTicksAndRejections (internal/process/task_queues.js:97:5)

cc @seesemichaelj

@mikeseese
Copy link
Contributor

Thanks for the CC @mds1

Is this with forking or happens without forking?

@mds1
Copy link
Author

mds1 commented Aug 25, 2020

Oops forgot to mention, only with forking!

@mikeseese mikeseese self-assigned this Aug 25, 2020
@gnidan
Copy link
Contributor

gnidan commented Mar 24, 2021

@davidmurdoch is currently working on reimplementing forking in a more robust fashion, for the upcoming Ganache v7.0.0 release. Pinging you David to get this on your radar.

Thanks all!

@gnidan gnidan added this to the 7.0.0 milestone Mar 24, 2021
@gnidan gnidan assigned davidmurdoch and unassigned mikeseese Mar 24, 2021
@davidmurdoch davidmurdoch modified the milestones: 7.0.0, 7.1.0 Aug 6, 2021
@davidmurdoch
Copy link
Member

Closing at forking has been reimplemented and these sorts of issues are likely to have been refactored away. Please open a new issue with details if you experience this with Ganache v7+!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Done
Development

No branches or pull requests

4 participants