Commit Graph

958 Commits

Author SHA1 Message Date
Michael Sproul
a1296fc0c7 Fix block_timeliness_ptc_threshold hardcoded constants 2026-04-02 16:38:40 +11:00
Michael Sproul
f5413c6e97 Remove useless let _ 2026-04-02 15:42:57 +11:00
Michael Sproul
6df55970aa Simplify find_head_walk 2026-04-02 14:24:37 +11:00
Michael Sproul
eceedaf7b6 Revert parent->child optimisation AGAIN 2026-04-02 14:10:27 +11:00
Michael Sproul
7570fd1555 Remove comment 2026-04-02 14:10:11 +11:00
Michael Sproul
5284486af0 Break out of invalidation loop on Gloas block 2026-04-02 13:55:29 +11:00
Michael Sproul
85934b4d5f Remove some noisy TODOs 2026-04-02 13:52:21 +11:00
Michael Sproul
6cc65848da Remove dead code 2026-04-02 13:35:51 +11:00
Michael Sproul
d7f67dae21 Remove incorrect comment 2026-04-02 13:27:43 +11:00
Michael Sproul
727535bcc9 Remove spurious payload attestation condition 2026-04-02 11:50:16 +11:00
Michael Sproul
cc7e727f90 Tidy latest_message 2026-04-02 11:46:34 +11:00
Michael Sproul
bc7864b076 Split out InvalidPayloadAttestation error 2026-04-02 11:44:02 +11:00
Michael Sproul
69d7250971 Tidy up payload attestation verification 2026-04-02 11:27:55 +11:00
Michael Sproul
958c8cad39 Rename fork choice test def for clarity 2026-04-02 11:05:33 +11:00
Michael Sproul
1c5a7bed74 Clarify name of on_valid_payload_envelope_received 2026-04-02 10:56:34 +11:00
Michael Sproul
5aae563d84 Remove proposer boost weight during upgrade 2026-04-01 17:59:45 +11:00
Michael Sproul
f5b2445d09 Remove stupid GLOAS comments 2026-04-01 16:46:02 +11:00
Michael Sproul
ddff03d26f Store parent_payload_hash in ProtoNode 2026-04-01 16:42:49 +11:00
Michael Sproul
3cf19e724f Fix Gloas check in on_block 2026-04-01 15:47:10 +11:00
Michael Sproul
ab023a7231 Fix the VoteTrackerV28 definition 2026-04-01 14:54:18 +11:00
Michael Sproul
4e44cec249 Fix markdown lint 2026-04-01 13:45:19 +11:00
Michael Sproul
edae39cc29 Fix fork transition case 2026-04-01 13:29:48 +11:00
Michael Sproul
afb1f0ae2d Fix VoteTracker decoding 2026-04-01 12:50:55 +11:00
Michael Sproul
9ef73d0af0 Add new cross-boundary test 2026-04-01 12:25:22 +11:00
Michael Sproul
ad0f3cf89b Use None for post-Gloas payload hashes pre-Gloas 2026-04-01 12:10:11 +11:00
Michael Sproul
f6f9eae4ef More cleanup 2026-04-01 12:04:32 +11:00
Michael Sproul
51e78fd157 Fix queued attestation decoding from disk 2026-04-01 11:51:03 +11:00
Michael Sproul
4684d972e0 Remove TOCTOU early return 2026-04-01 11:31:51 +11:00
Michael Sproul
bc6cf0f882 Remove payload attestation queueing and more cleanups 2026-04-01 11:17:33 +11:00
Michael Sproul
1ee2ce4258 Fix schema migrations 2026-04-01 10:38:03 +11:00
dapplion
993cecee83 Clear best_child/best_descendant during V28->V29 conversion 2026-03-31 15:22:31 -05:00
Eitan Seri-Levi
e1cabb8d67 Merge branch 'unstable' into gloas-walk-always 2026-04-01 02:24:42 +09:00
Michael Sproul
cd60ea80bb Update to spec v1.7.0-alpha.4 (#9046)
Update our consensus code to v1.7.0-alpha.4


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-31 10:42:51 -05:00
Michael Sproul
a1534bbfb3 Check ChainSpec consistency with upstream config.yaml (#9008)
Closes:

- https://github.com/sigp/lighthouse/issues/9002


  - Commit `config.yaml` for minimal and mainnet to `consensus/types/configs`. For now we omit any auto-downloading logic, to avoid the hassles of dealing with Github rate limits etc on CI. Unfortunately these files are NOT bundled inside the spec tests.
- Fix the values of `min_builder_withdrawability_delay` for minimal and mainnet. These discrepancies aren't caught by the current spec tests, because the spec tests are missing data: https://github.com/ethereum/consensus-specs/pull/5005. Will be fixed in the next release/when we update to nightly.
- Fix the blob schedule for `minimal`, which should be empty, NOT inherited from mainnet.
- Keep `SECONDS_PER_SLOT` for now because the Kurtosis tests fail upon their complete removal. We will be able to completely remove `SECONDS_PER_SLOT` soon.


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-31 10:42:51 -05:00
Daniel Knopik
37a948cf32 Never use MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS for networks that started with Fulu enabled (#8731)
Lighthouse uses `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` for blob **and column retention** instead of `MIN_EPOCHS_FOR_DATA_COLUMN_SIDECARS_REQUESTS` if Fulu activated less than `MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS` epochs ago - also if Fulu activated at genesis. This causes unexpected behaviour, as there are no blob sidecars to be stored or requested in such networks.


  ~~Add a special case to avoid that logic in post-Fulu genesis networks (`fulu_fork_epoch == 0`)~~

If the blob retention period would start in the fulu fork epoch, use the `min_epochs_for_data_column_sidecars_requests`, as there are no blobs to retain in Fulu.


Co-Authored-By: Daniel Knopik <daniel@dknopik.de>
2026-03-31 11:54:10 +00:00
Michael Sproul
d92efc1e0f Update to spec v1.7.0-alpha.4 (#9046)
Update our consensus code to v1.7.0-alpha.4


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-31 05:59:36 +00:00
dapplion
5353710e0a Fix compilation, clear best_child/best_descendant in migration
- Fix leaf detection in heads_descended_from_finalization (parent()
  method call, map away enumerate index)
- Clear best_child and best_descendant in v28->v29 migration (no
  longer used, replaced by virtual tree walk)
- Migration now rewrites fork choice data instead of being a no-op
2026-03-31 00:51:19 -05:00
Michael Sproul
b6728c2030 Start removing more best_child/best_descend 2026-03-31 16:02:19 +11:00
Michael Sproul
517d16f2fd Revert parent->child optimisation 2026-03-31 15:47:50 +11:00
Michael Sproul
991dc92d8f Check ChainSpec consistency with upstream config.yaml (#9008)
Closes:

- https://github.com/sigp/lighthouse/issues/9002


  - Commit `config.yaml` for minimal and mainnet to `consensus/types/configs`. For now we omit any auto-downloading logic, to avoid the hassles of dealing with Github rate limits etc on CI. Unfortunately these files are NOT bundled inside the spec tests.
- Fix the values of `min_builder_withdrawability_delay` for minimal and mainnet. These discrepancies aren't caught by the current spec tests, because the spec tests are missing data: https://github.com/ethereum/consensus-specs/pull/5005. Will be fixed in the next release/when we update to nightly.
- Fix the blob schedule for `minimal`, which should be empty, NOT inherited from mainnet.
- Keep `SECONDS_PER_SLOT` for now because the Kurtosis tests fail upon their complete removal. We will be able to completely remove `SECONDS_PER_SLOT` soon.


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-30 06:43:57 +00:00
Michael Sproul
4c3fd70dbf Merge remote-tracking branch 'origin/unstable' into gloas-walk-always 2026-03-30 16:10:35 +11:00
Mac L
a5e748f808 Use yaml_serde in place of deprecated serde_yaml (#9040)
`serde_yaml` is now deprecated. The API-compatible `yaml_serde` should be used instead.


  Replace `serde_yaml` with `yaml_serde`. This is purely mechanical as the API is 1-to-1.


Co-Authored-By: Mac L <mjladson@pm.me>
2026-03-29 18:39:20 +00:00
Michael Sproul
e1a2cfe202 Merge remote-tracking branch 'origin/stable' into unstable 2026-03-26 16:51:14 +11:00
Michael Sproul
12f5ab04f3 Load the state corresponding to head payload status yay 2026-03-26 16:03:55 +11:00
dapplion
c7670ede02 Cleanup and spec parity fixes
- Add missing payload attestation slot check: spec returns early when
  data.slot != block.slot (PTC votes only for assigned block)
- Remove dead ignored tests (need mock EL Gloas support to run)
- Remove unused new_with_gloas and inspect_queued_payload_attestations
- Remove gloas entries from bin.rs (not part of this PR)
- Collapse nested if in payload attestation error handling (clippy)
- Rename env -> envelope in load_parent
- Add TODO(gloas) for parent_head_hash in re-org path
- Remove head_payload_status from ForkchoiceUpdateParameters (lives on
  CachedHead, sourced from get_head return)
2026-03-25 23:07:45 -05:00
dapplion
e676c33c92 Merge sigp/unstable into gloas-walk-always 2026-03-25 22:02:08 -05:00
dapplion
93f987f3cf Remove head_payload_status from ForkchoiceUpdateParameters
head_payload_status is internal fork choice state, not an EL
forkchoiceUpdated parameter. It already lives on CachedHead — source
it directly from get_head() return in recompute_head_at_slot instead
of threading through ForkchoiceUpdateParameters.

Also add TODO(gloas) for parent_head_hash in re-org path (V29 nodes
don't carry execution_status).
2026-03-25 21:16:06 -05:00
Michael Sproul
bd34bb1430 Remove schema migrations for v28 and earlier (#9031)
With LH v8.1.3 supporting Fulu-on-Gnosis, we no longer need these DB migrations. All Lighthouse nodes running in prod will soon be updated to LH v8.0.0+ and schema v28+.

This PR helps with Gloas fork choice changes, by allowing us to avoid updating old schema migrations when adding V29 for Gloas:

- https://github.com/sigp/lighthouse/pull/9025


  


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-26 02:10:34 +00:00
dapplion
bc28e63585 Revert "Fix arithmetic lint in committee_cache (saturating_sub)"
This reverts commit bb3e9e12d2.
2026-03-25 20:42:18 -05:00
dapplion
bb3e9e12d2 Fix arithmetic lint in committee_cache (saturating_sub) 2026-03-25 20:38:15 -05:00