Skip to content
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

Reduce log spam #360

Merged
merged 6 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/bin/prove_block/src/rpc_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn verify_storage_proof(contract_data: &ContractData, keys: &[Felt]) -> Vec<Felt
ProofVerificationError::KeyNotInProof { key, height, proof } => {
if let Some(TrieNode::Edge { child: _, path }) = proof.last() {
let modified_key = get_key_following_edge(key, height, path);
log::debug!(
log::trace!(
"Fetching modified key {} for key {}",
modified_key.to_hex_string(),
key.to_hex_string()
Expand Down
3 changes: 0 additions & 3 deletions crates/bin/prove_block/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ fn get_accessed_storage_keys(call_info: &CallInfo) -> HashMap<ContractAddress, H
.or_default()
.extend(call_info.accessed_storage_keys.iter().copied());

let storage_keys: Vec<_> = call_info.accessed_storage_keys.iter().map(|x| x.key().to_hex_string()).collect();
log::debug!("{}: {:?}", contract_address.to_string(), storage_keys);

for inner_call in &call_info.inner_calls {
let inner_call_storage_keys = get_accessed_storage_keys(inner_call);
for (contract_address, storage_keys) in inner_call_storage_keys {
Expand Down
Loading