fix(ccc): revert light mode (#524)

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

This reverts commit a51434da5a.

* bump version
This commit is contained in:
Péter Garamvölgyi 2023-09-27 16:03:37 +02:00 committed by GitHub
parent a51434da5a
commit abcf48f20c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 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 = 4 // Minor version component of the current release VersionMinor = 4 // 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 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 traces = serde_json::from_slice::<BlockTrace>(&block_trace)?;
let r = panic::catch_unwind(|| { let r = panic::catch_unwind(|| {
let ccc_instance = CHECKERS CHECKERS
.get_mut() .get_mut()
.ok_or(anyhow!( .ok_or(anyhow!(
"fail to get circuit capacity checkers map in apply_block" "fail to get circuit capacity checkers map in apply_block"
@ -168,9 +168,8 @@ pub mod checker {
.get_mut(&id) .get_mut(&id)
.ok_or(anyhow!( .ok_or(anyhow!(
"fail to get circuit capacity checker (id: {id:?}) in apply_block" "fail to get circuit capacity checker (id: {id:?}) in apply_block"
))?; ))?
ccc_instance.light_mode = false; .estimate_circuit_capacity(&[traces])
ccc_instance.estimate_circuit_capacity(&[traces])
}); });
match r { match r {
Ok(result) => result, Ok(result) => result,