Skip to content

Commit

Permalink
fix(ccc): revert light mode (#524)
Browse files Browse the repository at this point in the history
* Revert "feat: use light_mode = false for block ccc (#519)"

This reverts commit a51434d.

* bump version
  • Loading branch information
Thegaram authored Sep 27, 2023
1 parent a51434d commit abcf48f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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 = 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
)

Expand Down
7 changes: 3 additions & 4 deletions rollup/circuitcapacitychecker/libzkp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,17 +160,16 @@ pub mod checker {
let traces = serde_json::from_slice::<BlockTrace>(&block_trace)?;

let r = panic::catch_unwind(|| {
let ccc_instance = CHECKERS
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"
))?;
ccc_instance.light_mode = false;
ccc_instance.estimate_circuit_capacity(&[traces])
))?
.estimate_circuit_capacity(&[traces])
});
match r {
Ok(result) => result,
Expand Down

0 comments on commit abcf48f

Please sign in to comment.