james-prysm
ba860fd96b
fixing links ( #15354 )
2025-05-28 01:57:44 +00:00
terence
994565acdd
Fix seen blob cache size at start up ( #15348 )
...
* Fix seen blob cache size at start up
* Fix tests
* Manus feedback
* Use electra max blob size
2025-05-27 15:08:39 +00:00
Manu NALEPA
00204ffa6a
PeerDAS: Implement the validation pipeline for data column sidecars received via gossip ( #15310 )
...
* PeerDAS: Implement the validation pipeline for data column sidecars received via gossip
* Fix Terence's comment
* Fix Terence's comment.
* Fix Terence's comment.
2025-05-25 22:31:09 +00:00
Justin Traglia
f8d895a5ed
Add support for nightly test vectors ( #15312 )
...
* Add tool to download spec tests
* Rename consensus_spec_tests deps
* Make _get_redirected_url more portable
* Rename env variable
* Add a debug print for sanity
* Add changelog file
* Update newly added fulu tests
* Delete some unnecessary white space
* PR fixes
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2025-05-23 14:15:34 +00:00
Manu NALEPA
58b5aac201
PeerDAS: Refactor reconstruction and improve DataColumnStorage.Get. ( #15309 )
...
* PeerDAS: Refactor reconstruction.
* DB Columns filesystem: Add missing tests and exit early in `Get`.
* Add changelog.
* Fix Preston's comment.
* Fix `TestDataColumnsAlignWithBlock`.
2025-05-23 13:22:53 +00:00
terence
99cd90f335
Add blob schedule support ( #15272 )
...
* Add blob schedule support
* Feedback
* Fix e2e test
* adding in temporary fix until web3signer is supported for blob schedule in config
* Add fallback
* Uncomment blob schedule from plcae holder fields for test
* Log blob limit increase
* Sort
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
2025-05-22 03:19:03 +00:00
hardlydearly
3dfd3d0416
refactor: replace context.WithCancel with t.Context in tests ( #15233 )
...
Signed-off-by: hardlydearly <799511800@qq.com >
2025-05-21 17:11:02 +00:00
Manu NALEPA
e2f0b057b0
Implement data columns filesystem. ( #15257 )
...
* Logging: Add `DataColumnFields`.
* `RODataColumn`: Implement `Slot`, `ParentRoot` and `ProposerIndex`.
* Implement verification for data column sidecars.
* Add changelog.
* Fix Terence's comment.
* Implement data columns filesystem.
* Reduce const verbosity (Kasey's comment).
* `prune`: Aquire `mu` only when needed.
* `Save`: Call `dcs.DataColumnFeed.Send` in a goroutine.
* Fix Terence's comment.
* Fix Terence's comment.
* Fix Terence's comment.
* Fix Terence's comment.
* Fix Terence`s comment.
* Implement a new solution for subscriber.
* Fix Kasey's comment.
2025-05-21 09:35:48 +00:00
Manu NALEPA
3d4e2c5568
Implement data column sidecars verifications. ( #15232 )
...
* Logging: Add `DataColumnFields`.
* `RODataColumn`: Implement `Slot`, `ParentRoot` and `ProposerIndex`.
* Implement verification for data column sidecars.
* Add changelog.
* Fix Terence's comment.
* Fix Terence's comment.
* `SidecarProposerExpected`: Stop returning "sidecar was not proposed by the expected proposer_index" when there is any error in the function.
* `SidecarProposerExpected` & `ValidProposerSignature`: Cache the parent state.
* `VerifyDataColumnsSidecarKZGProofs`: Add benchmarks.
* Fix Kasey's comment.
* Add additional benchmark.
* Fix Kasey's comment.
* Fix Kasey's comment.
* Fix Kasey's comment.
* Fix Preston's comment.
* Fix Preston's comment.
* Fix Preston's comment.
2025-05-20 21:15:29 +00:00
Nilav Prajapati
d6bbfff8b7
Fix cyclical dependency ( #15248 )
...
* fix cyclical dependency
* fix bazel file
* fix comments
* fix: Break cyclical dependency by importing GetRandBlob directly from crypto/random
* add changelog
2025-05-20 16:19:36 +00:00
Bastin
edab145001
endpoint registration behind flag ( #15303 )
2025-05-20 12:29:07 +00:00
Bastin
5bbcfe5237
Enable Light Client req/resp domain ( #15281 )
...
* add rpc toppic mappings and types
* placeholder funcs
* bootstrap write chunk
* add rpc toppic mappings and types
* placeholder funcs
* bootstrap write chunk
* deps
* add messageMapping entries
* add handlers and register RPC
* deps
* tests
* read context in tests
* add tests
* add flag and changelog entry
* fix linter
* deps
* increase topic count in ratelimiter test
* handle flag
2025-05-19 15:15:13 +00:00
terence
c1b99b74c7
Use current slot helper whenever possible ( #15301 )
2025-05-18 16:06:54 +00:00
Radosław Kapka
c4abdef874
Add {state_id} to Prysm endpoints ( #15245 )
...
* Add `{state_id}` to Prysm endpoints
* Revert "Add `{state_id}` to Prysm endpoints"
This reverts commit 88670e9cc1 .
* update changelog
* update bastin feedback
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-05-15 14:25:05 +00:00
james-prysm
64cbaec326
fixing attester slashing v2 endpoint ( #15291 )
2025-05-15 14:03:35 +00:00
james-prysm
63a0641957
fixing wrong pending consolidations handler for api ( #15290 )
2025-05-15 13:13:56 +00:00
Nishant Das
2737ace5a8
Disable Deposit Log processing after Deposit Requests are Activated ( #15274 )
...
* Disable Log Processing
* Changelog
* Kasey's review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-05-14 18:23:45 +00:00
Preston Van Loon
eea53eb6dc
tracing: Add spans to various methods related to GetDuties ( #15271 )
...
* Adding spans for troubleshooting GetDuties latency
* Changelog fragment
2025-05-13 21:50:12 +00:00
terence
93a5fdd8f3
Remove unused variables, functions and more ( #15264 )
2025-05-12 13:25:26 +00:00
Preston Van Loon
d38064f181
Add tracing spans to GetDuties ( #15258 )
...
* Add additional spans for tracing GetDuties
* Changelog fragment
2025-05-08 14:50:02 +00:00
Nishant Das
7f89bb3c6f
Increase Limit For Rebuilding Field Trie ( #15252 )
...
* Increase Limit
* Fix Test
2025-05-08 04:42:30 +00:00
Potuz
c07479b99a
remove error return from HistoricalRoots ( #15255 )
...
* remove error return from HistoricalRoots
* Radek's review
2025-05-07 16:06:30 +00:00
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
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
Potuz
3c463d8171
Pass dependent roots in block events ( #15227 )
...
* Pass dependent roots in block events
* Check for empty roots
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
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
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
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
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 >
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