Commit Graph

3863 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
81e105d90f more fixes 2026-03-03 18:57:13 -08:00
Eitan Seri- Levi
8378f7d294 Fixes based on feedback 2026-03-03 18:32:57 -08:00
Eitan Seri- Levi
0212e84fa8 Use max request payloads 2026-03-02 23:39:24 -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
22978f4684 reprocess queue 2026-03-02 13:47:02 -08:00
Eitan Seri- Levi
3fa5ad5ff1 Merge branch 'gloas-payload-processing' into epbs-devnet-0 2026-03-02 13:30:26 -08:00
Eitan Seri- Levi
0ba4f25cc8 reprocess envelope: 2026-03-02 13:30:14 -08:00
Eitan Seri- Levi
c0ee0d54fe merge 2026-03-02 13:05:13 -08:00
Eitan Seri- Levi
73caa1d1b1 add reprocess queue 2026-03-02 13:02:56 -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
Michael Sproul
7e69f6ca1c Merge remote-tracking branch 'origin/release-v8.1' into back-merge-v8.1.1 2026-03-02 09:20:25 +11: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
Jimmy Chen
a1ef265c9e Add getBlobsV1 and getBlobsV2 support to mock EL server (#8870)
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
2026-02-25 12:17:49 +00: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
Michael Sproul
5f3faced1a Small fixes for the genesis state 2026-02-25 10:15:31 +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
45912fb810 Delete dead code 2026-02-24 01:13:35 -08:00