starknet_committer: db keys for proofs and accessed keys digest#13997
starknet_committer: db keys for proofs and accessed keys digest#13997ArielElp wants to merge 1 commit into
Conversation
dfd62d8 to
c672275
Compare
1653f27 to
b645f94
Compare
c672275 to
765284d
Compare
b645f94 to
abf2f2d
Compare
2562066 to
d34fe2c
Compare
bc12ddd to
9e42fdf
Compare
d34fe2c to
509ef2f
Compare
9e42fdf to
9ab840a
Compare
509ef2f to
4f7483a
Compare
16a3024 to
d0b8e0c
Compare
12faee1 to
267f776
Compare
d0b8e0c to
00a8555
Compare
267f776 to
df115c1
Compare
1a8e8fc to
9458412
Compare
df115c1 to
777d9c0
Compare
9458412 to
9dc7ed9
Compare
27c8153 to
afa6924
Compare
9dc7ed9 to
2b512c8
Compare
afa6924 to
6303205
Compare
2b512c8 to
88b3f9b
Compare
6303205 to
3ef582d
Compare
88b3f9b to
32233ea
Compare
| key.extend_from_slice(&block_number_bytes); | ||
| key.extend_from_slice(&[0u8; 24]); | ||
| DbKey(key) | ||
| } |
There was a problem hiding this comment.
Duplicated key-building logic already exists in helper function
Low Severity
patricia_proofs_db_key reimplements the same key-construction logic as the existing metadata_block_number_key helper (prefix + block number bytes + 24-byte padding into a 64-byte vec). It could delegate to that helper and wrap the result in DbKey, avoiding duplicated logic that could drift out of sync.
Reviewed by Cursor Bugbot for commit 3ef582d. Configure here.
32233ea to
c1d1d19
Compare
3ef582d to
99c87bd
Compare
c1d1d19 to
ed0c4b1
Compare
99c87bd to
a619b13
Compare
ed0c4b1 to
d1e67a9
Compare
a619b13 to
0f8ba99
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ 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 d02b777. Configure here.
| IndexLayoutSubTree, | ||
| IndexNodeContext, | ||
| }; | ||
| #[cfg(feature = "os_input")] |
There was a problem hiding this comment.
Feature-gated import breaks non-os_input compilation
High Severity
The DbBlockNumber import was changed from unconditional to #[cfg(feature = "os_input")], but metadata_block_number_key at line 349 uses DbBlockNumber in its signature without any feature gate. That function is called from the non-gated ForestMetadata::metadata_key match arms for StateDiffHash and StateRoot. This breaks compilation when the os_input feature is not enabled.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit d02b777. Configure here.
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed all commit messages and made 1 comment.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on ArielElp and yoavGrs).
a discussion (no related file):
isn't this PR a subset of [this one](https://reviewable.io/reviews/starkware-libs/sequencer/13995...?
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on dorimedini-starkware and yoavGrs).
a discussion (no related file):
Previously, dorimedini-starkware wrote…
isn't this PR a subset of [this one](https://reviewable.io/reviews/starkware-libs/sequencer/13995...?
Yeah, I'm not really sure what happened here, I think the original intention was for this PR to contain all the prefixes as they're not really related to the forest trait changes. Given that the previous one was already checked, I'm moving the new prefix there and closing this PR.



No description provided.