refactor(ccc): log ccc error in Rust (#422)

log ccc error in Rust
This commit is contained in:
Péter Garamvölgyi 2023-08-02 07:22:43 +02:00 committed by GitHub
parent 96d12015e1
commit dbdc463006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -24,7 +24,7 @@ import (
const ( const (
VersionMajor = 4 // Major version component of the current release VersionMajor = 4 // Major version component of the current release
VersionMinor = 3 // Minor 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 VersionMeta = "sepolia" // Version metadata to append to the version string
) )

View file

@ -79,10 +79,10 @@ pub mod checker {
) )
}) })
.estimate_circuit_capacity(&[traces.clone()]) .estimate_circuit_capacity(&[traces.clone()])
.unwrap_or_else(|_| { .unwrap_or_else(|e| {
panic!( panic!(
"id: {:?}, fail to estimate_circuit_capacity in apply_tx, block_hash: {:?}, 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 id, traces.header.hash, traces.transactions[0].tx_hash, e
) )
}) })
}); });
@ -126,10 +126,10 @@ pub mod checker {
) )
}) })
.estimate_circuit_capacity(&[traces.clone()]) .estimate_circuit_capacity(&[traces.clone()])
.unwrap_or_else(|_| { .unwrap_or_else(|e| {
panic!( panic!(
"id: {:?}, fail to estimate_circuit_capacity in apply_block, block_hash: {:?}", "id: {:?}, fail to estimate_circuit_capacity in apply_block, block_hash: {:?}, error: {:?}",
id, traces.header.hash id, traces.header.hash, e
) )
}) })
}); });