diff --git a/params/version.go b/params/version.go index 422814de0c..63d0e4c73f 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 = 12 // Patch version component of the current release + VersionPatch = 13 // 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 4ce5943c16..3e3412298e 100644 --- a/rollup/circuitcapacitychecker/libzkp/src/lib.rs +++ b/rollup/circuitcapacitychecker/libzkp/src/lib.rs @@ -60,6 +60,10 @@ pub mod checker { pub unsafe extern "C" fn apply_tx(id: u64, tx_traces: *const c_char) -> *const c_char { let result = panic::catch_unwind(|| { let tx_traces_vec = c_char_to_vec(tx_traces); + + let traces_str = String::from_utf8(tx_traces_vec).expect("cannot decode trace as UTF-8 in apply_tx"); + log::debug!("ccc apply_tx raw input, id: {:?}, tx_traces: {:?}", id, traces_str); + let traces = serde_json::from_slice::(&tx_traces_vec) .unwrap_or_else(|_| panic!("id: {id:?}, fail to deserialize tx_traces")); if traces.transactions.len() != 1 { @@ -114,6 +118,10 @@ pub mod checker { pub unsafe extern "C" fn apply_block(id: u64, block_trace: *const c_char) -> *const c_char { let result = panic::catch_unwind(|| { let block_trace = c_char_to_vec(block_trace); + + let traces_str = String::from_utf8(block_trace).expect("cannot decode trace as UTF-8 in apply_block"); + log::debug!("ccc apply_block raw input, id: {:?}, block_trace: {:?}", id, traces_str); + let traces = serde_json::from_slice::(&block_trace) .unwrap_or_else(|_| panic!("id: {id:?}, fail to deserialize block_trace")); CHECKERS