mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
feat: use light_mode = false for block ccc (#519)
This commit is contained in:
parent
fa0be69a3f
commit
a51434da5a
2 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue