-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_committer: add index layout nodes #10682
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
starknet_committer: add index layout nodes #10682
Conversation
01c2851 to
ba78a66
Compare
4402c0e to
5a62fc2
Compare
ba78a66 to
7578dc0
Compare
b3f70f7 to
70f1731
Compare
59b51ce to
f733314
Compare
70f1731 to
6c50273
Compare
f733314 to
8ff59c0
Compare
6c50273 to
9f1b96e
Compare
8ff59c0 to
ac40644
Compare
9f1b96e to
c3c62a4
Compare
ac40644 to
e30a635
Compare
c3c62a4 to
e664009
Compare
e30a635 to
f25ec01
Compare
e664009 to
909fb4e
Compare
f25ec01 to
aad75aa
Compare
909fb4e to
2c4bcff
Compare
1c1145c to
14fb5d0
Compare
ArielElp
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.
@ArielElp made 2 comments.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).
crates/starknet_committer/src/db/index_db/serde_tests.rs line 64 at r12 (raw file):
Previously, dorimedini-starkware wrote…
ok now I notice these functions have no arguments:
please convert them to statics with LazyLock (see example in the first one).
this is useful so we don't compute the same hashes multiple times (there will be more tests in the future, I guess).another approach would be to create 3 utility functions that get nice "regular numbers" as input and output these complex objects, to reduce boilerplate (this is what we did in the starknet_patricia crate tests)
Done (moved the three objects whose construction involves hashing under LazyLock)
crates/starknet_committer/src/db/index_db/serde_tests.rs line 155 at r12 (raw file):
Previously, dorimedini-starkware wrote…
what is this dark magic
Just U256 from two u128 (wrong shift direction on high 128 bits... fixed)
I realized U256 has shift so just doing the right thing now
f0ae1a9 to
c0a23c6
Compare
14fb5d0 to
0070c94
Compare
dorimedini-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.
@dorimedini-starkware reviewed 3 files and all commit messages, and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @ArielElp).
0070c94 to
e6d71c6
Compare
c0a23c6 to
08c16bf
Compare
e6d71c6 to
da5f5c2
Compare
ad3c4db to
ff8df93
Compare
da5f5c2 to
d8d9f88
Compare
ff8df93 to
d0c0f43
Compare
d8d9f88 to
ca195e9
Compare
ca195e9 to
dfaaf90
Compare

No description provided.