chore(blockifier): fn execute_txs_sequentially return state_diff + change privacy pub fn to fn #3580
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
ee8cf86 to
ab31c95
Compare
ab31c95 to
0da3430
Compare
noaov1
left a comment
There was a problem hiding this comment.
Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)
crates/blockifier/src/blockifier/transaction_executor.rs line 119 at r1 (raw file):
let tx_state_changes_keys = transactional_state.get_actual_state_changes()?.state_maps.into_keys(); let state_diff = transactional_state.to_state_diff()?.state_maps.into();
Which is not the final object, right?
Code quote:
let state_diff = transactional_state.to_state_diff()?.state_maps.into();
noaov1
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avivg-starkware)
crates/blockifier/src/blockifier/transaction_executor.rs line 139 at r1 (raw file):
&mut self, txs: &[Transaction], ) -> Vec<TransactionExecutorResult<TransactionExecutionInfo>> {
Let's return the state maps also by this method (and the ones that call it)
Code quote:
Vec<TransactionExecutorResult<TransactionExecutionInfo>> {c81d582 to
2888f08
Compare
avivg-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 1 of 3 files reviewed, 1 unresolved discussion (waiting on @noaov1)
crates/blockifier/src/blockifier/transaction_executor.rs line 139 at r1 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Let's return the state maps also by this method (and the ones that call it)
Done
noaov1
left a comment
There was a problem hiding this comment.
Reviewed 1 of 2 files at r2, all commit messages.
Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @avivg-starkware)
crates/blockifier/src/blockifier/transaction_executor.rs line 106 at r2 (raw file):
&mut self, tx: &Transaction, ) -> TransactionExecutorResult<TransactionExecutionOutput> {
What is TransactionExecutionOutput?
Code quote:
TransactionExecutorResult<TransactionExecutionOutput> {crates/blockifier/src/blockifier/transaction_executor.rs line 237 at r2 (raw file):
&mut self, txs: &[Transaction], ) -> Vec<TransactionExecutorResult<TransactionExecutionInfo>> {
Let's return the state diffs from this method as well
Code quote:
pub fn execute_txs_sequentially(
&mut self,
txs: &[Transaction],
) -> Vec<TransactionExecutorResult<TransactionExecutionInfo>> {
noaov1
left a comment
There was a problem hiding this comment.
Reviewed 1 of 2 files at r2.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avivg-starkware)
cf3715f to
ff7bbf6
Compare
0a92285 to
36d662e
Compare
avivg-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on @noaov1)
crates/blockifier/src/blockifier/transaction_executor.rs line 106 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
What is
TransactionExecutionOutput?
sorry it was missing. should appear now
Code snippet:
pub type TransactionExecutionOutput = (TransactionExecutionInfo, StateMaps);crates/blockifier/src/blockifier/transaction_executor.rs line 237 at r2 (raw file):
Previously, noaov1 (Noa Oved) wrote…
Let's return the state diffs from this method as well
Done.
36d662e to
e0d6c5b
Compare
e0d6c5b to
42d8447
Compare
|
in the next PR |
Yoni-Starkware
left a comment
There was a problem hiding this comment.
Reviewed 1 of 3 files at r1, all commit messages.
Reviewable status: 2 of 3 files reviewed, 4 unresolved discussions (waiting on @avivg-starkware and @noaov1)
crates/blockifier/src/blockifier/transaction_executor.rs line 121 at r4 (raw file):
let tx_state_changes_keys = transactional_state.get_actual_state_changes()?.state_maps.into_keys(); let state_diff = transactional_state.to_state_diff()?.state_maps;
You're doing the same work twice: swap order and replace into_keys with keys
Code quote:
let tx_state_changes_keys =
transactional_state.get_actual_state_changes()?.state_maps.into_keys();
let state_diff = transactional_state.to_state_diff()?.state_maps;42d8447 to
69a927b
Compare
change privacy pub fn to fn
69a927b to
b445c22
Compare
Yoni-Starkware
left a comment
There was a problem hiding this comment.
Reviewed 2 of 2 files at r5, 1 of 1 files at r6, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @avivg-starkware and @noaov1)
avivg-starkware
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @noaov1 and @Yoni-Starkware)
crates/blockifier/src/blockifier/transaction_executor.rs line 121 at r4 (raw file):
Previously, Yoni-Starkware (Yoni) wrote…
You're doing the same work twice: swap order and replace
into_keyswithkeys
I created an appropriate fn keys() WDYT? I'm indecisive about whether this implementation is better than just using into_keys()
noaov1
left a comment
There was a problem hiding this comment.
Reviewed 1 of 2 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Yoni-Starkware)
Yoni-Starkware
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)
avivg-starkware
left a comment
There was a problem hiding this comment.
Reviewed 1 of 3 files at r1, 2 of 2 files at r5, 1 of 1 files at r6, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @avivg-starkware)

No description provided.