-
Notifications
You must be signed in to change notification settings - Fork 38
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(starknet_os): implement hint write_old_block_to_storage #4499
base: main
Are you sure you want to change the base?
Conversation
598ca1b
to
de13c55
Compare
435cdab
to
bea09b5
Compare
2f822b9
to
f5f6e35
Compare
bea09b5
to
86f0419
Compare
f5f6e35
to
e773bb4
Compare
86f0419
to
d035254
Compare
eb759e7
to
ee0b4d4
Compare
Benchmark movements: |
ee0b4d4
to
26a342b
Compare
26a342b
to
4abdd91
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 r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware)
crates/starknet_os/src/hints/error.rs
line 50 at r3 (raw file):
MemoryError(#[from] MemoryError), #[error("Convert {n_bits} bits for {type_name}.")] StatelessCompressionOverflow { n_bits: usize, type_name: String },
these are not alphabetized... while you're here can you fix it?
Code quote:
#[error("Unknown hint string: {0}")]
UnknownHint(String),
#[error("The identifier {0:?} has no full name.")]
IdentifierHasNoFullName(Box<Identifier>),
#[error("The identifier {0:?} has no members.")]
IdentifierHasNoMembers(Box<Identifier>),
#[error(transparent)]
MathError(#[from] MathError),
#[error(transparent)]
MemoryError(#[from] MemoryError),
#[error("Convert {n_bits} bits for {type_name}.")]
StatelessCompressionOverflow { n_bits: usize, type_name: String },
crates/starknet_os/src/hints/hint_implementation/execution.rs
line 301 at r3 (raw file):
get_integer_from_var_name(Ids::OldBlockHash.into(), vm, ids_data, ap_tracking)?; log::debug!("writing block number: {} -> block hash: {}", old_block_number, old_block_hash);
this is not in the original hint, right? why do you log it?
Code quote:
log::debug!("writing block number: {} -> block hash: {}", old_block_number, old_block_hash);
Previously, dorimedini-starkware wrote…
It's in the Moonsong hint, though. |
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 @aner-starkware and @nimrod-starkware)
crates/starknet_os/src/hints/hint_implementation/execution.rs
line 301 at r3 (raw file):
Previously, aner-starkware wrote…
It's in the Moonsong hint, though.
ok, not strictly necessary but nice to have
Previously, dorimedini-starkware wrote…
|
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:
complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)
3452828
to
e530163
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 r6, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)
e530163
to
706d7b2
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 r8, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)
No description provided.