Skip to content

feat(core): thread the lock target gas limit into validatorapi #533

Description

@emlautarom1-agent

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrustPull requests that update rust codetrack:validator-apiDev B — validator API + tracker

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions