You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop incidental churn from the heartbeat change
A pass over the branch diff for changes not required by the heartbeat work.
All are behavior-preserving; the point is to shrink what a reviewer reads.
- `build_block` keeps main's positional signature. The `BlockTarget` parameter
object wrapped five existing arguments in order to add one, so
`heartbeat_committee_size` moves to `ProposerConfig` instead, which every call
site already builds. It is read once at startup: the persisted value is
authoritative from first boot and cannot change at runtime.
- `SlotInterval::HeadUpdate` reverts to `EndOfSlot`, which was also colliding
with the pre-existing `store::HeadUpdate` struct.
- `lean_fast_head_slot` is gone. It was set from the same expression as
`lean_head_slot` two lines above, so it carried no information of its own;
`lean_lagging_head_slot` stays.
- `lagging_head` drops off the fork-choice RPC response and the Hive driver
snapshot, and `RLMD_LOOKBACK_LIMIT` off `/config/spec`; nothing read them.
`HEARTBEAT_COMMITTEE_SIZE` stays, being the cross-client agreement check.
- The `DEFAULT_`/`MAX_HEARTBEAT_COMMITTEE_SIZE` re-export from
`ethlambda-state-transition` is gone. `MAX_` was never reached through it and
`DEFAULT_` only by two tests, both in crates already depending on
`ethlambda-types`.
- Dead `seed_covered` parameter on `select_fold_children`, whose sole caller
passed an empty set.
- An `on_stopped` doc comment reflowed to identical text, a stray blank line,
and a `try_finalize` test covering logic this branch does not touch.
`JobSource` stays despite looking like more of the same: it is the only thing
routing prover time into `lean_heartbeat_fold_time_seconds`, the metric that
says whether a chosen `K` still fits inside its interval.
0 commit comments