Manu NALEPA
7da7019a20
PeerDAS: Implement core. ( #15192 )
...
* Fulu: Implement params.
* KZG tests: Re-implement `getRandBlob` to avoid tests cyclical dependencies.
Not ideal, but any better idea welcome.
* Fulu testing util: Implement `GenerateCellsAndProofs`.
* Create `RODataColumn`.
* Implement `MerkleProofKZGCommitments`.
* Export `leavesFromCommitments`.
* Implement peerDAS core.
* Add changelog.
* Update beacon-chain/core/peerdas/das_core.go
Co-authored-by: terence <terence@prysmaticlabs.com >
* Fix Terence's comment: Use `IsNil`.
* Fix Terence's comment: Avoid useless `filteredIndices`.
* Fix Terence's comment: Simplify odd/even cases.
* Fix Terence's comment: Use `IsNil`.
* Spectests: Add Fulu networking
* Fix Terence's comment: `CustodyGroups`: Stick to the spec by returning a (sorted) slice.
* Fix Terence's comment: `CustodyGroups`: Handle correctly the `maxUint256` case.
* Update beacon-chain/core/peerdas/das_core.go
Co-authored-by: terence <terence@prysmaticlabs.com >
* Fix Terence's comment: `ComputeColumnsForCustodyGroup`: Add test if `custodyGroup == numberOfCustodyGroup`
* `CustodyGroups`: Test if `custodyGroupCount > numberOfCustodyGroup`.
* `CustodyGroups`: Add a shortcut if all custody groups are needed.
* `ComputeCystodyGroupForColumn`: Move from `p2p_interface.go` to `das_core.go`.
* Fix Terence's comment: Fix `ComputeCustodyGroupForColumn`.
* Fix Terence's comment: Remove `constructCellsAndProofs` function.
* Fix Terence's comment: `ValidatorsCustodyRequirement`: Use effective balance instead of balance.
* `MerkleProofKZGCommitments`: Add tests
* Remove peer sampling.
* `DataColumnSidecars`: Add missing tests.
* Fix Jame's comment.
* Fix James' comment.
* Fix James' comment.
* Fix James' coment.
* Fix James' comment.
---------
Co-authored-by: terence <terence@prysmaticlabs.com >
2025-05-06 21:37:07 +00:00
Leonardo Arias
24cf930952
Upgrade ristretto to v2.2.0 ( #15170 )
...
* Upgrade ristretto to v2.2.0
* Added the changelog
* gazelle
* Run goimports and gofmt
* Fix build
* Fix tests
* fix some golangci-lint violations
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2025-05-06 01:51:05 +00:00
Preston Van Loon
97a95dddfc
Use otelgrpc for tracing grpc server and client ( #15237 )
...
* Use otelgrpc for tracing grpc server and client.
* Changelog fragment
* gofmt
* Use context in prometheus service
* Remove async start of prometheus service
* Use random port to reduce the probability of concurrent tests using the same port
* Remove comment
* fix lint error
---------
Co-authored-by: Bastin <bastin.m@proton.me >
2025-05-05 18:46:33 +00:00
Bastin
6df476835c
Turn on lc gossip ( #15220 )
...
* add and pass lcstore to sync service
* validator for optimistic updates
* validator for finality updates
* subscribers
* gossip scorings
* tmp - add validation test
* optimistic update validation tests
* finality update validation tests
* tests for subscribers
* deps
* changelog entry
* play around with config cleanup
* turn on gossip
* add logs
* fix typo
* mock p2p
* deps
* better logs
* turn on gossip
* add logs
* fix typo
* update geth v1.15.9 (#15216 )
* Update go-ethereum to v1.15.9
* Fix go-ethereum secp256k1 build after https://github.com/ethereum/go-ethereum/pull/31242
* Fix Ping API change
* Changelog fragment
* mock p2p
* deps
* fix merge problems
* changelog entry
* Update broadcaster.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update broadcaster.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-05-05 11:36:36 +00:00
terence
204302a821
Update hoodie boot nodes ( #15240 )
v6.0.1-rc.3
v6.0.1
2025-05-01 21:49:46 +00:00
Potuz
8a22df902f
Check for nil duties on checkDependentRoots ( #15241 )
v6.0.1-rc.2
2025-05-01 19:16:55 +00:00
Potuz
5e3a5b877a
Remove slot from UpdateDuties ( #15223 )
...
* Remove slot from `UpdateDuties`
* Fix slot to epoch conversion
* Add gossip clock disparity
* do not use disparity
* check for nil duties
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
v6.0.1-rc.1
2025-04-29 18:25:09 +00:00
Bastin
b69c71d65a
Add LC p2p validators and subscribers ( #15214 )
...
* add and pass lcstore to sync service
* validator for optimistic updates
* validator for finality updates
* subscribers
* gossip scorings
* tmp - add validation test
* optimistic update validation tests
* finality update validation tests
* tests for subscribers
* deps
* changelog entry
* play around with config cleanup
* better logs
* better logs 2
* better logs 3
* address comments
* add comments
2025-04-29 14:07:17 +00:00
Manu NALEPA
1298dc3a46
PeerDAS: Add needed proto files and corresponding generated code. ( #15187 )
...
* PeerDAS: Add needed proto files and corresponding generated code.
* Fix Nishant's comment.
* `max_cell_proofs_length.size`: Set to `CELLS_PER_EXT_BLOB * MAX_BLOB_COMMITMENTS_PER_BLOCK`.
* `BlobsBundleV2`: Add comment.
2025-04-28 16:08:28 +00:00
Potuz
3c463d8171
Pass dependent roots in block events ( #15227 )
...
* Pass dependent roots in block events
* Check for empty roots
v6.0.1-rc.0
2025-04-28 00:00:48 +00:00
kasey
0a48fafc71
extend payload attribute deadline to proposal slot ( #15230 )
...
* extend payload attribute deadline to proposal slot
* Update beacon-chain/blockchain/execution_engine.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Terence's feedback
* skip past proposal slots
* lint and skip events during init sync
* finagle test to not trigger old event error
* fix blockchain tests that panic without SyncChecker
---------
Co-authored-by: Kasey <kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2025-04-27 23:59:37 +00:00
terence
28cd59c9b7
Fix payload attribute proposer calculation ( #15228 )
...
Process slots if epoch is greater than head state epoch
2025-04-27 17:52:09 +00:00
james-prysm
efaf6649e7
Update grpc deprecation message ( #15222 )
...
* comment updates and changelog
* some missed comments
2025-04-25 19:50:34 +00:00
Potuz
a1c1edf285
Fix deadlines ( #15221 )
...
* Fix deadlines
* use current slot in update duties
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-04-25 19:10:20 +00:00
Radosław Kapka
bde7a57ec9
Implement pending consolidations Beacon API endpoint ( #15219 )
...
* get block
* Implement pending consolidations API endpoint
* changelog
* fixing test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: james-prysm <james@prysmaticlabs.com >
2025-04-25 18:27:58 +00:00
kasey
c223957751
include block in attr event and use stategen ( #15213 )
...
* include block in attr event and use stategen
* use no-copy state cache for proposal in same epoch
* only advance to the start of epoch
---------
Co-authored-by: Kasey <kasey@users.noreply.github.com >
2025-04-25 15:11:38 +00:00
Preston Van Loon
f7eddedd1d
update geth v1.15.9 ( #15216 )
...
* Update go-ethereum to v1.15.9
* Fix go-ethereum secp256k1 build after https://github.com/ethereum/go-ethereum/pull/31242
* Fix Ping API change
* Changelog fragment
2025-04-25 12:40:19 +00:00
kira
7887ebbc4a
Broadcast Proposer Slashing on equivocation ( #14693 )
...
* Add equivocation detection logic; broadcast slashing immediately on equivocation
* nit: comments
* move equivocation detection to validateBeaconBlockPubSub
* include broadcasting logic within the helper function
* fix lint
* Add unit tests for equivocation detection
* remove comment that are not required
* Add changelog file
* Add descriptive comment for detectAndBroadcastEquivocation
* use head block instead of block cache for equivocation detection
* add more equivocation unit tests; update a mock to include HeadState error
* update the order of the checks
* move slashing before state fetch; update Tests
* update changelog
* use verifyProposerSlashing to verify and reject block; remove verifySlashableBlock; update tests
* Update changelog
* nit: cleaner error check
* nit: clean up
* revert code logic; update string check; add a unit test
* improve errors; merge tests
* Update a unit test
* fix lint
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-24 20:27:34 +00:00
Nishant Das
1b13520270
Fix Unmarshalling of BlobSidecarsByRoot Requests ( #15209 )
...
* Handle Electra Lists
* Changelog
2025-04-23 14:04:46 +00:00
Tronica
0936628b72
refactor(sync): rename reValidateSubscriptions to pruneSubscriptions ( #15160 )
...
* Update subscriber.go
* Update subscriber_test.go
* Create pronoss_refactor_subscriber_rename.md
* Update pronoss_refactor_subscriber_rename.md
* Update pronoss_refactor_subscriber_rename.md
* Update pronoss_refactor_subscriber_rename.md
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-22 13:26:57 +00:00
Nishant Das
478ae81ed1
Update Insecure Dependencies ( #15204 )
2025-04-22 09:10:03 +00:00
Nishant Das
93276150e7
Fix Generated SSZ Files ( #15199 )
...
* Regenerate Files
* Changelog
2025-04-22 04:52:27 +00:00
Preston Van Loon
83460c9956
Changelog v6 ( #15203 )
...
* Run unclog for v6.0.0
* Add changelog note for v6 release
* Changelog fragment
2025-04-22 01:03:42 +00:00
Bastin
d30bb63d94
Add lc p2p broadcaster functions ( #15175 )
...
* add lc boradcasters
* gazelle
* changelog entry
* remove subnet
* implement and use IsNil()
* address comments
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* address comments
* deps
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-18 12:28:12 +00:00
Manu NALEPA
ab5505e13e
Implement all needed KZG wrappers for peerDAS in the kzg package. ( #15186 )
...
* Implement all needed KZG wrappers for peerDAS in the `kzg` package.
This way, If we need to change the KZG backend, the only package to
modify is the `kzg` package.
* `.bazelrc`: Add `build --compilation_mode=opt`
* Remove --compilation_mode=opt, use supranational blst headers.
* Fix Terence's comment.
* Fix Terence`s comments.
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2025-04-17 22:43:41 +00:00
james-prysm
9c00b06966
fix expected withdrawals ( #15191 )
...
* fixed underflow with expected withdrawals
* update comment
* Revert "update comment"
This reverts commit e07da541ac .
* attempting to fix comment indents
* fixing another missed tab in comments
* trying tabs one more time for fixing tabs
* adding undeflow safety
* fixing error typo
* missed wrapping the error
2025-04-17 18:17:53 +00:00
Manu NALEPA
167f719860
Upgrade to fulu: Fix and add spectests ( #15190 )
...
* `UpgradeToFulu`: Fix.
* `UpgradeToFulu`: Add spectests.
2025-04-17 14:13:32 +00:00
mmsqe
d4469d17b7
Problem: nondeterministic default fork value when generate genesis ( #15151 )
...
* Problem: nondeterministic default fork value when generate genesis
add sort versions
* add doc
* Apply suggestions from code review
* lint
---------
Co-authored-by: Bastin <43618253+Inspector-Butters@users.noreply.github.com >
2025-04-16 16:33:48 +00:00
kasey
8418157f8a
improve peer scoring code in range sync ( #15173 )
...
* separate block/blob peer scoring
* Preston's test coverage feedback
* test to ensure we don't combine distinct errors
---------
Co-authored-by: Kasey <kasey@users.noreply.github.com >
2025-04-16 13:47:58 +00:00
Bastin
e4acab4187
Refactor lc handlers tests ( #15177 )
...
* refactor tests
* gazelle
* Update beacon-chain/rpc/eth/light-client/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/light-client/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* remove space
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-15 17:54:55 +00:00
Bastin
b99399c1f1
Read lc updates from LCStore in RPC ( #15172 )
...
* add lcstore to rpc config and lc server
* read updates from store
* remove unused func
* optimistic tests
* finality tests
* changelog entry
* Update changelog/bastin_read-updates-from-store-in-rpc.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* pass lcstore to rpc service
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-15 15:06:49 +00:00
Bastin
c9e8701987
Save LC Finality and Optimistic Updates in LC Store When Processing Block ( #15124 )
...
* add lcStore to Node
* changelog entry
* add atomic getters and setters for the store
* add lcstore to the blockchain package
* save lc finality update to store
* save lc optimistic update to store
* changelog entry
* change store fields visibility to private
* refactor method names and add tests
* add lcstore to the blockchain package
* save lc finality update to store
* save lc optimistic update to store
* changelog entry
* refactor method names
* setup tests
* remove get from getters
* add lcstore to the blockchain package
* save lc finality update to store
* save lc optimistic update to store
* changelog entry
* refactor method names
* setup tests
* rename methods
* temp
* temp
* add tests
* fixing tests
* stash
* refactor setUpAltair
* remove debug code
* refactor bellatrix setup
* refactor capella setup
* refactor rest - core tests remain
* refactor tests to use new functional options utils
* use the options
* add noFinalizedCheckpoint and finalizedCheckpointInPrevFork options
* add tests
* changelog entry
* refactor tests
* deps
* fix tests
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* address comments
* address comments
* go mod tidy
* fix annoying conflicts
* go mod tidy
* fix conflicts
* cleanup tests
* add SetupTestConfigCleanup
* commit to restart CI checks
* address comments
* address comments
* address comments
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-15 10:38:20 +00:00
Preston Van Loon
215dbb8e40
Update docker URLs to gcr.io/offchainlabs ( #15171 )
...
* Update docker URLs to gcr.io/offchainlabs and remove unused script
* Changelog fragment
2025-04-14 20:15:24 +00:00
Radosław Kapka
6180b5a560
Guard against no attesters within committee in VerifyAttestationNoVerifySignature ( #15169 )
...
* Guard against no attesters within committee in `VerifyAttestationNoVerifySignature`
* changelog fragment
2025-04-14 14:46:38 +00:00
Bastin
cd87082f25
Refactor lc tests ( #15155 )
...
* refactor setUpAltair
* remove debug code
* refactor bellatrix setup
* refactor capella setup
* refactor rest - core tests remain
* refactor tests to use new functional options utils
* use the options
* add noFinalizedCheckpoint and finalizedCheckpointInPrevFork options
* add tests
* changelog entry
* refactor tests
* deps
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/lightclient.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* address comments
* address comments
* go mod tidy
* fix annoying conflicts
* go mod tidy
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-14 10:57:31 +00:00
Potuz
bab898d1d3
Use dependent root to request duties ( #15142 )
...
* Use dependent root to request duties
* Add actual roots to the event stream
* Add feature flag
* fix no go
* fix test
* add test
* log duties changes on reorgs
* send depdendent root on grpc response
* fix wrong return status in tests
* fix tests
* gazelle
* add unil wait for wg
* parse slot twice
* add slot deadline to update duties
* fix conflict
* add dependency
* lint
* Thanks James!
* fix segfault
* fix rpc tests
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2025-04-11 21:22:57 +00:00
james-prysm
5a527a15c8
Electra attestation api guard ( #15161 )
...
* adding in guard and tests
* adding in review from slack
* reverting error wrapping
* fixing tests
* fixing more tests
* removing defer cleanups
* Update beacon-chain/rpc/eth/validator/handlers_test.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* fixing test and adding some coverage for validator_test.go for function
* gaz
* adding happy path test
* fixing buildkite removing test helper dependency
* fixing tests
* gaz
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
v6.0.0-rc.0
2025-04-11 14:33:32 +00:00
Radosław Kapka
ef20c45b1e
Removed Beacon API endpoints which have been deprecated at the Deneb fork ( #15166 )
...
* Removed Beacon API endpoints which have been deprecated at the Deneb fork
* fix linter
2025-04-11 14:33:06 +00:00
Radosław Kapka
e6e03c8ac9
Remove deprecated flags ( #15165 )
...
* Remove deprecated flags
* changelog <3
* unblock Github actions
2025-04-11 13:38:49 +00:00
terence
679a0c9ec2
Add support for electra fork epoch ( #15132 )
...
* Add support for electra fork epoch
* Fix tests
* fixing tests without needing to override electra fork config
* reverting electra fork override on blob test too, replacing with custom timefetcher
* reverting old changelog
* Fix genesis time
* Move mainnet test into mainnet_config_test.go
* Update spec test to v1.5.0-beta.5
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2025-04-11 02:01:35 +00:00
kasey
e47a4e1d56
Penalize peers for bad rpc data in range sync ( #15149 )
...
* Penalize peers for bad rpc data in range sync
* gofmt
---------
Co-authored-by: Kasey <kasey@users.noreply.github.com >
2025-04-10 21:19:08 +00:00
mmsqe
ac0ea13dbe
Problem: no prysmctl option in wrapper script to generate devnet ssz ( #15145 )
...
* Problem: no prysmctl option in wrapper script to generate devnet ssz
* add doc
2025-04-10 20:59:38 +00:00
Radosław Kapka
b0614fe137
Remove disable-committee-aware-packing flag ( #15162 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2025-04-10 19:48:16 +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
Radosław Kapka
9d1750ce86
Deprecate everything related with the gRPC API ( #14944 )
...
* proto definitions
* server methods
* grpc validator
* server structs
* functions, types, fields etc
* changelog <3
* revert `buildBlockParallel`
* format fix
* better deprecation warning
* remove comment from unexported fields
* only keep comment in public-facing items
2025-04-10 15:21:49 +00:00
terence
ff6e27c737
Remove unused hack script ( #15157 )
2025-04-10 13:40:29 +00:00
terence
e20420aa87
Mainnet config copies by default ( #15159 )
2025-04-10 12:59:55 +00:00
Radosław Kapka
da12ea57c7
Fix filtering by committee index post-Electra in ListAttestationsV2 ( #15148 )
2025-04-08 19:41:45 +00:00
Nishant Das
81019ef173
Fix Committee Index Check For Electra Aggregates ( #15146 )
...
* fix it
* changelog
2025-04-08 15:30:57 +00:00
Potuz
92cf0bc0ab
Use forkchoice dependent root helper ( #15137 )
2025-04-07 18:02:27 +00:00