@@ -4,7 +4,7 @@ use once_cell::sync::Lazy;
44use reqwest:: StatusCode ;
55use serde:: { Deserialize , Serialize } ;
66use std:: time:: { Duration , Instant } ;
7- use tracing:: { debug, info, warn } ;
7+ use tracing:: { debug, info} ;
88use types:: ExecutionProof ;
99
1010/// Trait for validating proofs
@@ -27,7 +27,7 @@ pub static VERIFICATION_KEY_STORE: Lazy<Option<VerificationKeyStore>> =
2727 Lazy :: new ( || match VerificationKeyStore :: load_embedded ( ) {
2828 Ok ( store) => Some ( store) ,
2929 Err ( e) => {
30- warn ! ( error = %e, "[Ethproofs] Failed to load verification keys" ) ;
30+ debug ! ( error = %e, "[Ethproofs] Failed to load verification keys" ) ;
3131 None
3232 }
3333 } ) ;
@@ -178,7 +178,7 @@ pub async fn download_proof_binary(proof_id: u64) -> Result<Vec<u8>, String> {
178178pub fn validate_proof ( proof : & ExecutionProof ) -> bool {
179179 // Fallback proofs (proof_id 0) are accepted without verification
180180 if proof. proof_id . as_u8 ( ) == 0 {
181- warn ! (
181+ debug ! (
182182 slot = %proof. slot,
183183 block_hash = %proof. block_hash,
184184 "[Ethproofs] Fallback proof accepted"
@@ -190,7 +190,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
190190 let prover_uuid = match VERIFIER_STORE . get_prover_uuid_for_proof_id ( proof. proof_id ) {
191191 Some ( uuid) => uuid,
192192 None => {
193- warn ! (
193+ debug ! (
194194 proof_id = %proof. proof_id,
195195 "[Ethproofs] No prover UUID mapping found for this proof_id"
196196 ) ;
@@ -216,8 +216,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
216216 Some ( verifier_entry) => {
217217 info ! (
218218 "[Ethproofs] Verification started: verifier={} slot={}" ,
219- verifier_entry. name,
220- proof. slot
219+ verifier_entry. name, proof. slot
221220 ) ;
222221
223222 // Run the actual cryptographic verification
@@ -232,7 +231,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
232231 result
233232 }
234233 Err ( e) => {
235- warn ! (
234+ debug ! (
236235 slot = %proof. slot,
237236 block_hash = %proof. block_hash,
238237 verifier = verifier_entry. name,
@@ -244,7 +243,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
244243 }
245244 }
246245 None => {
247- warn ! (
246+ debug ! (
248247 slot = %proof. slot,
249248 block_hash = %proof. block_hash,
250249 prover_id = %prover_uuid,
@@ -255,7 +254,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
255254 }
256255 }
257256 None => {
258- warn ! (
257+ debug ! (
259258 slot = %proof. slot,
260259 block_hash = %proof. block_hash,
261260 prover_id = %prover_uuid,
@@ -266,7 +265,7 @@ pub fn validate_proof(proof: &ExecutionProof) -> bool {
266265 }
267266 }
268267 None => {
269- warn ! ( "[Ethproofs] Verification key store not initialized" ) ;
268+ debug ! ( "[Ethproofs] Verification key store not initialized" ) ;
270269 false
271270 }
272271 }
0 commit comments