starknet_committer: underlying logic of the new read witnesses and commit endpoint#14001
starknet_committer: underlying logic of the new read witnesses and commit endpoint#14001ArielElp wants to merge 1 commit into
Conversation
97f4dda to
c42c4a2
Compare
a48fffb to
bd02493
Compare
bd02493 to
a600115
Compare
2892fbe to
573c4db
Compare
a600115 to
65906b7
Compare
573c4db to
0ef9967
Compare
65906b7 to
4de5b94
Compare
2f5189a to
d248e3b
Compare
4de5b94 to
58e714d
Compare
3281671 to
1f931cb
Compare
1f931cb to
8f9e24b
Compare
e216816 to
5c08172
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 7 comments.
Reviewable status: 1 of 5 files reviewed, 7 unresolved discussions (waiting on yoavGrs).
crates/apollo_committer/src/committer.rs line 503 at r4 (raw file):
Previously, yoavGrs wrote…
I found this a bit hard to read.
Could you flatten the function out and use some named variables?
Done
crates/apollo_committer/src/committer.rs line 508 at r4 (raw file):
Previously, yoavGrs wrote…
Top-down Ordering
Done.
crates/apollo_committer/src/committer.rs line 521 at r4 (raw file):
Previously, yoavGrs wrote…
It makes sense that
LeavesRequestwill be part of the request type.
Maybe it's a bad name, I can rename in a different PR. LeavesRequest is essentially a conversion between concrete leaves to NodeIndex, so I don't think it should be part of the request.
crates/apollo_committer/src/committer.rs line 555 at r4 (raw file):
Previously, yoavGrs wrote…
Add some comments about the main stages in the process.
Done.
crates/apollo_committer/src/committer.rs line 571 at r4 (raw file):
Previously, yoavGrs wrote…
The main goal at this stage is measurements, so you also need to cover the witness-related parts.
done in next PR
crates/apollo_committer/src/committer.rs line 597 at r4 (raw file):
Previously, yoavGrs wrote…
It is better not to create a mutable object unnecessarily.
Changed the original variable to mut.
crates/apollo_committer/src/committer.rs line 602 at r4 (raw file):
Previously, yoavGrs wrote…
It may help us.
done in next PR
8f9e24b to
cddd859
Compare
5c08172 to
b685c0d
Compare
cddd859 to
a660497
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a660497. Configure here.
b685c0d to
036d0c6
Compare
a660497 to
00bf9c8
Compare
036d0c6 to
530912e
Compare
00bf9c8 to
9d6106e
Compare
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs reviewed 3 files and all commit messages, made 1 comment, and resolved 7 discussions.
Reviewable status: 4 of 5 files reviewed, 2 unresolved discussions (waiting on ArielElp).
crates/apollo_committer/src/committer.rs line 626 at r6 (raw file):
}) }) .transpose()
This is my suggestion - break it with a let in the middle.
Suggestion:
let digest_raw = self.forest_storage
.read_metadata(ForestMetadataType::AccessedKeysDigest(DbBlockNumber(block_number)))
.await
.map_err(|error| self.map_internal_error(error))?;
digest_raw.0.as_slice().try_into().map_err(|_| CommitterError::Internal {
height: block_number,
message: format!(
"Invalid OS witnesses digest length {} (expected 32)",
digest_raw.0.len()
),
})
})
.transpose()530912e to
334fb68
Compare
9d6106e to
38ad4df
Compare
334fb68 to
b9d7c24
Compare
38ad4df to
0ef2f36
Compare
b9d7c24 to
a11c9cd
Compare
0ef2f36 to
574e6b3
Compare
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment and resolved 1 discussion.
Reviewable status: 2 of 5 files reviewed, all discussions resolved (waiting on yoavGrs).
crates/apollo_committer/src/committer.rs line 626 at r6 (raw file):
Previously, yoavGrs wrote…
This is my suggestion - break it with a
letin the middle.
Done
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs reviewed 2 files and all commit messages.
Reviewable status: 4 of 5 files reviewed, all discussions resolved.
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp dismissed @yoavGrs from a discussion.
Reviewable status: 4 of 5 files reviewed, all discussions resolved (waiting on yoavGrs).
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs partially reviewed 4 files and all commit messages.
Reviewable status: 4 of 5 files reviewed, all discussions resolved.
yoavGrs
left a comment
There was a problem hiding this comment.
Reviewable status: 4 of 5 files reviewed, all discussions resolved.
574e6b3 to
f54eccf
Compare
a11c9cd to
e18eb18
Compare
e18eb18 to
625c60d
Compare
f54eccf to
491609e
Compare


No description provided.