Skip to content

Commit

Permalink
feat: use light_mode = false for block ccc (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Sep 27, 2023
1 parent fa0be69 commit a51434d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
7 changes: 4 additions & 3 deletions rollup/circuitcapacitychecker/libzkp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,17 @@ 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"
))?
.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,
Expand Down

0 comments on commit a51434d

Please sign in to comment.