-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_proof_manager: impl ProofStorage #10901
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
Conversation
d579010 to
ed9ff7d
Compare
72c429f to
58f0c28
Compare
ed9ff7d to
09769a0
Compare
58f0c28 to
c0ca05c
Compare
noaov1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noaov1 reviewed 1 file and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @einat-starkware).
crates/apollo_proof_manager/src/proof_storage.rs line 130 at r1 (raw file):
} fn write_proof_atomically(&self, facts_hash: Felt, proof: Proof) -> FsProofStorageResult<()> {
Why is it needed? 🤔
Code quote:
fn write_proof_atomically(&self, facts_hash: Felt, proof: Proof) -> FsProofStorageResult<()> {crates/apollo_proof_manager/src/proof_storage.rs line 151 at r1 (raw file):
fn get_proof(&self, facts_hash: Felt) -> Result<Option<Proof>, Self::Error> { match self.read_proof_from_file(facts_hash) {
When do you return Ok(None)?
Code quote:
match self.read_proof_from_file(facts_hash) {09769a0 to
b416cd8
Compare
c0ca05c to
4be5b48
Compare
einat-starkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@einat-starkware made 2 comments.
Reviewable status: 0 of 1 files reviewed, 2 unresolved discussions (waiting on @AvivYossef-starkware and @noaov1).
crates/apollo_proof_manager/src/proof_storage.rs line 130 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Why is it needed? 🤔
I followed the same logic as the class storage - if it crashes in the middle of writing the proof, it won't return an empty file or a partial write, but will instead be as if the write never happened
crates/apollo_proof_manager/src/proof_storage.rs line 151 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
When do you return
Ok(None)?
If it doesn't contain the proof - i added in a check :)
noaov1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noaov1 reviewed 1 file and all commit messages, made 1 comment, and resolved 2 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware).
4be5b48 to
94630c2
Compare
b416cd8 to
78db681
Compare
94630c2 to
bb3378c
Compare
78db681 to
55123ae
Compare
noaov1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noaov1 reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @AvivYossef-starkware).
bb3378c to
4aa1eff
Compare
55123ae to
3da6770
Compare
3da6770 to
868660e
Compare
4aa1eff to
c5a5a4c
Compare
c5a5a4c to
50d5465
Compare
868660e to
3041a88
Compare
3041a88 to
f91b41c
Compare
f91b41c to
fa7fc76
Compare
2b6f1f1 to
ec840fa
Compare
fa7fc76 to
71f2592
Compare
Merge activity
|

No description provided.