-
Notifications
You must be signed in to change notification settings - Fork 65
starknet_os_runner: build os input #10940
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
Conversation
c2f1eb4 to
c029c15
Compare
042c72c to
ef84d39
Compare
c029c15 to
3a04f94
Compare
ef84d39 to
e7090da
Compare
3a04f94 to
45d6558
Compare
e7090da to
2128dc4
Compare
45d6558 to
1a617b4
Compare
1a617b4 to
1be53db
Compare
2128dc4 to
c7c4b2e
Compare
meship-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.
@meship-starkware partially reviewed 7 files and made 1 comment.
Reviewable status: 4 of 7 files reviewed, all discussions resolved (waiting on @avi-starkware and @noaov1).
c7c4b2e to
b626b52
Compare
1be53db to
ddae6f3
Compare
Yoni-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.
@Yoni-Starkware reviewed 3 files and made 4 comments.
Reviewable status: 5 of 7 files reviewed, 4 unresolved discussions (waiting on @avi-starkware, @AvivYossef-starkware, @meship-starkware, and @noaov1).
crates/starknet_os_runner/src/runner.rs line 31 at r3 (raw file):
V: VirtualBlockExecutor, { pub fn new(classes_provider: C, storage_proofs_provider: S, virtual_block_executor: V) -> Self {
Note: I hope to use this code for general block proofs, not just virtual ones. Not for our first milestone, but keep in mind.
Code quote:
virtual_block_executorcrates/starknet_os_runner/src/runner.rs line 35 at r3 (raw file):
} /// Creates OS input from execution data and storage proofs.
Suggestion:
/// Creates the OS input hint required to run the given transactions virtually on top of the given block number.crates/starknet_os_runner/src/runner.rs line 42 at r3 (raw file):
txs: Vec<(InvokeTransaction, TransactionHash)>, ) -> Result<StarknetOsInput, RunnerError> { // 1. Execute virtual block and get execution data.
Remove the numbers from the documentation (annoying to maintain)
Code quote:
// 1.crates/starknet_os_runner/src/runner.rs line 94 at r3 (raw file):
// We assume that no classes are migrated. class_hashes_to_migrate: HashMap::new(), // Stored block hash buffer skipped for now.
Suggestion:
// Virtual OS does not update the block hash mappingb626b52 to
20aa4d0
Compare
ddae6f3 to
f615c77
Compare
AvivYossef-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.
@AvivYossef-starkware made 2 comments and resolved 2 discussions.
Reviewable status: 4 of 7 files reviewed, 2 unresolved discussions (waiting on @avi-starkware, @meship-starkware, @noaov1, and @Yoni-Starkware).
crates/starknet_os_runner/src/runner.rs line 31 at r3 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
Note: I hope to use this code for general block proofs, not just virtual ones. Not for our first milestone, but keep in mind.
The differences are
preprocess,
finalize,
writing to state
and new block hash right?
crates/starknet_os_runner/src/runner.rs line 35 at r3 (raw file):
} /// Creates OS input from execution data and storage proofs.
Done.
20aa4d0 to
19edbe7
Compare
f615c77 to
6eb2bf5
Compare
Yoni-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.
@Yoni-Starkware reviewed 6 files and all commit messages, made 2 comments, and resolved 1 discussion.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware, @AvivYossef-starkware, and @noaov1).
crates/starknet_os_runner/src/runner.rs line 31 at r3 (raw file):
Previously, AvivYossef-starkware wrote…
The differences are
preprocess,
finalize,
writing to state
and new block hash right?
Yes
6eb2bf5 to
0de04b2
Compare
Merge activity
|
AvivYossef-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.
@AvivYossef-starkware resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @avi-starkware and @noaov1).

No description provided.