Skip to content

Commit 2606924

Browse files
committed
chore: add debug logs
1 parent 9513cc3 commit 2606924

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zkvm_execution_layer/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ hashbrown = "0.15"
1010
serde = { version = "1.0", features = ["derive"] }
1111
tokio = { version = "1", features = ["full"] }
1212
thiserror = "2"
13+
tracing = { workspace = true }
1314
types = { path = "../consensus/types" }
1415
execution_layer = { path = "../beacon_node/execution_layer" }
1516

zkvm_execution_layer/src/dummy_proof_gen.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::proof_generation::{ProofGenerationError, ProofGenerationResult, Proof
22
use async_trait::async_trait;
33
use std::time::Duration;
44
use tokio::time::sleep;
5+
use tracing::debug;
56
use types::{ExecutionBlockHash, ExecutionProof, ExecutionProofId, Hash256, Slot};
67

78
/// Dummy proof generator for testing
@@ -39,6 +40,11 @@ impl ProofGenerator for DummyProofGenerator {
3940
payload_hash: &ExecutionBlockHash,
4041
block_root: &Hash256,
4142
) -> ProofGenerationResult<ExecutionProof> {
43+
debug!(
44+
"[Ethproofs] DummyProofGenerator::generate called for proof_id={}, slot={}, block_hash={}",
45+
self.proof_id, slot, payload_hash
46+
);
47+
4248
// Simulate proof generation work
4349
if !self.generation_delay.is_zero() {
4450
sleep(self.generation_delay).await;

zkvm_execution_layer/src/dummy_proof_verifier.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::proof_verification::{ProofVerificationResult, ProofVerifier, VerificationError};
22
use std::time::Duration;
3+
use tracing::debug;
34
use types::{ExecutionProof, ExecutionProofId};
45

56
/// Dummy proof verifier for testing
@@ -31,6 +32,11 @@ impl DummyVerifier {
3132

3233
impl ProofVerifier for DummyVerifier {
3334
fn verify(&self, proof: &ExecutionProof) -> ProofVerificationResult<bool> {
35+
debug!(
36+
"[Ethproofs] DummyVerifier::verify called for proof_id={}, block_hash={}",
37+
proof.proof_id, proof.block_hash
38+
);
39+
3440
// Check that the proof is for the correct subnet
3541
if proof.proof_id != self.proof_id {
3642
return Err(VerificationError::UnsupportedProofID(proof.proof_id));

0 commit comments

Comments
 (0)