Commit Graph

1732 Commits

Author SHA1 Message Date
Eitan Seri- Levi
bf18f8a756 boiler plate: 2026-03-03 22:21:58 -08:00
Eitan Seri- Levi
e8d83ef57f Remove dumb artificial delay 2026-03-03 20:22:30 -08:00
Eitan Seri- Levi
16e7bb5f1d Merge branch 'gloas-serve-envelope-rpc' into epbs-devnet-0 2026-03-03 20:11:41 -08:00
Eitan Seri- Levi
63d4ae2800 attestataion data index 2026-03-03 20:11:35 -08:00
Eitan Seri- Levi
8378f7d294 Fixes based on feedback 2026-03-03 18:32:57 -08:00
Eitan Seri- Levi
ff0c05ecf8 Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-serve-envelope-rpc 2026-03-02 23:28:45 -08:00
Eitan Seri- Levi
c0ee0d54fe merge 2026-03-02 13:05:13 -08:00
Eitan Seri- Levi
a937802dc3 dont make pub 2026-03-02 12:31:31 -08:00
Eitan Seri-Levi
9a8bedf76d Update beacon_node/beacon_chain/src/metrics.rs
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
2026-03-03 05:27:24 +09:00
Michael Sproul
6194dddc5b Persist custody context more readily (#8921)
We received a bug report of a node restarting custody backfill unnecessarily after upgrading to Lighthouse v8.1.1. What happened is:

- User started LH v8.0.1 many months ago, CGC updated 0 -> N but the CGC was not eagerly persisted.
- LH experienced an unclean shutdown (not sure of what type).
- Upon restarting (still running v8.0.1), the custody context read from disk contains CGC=0: `DEBUG Loaded persisted custody context   custody_context: CustodyContext { validator_custody_count: 0, ...`).
- CGC updates again to N, retriggering custody backfill: `DEBUG Validator count at head updated   old_count: 0, new_count: N`.
- Custody backfill does a bunch of downloading for no gain: `DEBUG Imported historical data columns   epoch: Epoch(428433), total_imported: 0`
- While custody backfill is running user updated to v8.1.1, and we see logs for the CGC=N being peristed upon clean shutdown, and then correctly read on startup with v8.1.1.
- Custody backfill keeps running and downloading due to the CGC change still being considered in progress.


  - Call `persist_custody_context` inside the `register_validators` handler so that it is written to disk eagerly whenever it changes. The performance impact of this should be minimal as the amount of data is very small and this call can only happen at most ~128 times (once for each change) in the entire life of a beacon node.
- Call `persist_custody_context` inside `BeaconChainBuilder::build` so that changes caused by CLI flags are persisted (otherwise starting a node with `--semi-supernode` and no validators, then shutting it down uncleanly would cause use to forget the CGC).

These changes greatly reduce the timespan during which an unclean shutdown can create inconsistency. In the worst case, we only lose backfill progress that runs concurrently with the `register_validators` handler (should be extremely minimal, nigh impossible).


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-03-02 06:43:51 +00:00
Eitan Seri-Levi
51270540a1 Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-serve-envelope-rpc 2026-02-27 11:55:27 -08:00
Eitan Seri- Levi
c48594fe18 YAY 2026-02-26 18:19:19 -08:00
Eitan Seri- Levi
8dbab49286 Resolve merge conflicts 2026-02-26 13:19:00 -08:00
Michael Sproul
30f8cab182 Fixes to test relying on cold DB 2026-02-26 21:38:57 +11:00
Eitan Seri- Levi
76109327bc address changes 2026-02-25 23:45:42 -08:00
Michael Sproul
e44f37895d Simplify diff strat and expand tests (they mostly pass!) 2026-02-26 17:15:32 +11:00
Eitan Seri- Levi
afbba87a64 Fix comments 2026-02-25 22:04:35 -08:00
Michael Sproul
edf77a5298 Small fixes relating to genesis 2026-02-26 10:20:47 +11:00
Eitan Seri- Levi
ffb6f296bd temp 2026-02-25 14:56:30 -08:00
Eitan Seri- Levi
d370461dab Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-payload-processing 2026-02-25 09:06:07 -08:00
Eitan Seri- Levi
12eddb561c fix new payload notifier 2026-02-24 22:49:57 -08:00
Michael Sproul
adfa3b882d First Gloas test passes! 2026-02-25 17:09:32 +11:00
Michael Sproul
59a2b6dead Fix state for block production 2026-02-25 16:02:15 +11:00
Michael Sproul
57527e5094 Fix load_parent 2026-02-25 14:26:21 +11:00
Lion - dapplion
d6bf53834f Remove merge transition code (#8761)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
2026-02-25 03:20:28 +00:00
Michael Sproul
984f0d70e0 Make state cache payload status aware 2026-02-25 13:21:48 +11:00
Michael Sproul
a09839df1f Merge remote-tracking branch 'eitan/gloas-payload-processing' into gloas-replay-blocks 2026-02-25 12:05:30 +11:00
Michael Sproul
f4b7f8f02d Fixed signed envelopes etc 2026-02-25 10:53:41 +11:00
Michael Sproul
fe240ba892 Start updating the test harness (Claude) 2026-02-25 10:15:54 +11:00
Jimmy Chen
e59f1f03ef Add debug spans to DB write paths (#8895)
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
2026-02-24 20:53:33 +00:00
Eitan Seri- Levi
38ef0d07e5 Update TODO 2026-02-24 12:17:12 -08:00
Eitan Seri- Levi
0761da770d Clean up comments 2026-02-24 12:15:52 -08:00
Eitan Seri- Levi
876e6899cd Some more TODOs 2026-02-24 12:14:30 -08:00
Eitan Seri- Levi
2093dc1f39 move execution pending envelolpe logic to its own file 2026-02-24 12:08:07 -08:00
Eitan Seri- Levi
30241f54c4 add load_snapshot_from_state_root that can be used when we've already aquired a 2026-02-24 11:35:01 -08:00
Eitan Seri- Levi
fc7d6c9d24 Add an additional defensive expected proposer check 2026-02-24 11:20:07 -08:00
Eitan Seri- Levi
147f2e22e0 use cached head and drop fork choice read lock earlier 2026-02-24 10:59:03 -08:00
Eitan Seri- Levi
6e89ba63be Added slot to logs 2026-02-24 10:51:09 -08:00
Eitan Seri- Levi
1d3b5776a4 Merge branch 'unstable' of https://github.com/sigp/lighthouse into gloas-payload-processing 2026-02-24 10:47:12 -08:00
Eitan Seri- Levi
8ce81578b7 introduce a smalll refactor and unit test 2026-02-24 10:46:46 -08:00
Eitan Seri- Levi
e966428ef0 fix spelling issues 2026-02-24 01:03:07 -08:00
Eitan Seri- Levi
ffc2b97699 Serve rpc by range and by root: 2026-02-24 00:55:29 -08:00
Michael Sproul
e2b3971cbd Add StatePayloadStatus to storage_strategy 2026-02-24 17:48:28 +11:00
Michael Sproul
886d31fe7e Delete dysfunctional fork_revert feature (#8891)
I found myself having to update this code for Gloas, and figured we may as well delete it seeing as it doesn't work.

See:

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


  Delete all `fork_revert` logic and the accompanying test.


Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
2026-02-24 06:27:16 +00:00
Michael Sproul
c22dde11f8 Merge remote-tracking branch 'michael/delete-fork-revert' into gloas-replay-blocks 2026-02-24 15:35:14 +11:00
Michael Sproul
295aaf982c Thread more payload status 2026-02-24 15:33:43 +11:00
Michael Sproul
adc0498057 Delete fork_revert feature 2026-02-24 15:23:54 +11:00
Eitan Seri- Levi
d12bb4d712 Trying something out 2026-02-23 12:06:15 -08:00
Michael Sproul
9bdf44c76c Merge branch 'unstable' into gloas-replay-blocks 2026-02-23 17:29:13 +11:00
Eitan Seri-Levi
dcc43e3d20 Implement gloas block gossip verification changes (#8878)
Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>

Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com>

Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com>
2026-02-23 06:17:24 +00:00