feat: use light_mode = false for block ccc (#519)

This commit is contained in:
Zhang Zhuo 2023-09-27 14:30:44 +08:00 committed by GitHub
parent fa0be69a3f
commit a51434da5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -24,7 +24,7 @@ import (
const (
VersionMajor = 4 // Major version component of the current release
VersionMinor = 4 // Minor version component of the current release
VersionPatch = 11 // Patch version component of the current release
VersionPatch = 12 // Patch version component of the current release
VersionMeta = "sepolia" // Version metadata to append to the version string
)

View file

@ -160,7 +160,7 @@ pub mod checker {
let traces = serde_json::from_slice::<BlockTrace>(&block_trace)?;
let r = panic::catch_unwind(|| {
CHECKERS
let ccc_instance = CHECKERS
.get_mut()
.ok_or(anyhow!(
"fail to get circuit capacity checkers map in apply_block"
@ -168,8 +168,9 @@ pub mod checker {
.get_mut(&id)
.ok_or(anyhow!(
"fail to get circuit capacity checker (id: {id:?}) in apply_block"
))?
.estimate_circuit_capacity(&[traces])
))?;
ccc_instance.light_mode = false;
ccc_instance.estimate_circuit_capacity(&[traces])
});
match r {
Ok(result) => result,