forked from risc0/risc0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic when Executor is used with dev mode (risc0#1562)
I ran into an issue where, in using `risc0-zkvm` with the `client` feature and `RISC0_DEV_MODE=1` I would get a panic. I tracked this down to the way null segment refs were being handled, which is that deep within the executor the provided callback was being ignored in dev mode. I believe the root cause of the panic then was that dev mode was being checked for at the wrong layer of abstraction. In this PR, the decision on using `NullSegmentRef` is moved by have the dev mode `ProverServer` implementation use `null_callback` in `prove_with_context`. Additionally, the `LocalProver` impl of `Executor` is altered to avoid calling `resolve` on the segments such that they never need to be stored, and we are still able to construct the `SessionInfo`. This PR also cleans up some links that cause `cargo doc -Fclient` to fail, and prunes `EmptySegmentRef`, which is redundant to `NullSegmentRef` and not exported anywhere.
- Loading branch information
Showing
6 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters