From dbdc463006bd7bafd4ca3e7ecade3a8d87daf109 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Garamv=C3=B6lgyi?= Date: Wed, 2 Aug 2023 07:22:43 +0200 Subject: [PATCH] refactor(ccc): log ccc error in Rust (#422) log ccc error in Rust --- params/version.go | 2 +- rollup/circuitcapacitychecker/libzkp/src/lib.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/params/version.go b/params/version.go index debbdf5aab..a92ae99612 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 4 // Major version component of the current release VersionMinor = 3 // Minor version component of the current release - VersionPatch = 5 // Patch version component of the current release + VersionPatch = 6 // Patch version component of the current release VersionMeta = "sepolia" // Version metadata to append to the version string ) diff --git a/rollup/circuitcapacitychecker/libzkp/src/lib.rs b/rollup/circuitcapacitychecker/libzkp/src/lib.rs index 67b55e78f9..4ce5943c16 100644 --- a/rollup/circuitcapacitychecker/libzkp/src/lib.rs +++ b/rollup/circuitcapacitychecker/libzkp/src/lib.rs @@ -79,10 +79,10 @@ pub mod checker { ) }) .estimate_circuit_capacity(&[traces.clone()]) - .unwrap_or_else(|_| { + .unwrap_or_else(|e| { panic!( - "id: {:?}, fail to estimate_circuit_capacity in apply_tx, block_hash: {:?}, tx_hash: {:?}", - id, traces.header.hash, traces.transactions[0].tx_hash + "id: {:?}, fail to estimate_circuit_capacity in apply_tx, block_hash: {:?}, tx_hash: {:?}, error: {:?}", + id, traces.header.hash, traces.transactions[0].tx_hash, e ) }) }); @@ -126,10 +126,10 @@ pub mod checker { ) }) .estimate_circuit_capacity(&[traces.clone()]) - .unwrap_or_else(|_| { + .unwrap_or_else(|e| { panic!( - "id: {:?}, fail to estimate_circuit_capacity in apply_block, block_hash: {:?}", - id, traces.header.hash + "id: {:?}, fail to estimate_circuit_capacity in apply_block, block_hash: {:?}, error: {:?}", + id, traces.header.hash, e ) }) });