-
Notifications
You must be signed in to change notification settings - Fork 35
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
feat(blockifier): integrate Casm read from class manager client #3983
feat(blockifier): integrate Casm read from class manager client #3983
Conversation
261626c
to
17af2c7
Compare
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.
Reviewed 4 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware, @elintul, and @meship-starkware)
crates/papyrus_state_reader/src/papyrus_state.rs
line 54 at r2 (raw file):
contract_class_manager, // TODO(Elin): integrate class manager client. class_reader: None,
Out of curiosity- where do you set this to Some
?
Code quote:
class_reader: None,
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.
Reviewed 3 of 4 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @elintul)
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.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @AvivYossef-starkware and @noaov1)
crates/papyrus_state_reader/src/papyrus_state.rs
line 54 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Out of curiosity- where do you set this to
Some
?
Good Q (I guess you looked it up); nowhere yet. Shahak's team is still helping me integrating the class manager.
It will be set to Some(class_manager_client)
when the new Batcher's state reader is initialized. :)
17af2c7
to
ad7dd2a
Compare
Chose this simpler option to implement, instead of making Papyrus state generic by `CR: CasmReader` trait, since it would require cloning `mdbx` resources, which is flaky working with PyO3. After `native_blockifier` is deprecated, the client should become non-`Option` and Papyrus state (in the new Batcher) should always be initialized with a concrete instance.
ad7dd2a
to
4d6c655
Compare
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.
Reviewed 3 of 3 files at r3, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)
Chose this simpler option to implement, instead of making Papyrus state generic by
CR: CasmReader
trait, since it would require cloningmdbx
resources, which is flaky working with PyO3.After
native_blockifier
is deprecated, the client should become non-Option
and Papyrus state (in the new Batcher) should always be initialized with a concrete instance.