Manu NALEPA
00cf1f2507
Implement PeerDAS sync ( #15564 )
...
* PeerDAS: Implement sync
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Satyajit's comment.
* Partially fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Add tests for `sendDataColumnSidecarsRequest`.
* Fix Satyajit's comment.
* Implement `TestSendDataColumnSidecarsRequest`.
* Implement `TestFetchDataColumnSidecarsFromPeers`.
* Implement `TestUpdateResults`.
* Implement `TestSelectPeers`.
* Implement `TestCategorizeIndices`.
* Fix James' comment.
* Fix James's comment.
* Fix James' commit.
* Fix James' comment.
* Fix James' comment.
* Fix flakiness in `TestSelectPeers`.
* Update cmd/beacon-chain/flags/config.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Fix Preston's comment.
* Fix James's comment.
* Implement `TestFetchDataColumnSidecars`.
* Revert "Fix Potuz's comment."
This reverts commit c45230b455 .
* Fix Potuz's comment.
* Revert "Fix James' comment."
This reverts commit a3f919205a .
* Fix James' comment.
* Fix Preston's comment.
* Fix James' comment.
* `selectPeers`: Avoid map with key but empty value.
* Fix typo.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix James' comment.
* Add DataColumnStorage and SubscribeAllDataSubnets flag.
* Add extra flags
* Fix Potuz's and Preston's comment.
* Add rate limiter check.
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2025-08-18 14:36:07 +00:00
Preston Van Loon
eace128ee9
Fix panic in blob cache when scs array is empty or shorter than commitments ( #15581 )
...
* Fix panic in beacon-chain/das/blob_cache.go
* Regression test for empty/short scs array panic
* Changelog fragment
2025-08-12 03:26:22 +00:00
Manu NALEPA
149e220b61
Validator custody: Update to the latest specification. ( #15532 )
...
* Validator custody: Update to the latest specfication.
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: terence <terence@prysmaticlabs.com >
* Fix James' comment.
* Fix James' comment.
* Fix James' comment.
---------
Co-authored-by: terence <terence@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-08-02 06:21:08 +00:00
Justin Traglia
04b39d1a4d
Fix some nits associated with data column sidecar verification ( #15521 )
...
* Fix some nits associated with data column sidecar verification
* Add changelog fragment
2025-07-23 20:02:32 +00:00
Justin Traglia
856742ff68
Update links to consensus-specs to point to master branch ( #15523 )
...
* Update links to consensus-specs to point to master branch
* Add changelog fragment
2025-07-23 08:32:09 +00:00
terence
16b567f6af
Add log capitalization analyzer and apply changes ( #15452 )
...
* Add log capitalization analyzer and apply fixes across codebase
Implements a new nogo analyzer to enforce proper log message capitalization and applies the fixes to all affected log statements throughout the beacon chain, validator, and supporting components.
Co-Authored-By: Claude <noreply@anthropic.com >
* Radek's feedback
---------
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-10 13:43:38 +00:00
Manu NALEPA
559d02bf4d
peerDAS: Implement dataColumnSidecarByRootRPCHandler. ( #15405 )
...
* `CreateTestVerifiedRoDataColumnSidecars`: Use consistent block root.
* peerDAS: Implement `dataColumnSidecarByRootRPCHandler`.
* Fix James' comment.
* Fix James' comment.
2025-06-19 12:12:45 +00:00
Preston Van Loon
62fec4d1f3
Replace context.Background with testing.TB.Context where possible ( #15416 )
...
* Replace context.Background with testing.TB.Context where possible
* Fix failing tests
2025-06-16 22:09:18 +00:00
Manu NALEPA
4095da8568
PeerDAS: Implement small, unrelated changes. ( #15386 )
...
* `verifyBlobCommitmentCount`: Print max allowed blob count in error message.
* `TestPersist`: Use `fieldparams.RootLength` instead of `32`.
* `TestDataColumnSidecarsByRootReq_Marshal`: Remove blank line.
* `ConvertPeerIDToNodeID`: Improve readability by using one line per field.
* `parseIndices`: Return `[]int` instead of `[]uint64`.
Rational: These indices are used in
`func (m *SparseMerkleTrie) MerkleProof(index int) ([][]byte, error)`
that requires `int` and not `uint64`.
This `MerkleProof` function is used at a lot of places in the codebase.
==> Changing the signature of `parseIndices` is simpler than changing the signature of `MerkleProof`.
2025-06-06 12:20:52 +00:00
Manu NALEPA
f1288a18ec
PeerDAS: Implement DAS ( #15367 )
...
* PeerDAS: Implement DAS
* Fix Terence's comment.
* Fix Terence comment.
* Fix Terence's comment.
* Fix James' comment.
* Fix James' comment.
* Rename some variable/files with blobs.
* Fix James' comment.
* Fix James' comment.
* Fix James' comment.
2025-06-06 10:06:52 +00:00
terence
774b9a7159
Migrate Prysm repo to Offchain Labs organization ahead of Pectra V6 ( #15140 )
...
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6
* Replace prysmaticlabs with OffchainLabs on general markdowns
* Update mock
* Gazelle and add mock.go to excluded generated mock file
2025-04-10 15:40:39 +00:00
kasey
41daac1b04
Organize blobs on disk by epoch ( #14023 )
...
* organize blob directories by period and epoch
* changelog
* remove Indices and replace with Summary
* old PR feedback
* log to advise about the speed of blob migration
* rename level->layer (hoping term is more clear)
* assert path in tests for increased legibility
* lint
* lint
* remove test covering a newly impossible error
* improve feedback from flag validation failure
* Try to clean dangling dirs epoch->flat migration
* lint
* Preston feedback
* try all layouts and short-circuit if base not found
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2025-02-05 20:09:38 +00:00
terence
bc69ab8a44
Support for different blob target and max values ( #14678 )
...
* Add support for different blob target and max
* Fix change log to right section
2024-12-19 14:58:24 +00:00
Manu NALEPA
65e8c37b48
Refactor RPC handlers subscription. ( #14732 )
...
* Refactor RPC handlers subscription.
* Fix Sammy's comments.
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2024-12-18 13:05:20 +00:00
kasey
090a3e1ded
Fix bug from PR 13827 ( #13871 )
...
* fix AS cache bug, tighten ro constructors
* additional coverage on AS cache filter
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-04-11 23:07:44 +00:00
kasey
04f231a400
Initsync skip local blobs ( #13827 )
...
* wip - init-sync skip available blob req
* satisfy deep source
* gaz
* don't need to sort blobs; simplify blobRequest stack
* wip debug log to watch blob skip behavior
* unit tests for new blob req generator
* refactor to reduce blob req func count
* log when WaitForSummarizer fails
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-04-05 19:09:43 +00:00
terence
9d3af41acb
Remove unused deneb code ( #13712 )
...
* Remove unused deneb code
* Gazelle
2024-03-09 00:12:26 +00:00
terence
5a66807989
Update to V5 ( #13622 )
...
* First take at updating everything to v5
* Patch gRPC gateway to use prysm v5
Fix patch
* Update go ssz
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-02-15 05:46:47 +00:00
Justin Traglia
cf606e3766
Only process blocks which haven't been processed ( #13442 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-01-09 22:14:03 +00:00
kasey
0e043d55b4
VerifiedROBlobs in initial-sync ( #13351 )
...
* Use VerifiedROBlobs in initial-sync
* Update beacon-chain/das/cache.go
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com >
* Apply suggestions from code review
comment fixes
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com >
* fix lint error from gh web ui
* deepsource fixes
* more deepsource
* fix init wiring
* mark blobless blocks verified in batch mode
* move sig check after parent checks
* validate block commitment length at start of da check
* remove vestigial locking
* rm more copy-locksta
* rm old comment
* fail the entire batch if any sidecar fails
* lint
* skip redundant checks, fix len check
* assume sig and proposer checks passed for block
* inherits most checks from processed block
* Assume block processing handles most checks
* lint
* cleanup unused call and gaz
* more detailed logging for e2e
* fix bad refactor breaking non-finalized init-sync
* self-review cleanup
* gaz
* Update beacon-chain/verification/blob.go
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com >
* terence and justin feedback
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com >
2024-01-06 23:47:09 +00:00