Part of #402 — follow-up to the app-wiring PR.
Scope
Add a target-gas-limit parameter to validatorapi::Component::new (crates/core/src/validatorapi/component.rs) and pass lock.target_gas_limit from the app wiring. Note Charon passes the lock value at app/app.go:563 (uint(cluster.GetTargetGasLimit())); conf.TargetGasLimit is unused there and cmd/run.go binds no --target-gas-limit flag — so there is no config fallback to implement (the app-wiring PR removed the corresponding dead AppConfig field for exactly this reason).
The value is consumed only on the builder-registration path, so this is low urgency until the builder API matters — but it keeps validatorapi from silently using a default gas limit in builder-API clusters.
Dependencies
None (touches pluto-core; coordinate with validator-API work).
Acceptance
Component::new receives and stores the lock's target gas limit; the builder-registration path uses it.
- The placeholder
let _ = lock.target_gas_limit; in crates/app/src/node/mod.rs is replaced by the real pass-through.
Part of #402 — follow-up to the app-wiring PR.
Scope
Add a target-gas-limit parameter to
validatorapi::Component::new(crates/core/src/validatorapi/component.rs) and passlock.target_gas_limitfrom the app wiring. Note Charon passes the lock value atapp/app.go:563(uint(cluster.GetTargetGasLimit()));conf.TargetGasLimitis unused there andcmd/run.gobinds no--target-gas-limitflag — so there is no config fallback to implement (the app-wiring PR removed the corresponding deadAppConfigfield for exactly this reason).The value is consumed only on the builder-registration path, so this is low urgency until the builder API matters — but it keeps
validatorapifrom silently using a default gas limit in builder-API clusters.Dependencies
None (touches
pluto-core; coordinate with validator-API work).Acceptance
Component::newreceives and stores the lock's target gas limit; the builder-registration path uses it.let _ = lock.target_gas_limit;incrates/app/src/node/mod.rsis replaced by the real pass-through.