starknet_committer: fetch patricia paths concurrently#14283
Conversation
9c26b8a to
a4fcb4e
Compare
5bf8dad to
2aae8b5
Compare
PR SummaryMedium Risk Overview
Reviewed by Cursor Bugbot for commit da2c6d9. Bugbot is set up for automated code reviews on this repo. Configure here. |
2aae8b5 to
98f02f2
Compare
a4fcb4e to
2cabcf1
Compare
98f02f2 to
a0bcaf0
Compare
98cfa3b to
f629d46
Compare
a0bcaf0 to
9d1f3ef
Compare
f629d46 to
6475f21
Compare
9d1f3ef to
43195e6
Compare
6475f21 to
7b965ad
Compare
43195e6 to
2feeb16
Compare
693fb7e to
135a50b
Compare
d2b2be9 to
b1d7747
Compare
135a50b to
738a1da
Compare
yoavGrs
left a comment
There was a problem hiding this comment.
@yoavGrs reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
738a1da to
8c279e8
Compare
b1d7747 to
101a813
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ArielElp).
crates/starknet_committer/src/patricia_merkle_tree/tree.rs line 255 at r2 (raw file):
contracts_trie_storage_proofs, } }
non-blocking, but seems like this would look better as StarknetForestProofs::build(..). this is just a data conversion method so not important
Code quote:
fn build_starknet_forest_proofs<Layout>(
classes_trie_proof: PreimageMap,
contracts_proof_nodes: PreimageMap,
contract_leaves: HashMap<NodeIndex, Layout::ContractStateDbLeaf>,
contracts_trie_storage_proofs: HashMap<ContractAddress, PreimageMap>,
) -> StarknetForestProofs
where
Layout: DbLayout,
Layout::ContractStateDbLeaf: Into<ContractState>,
{
// Convert contract_leaves_data keys from NodeIndex to ContractAddress.
let contract_leaves_data: HashMap<ContractAddress, ContractState> = contract_leaves
.into_iter()
.map(|(idx, contract_state_leaf)| {
(
try_node_index_into_contract_address(&idx).unwrap_or_else(|_| {
panic!(
"Converting leaf NodeIndex to ContractAddress should succeed; failed to \
convert {idx:?}."
)
}),
contract_state_leaf.into(),
)
})
.collect();
StarknetForestProofs {
classes_trie_proof,
contracts_trie_proof: ContractsTrieProof {
nodes: contracts_proof_nodes,
leaves: contract_leaves_data,
},
contracts_trie_storage_proofs,
}
}101a813 to
376f97c
Compare
8c279e8 to
aa41958
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ArielElp).
aa41958 to
72fa99e
Compare
376f97c to
8f1abbf
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on ArielElp).
|
@dorimedini-starkware Good call — moved the conversion logic to |
ArielElp
left a comment
There was a problem hiding this comment.
@ArielElp made 1 comment and resolved 1 discussion.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
crates/starknet_committer/src/patricia_merkle_tree/tree.rs line 255 at r2 (raw file):
Previously, dorimedini-starkware wrote…
non-blocking, but seems like this would look better as
StarknetForestProofs::build(..). this is just a data conversion method so not important
Done
72fa99e to
5cd04c2
Compare
8f1abbf to
3cbe5fb
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 3 files and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).
3cbe5fb to
39fe75d
Compare
5cd04c2 to
da2c6d9
Compare
dorimedini-starkware
left a comment
There was a problem hiding this comment.
@dorimedini-starkware reviewed 1 file and all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on ArielElp).

No description provided.