Rupam Dey
30a136f1fb
save light client updates (diff) ( #14683 )
...
* update diff
* deps
* add tests for `SaveLightClientUpdate`
* cleanup imports
* lint
* changelog
* fix incorrect arithmetic
* check for lightclient feature flag
* fix tests
* fix `saveLightClientBootstrap` and `saveLightClientUpdate`
* replace and with or
* move feature check to `postBlockProcess`
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-12-04 21:22:43 +00:00
Sammy Rosso
1139c90ab2
Add metadata fields to getBlobSidecars ( #14677 )
...
* add metadata fields to getBlobSidecars
* gaz
* changelog
* Dhruv + Radek' reviews
2024-11-28 16:42:55 +00:00
Sammy Rosso
c0f9689e30
Add POST /eth/v2/beacon/pool/attestations endpoint ( #14621 )
...
* modify v1 and add v2
* test
* changelog
* small fixes
* fix tests
* simplify functions + remove duplication
* Radek' review + group V2 tests
* better errors
* fix tests
2024-11-08 11:33:27 +00:00
Sammy Rosso
ff8240a04f
Add /eth/v2/validator/aggregate_attestation ( #14481 )
...
* add endpoint
* changelog
* fix tests
* fix endpoint
* remove useless broken code
* review + fix endpoint
* gaz
* fix aggregate selection proof test
* fixes
* new way of aggregating
* nit
* fix part of the tests
* fix tests
* cleanup
* fix AggSelectionProof test
* tests
* v1 tests
* v2 tests
* commiittee bits
---------
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-11-07 13:34:18 +00:00
Sammy Rosso
09accc7132
Add GET /eth/v2/beacon/pool/attestations endpoint ( #14560 )
...
* add ListAttestationsV2 endpoint
* fix endpoint
* changelog
* add endpoint to tests
* add trailing comma
* add version header + lint fix
* all reviews
* modify v1 and comments
* fix linter
* Radek' review
2024-10-28 10:59:27 +00:00
Sammy Rosso
4aa54107e4
Add /eth/v2/validator/aggregate_and_proofs ( #14490 )
...
* fix endpoint
* changelog + gaz
* add to endpoints test
* Radek' review
* James' review
* fix duplication a bit
* fix changelog
2024-10-18 09:05:57 +00:00
Sammy Rosso
2afa63b442
Add GET /eth/v2/beacon/pool/attester_slashings ( #14479 )
...
* add endpoint
* changelog
* correct resp with both attestationSlashings types
* fix and comment
* fix test
* fix version check
* review + fixes
* fix
* James' review
* Review items
* Radek' review
* Radek' review
2024-10-16 09:23:23 +00:00
james-prysm
8a0545c3d7
Eip6110 queue deposit requests ( #14430 )
...
* wip
* updating types and wip on functions
* renaming to MAX_PENDING_DEPOSITS_PER_EPOCH
* fixing linting and conversions
* adding queue deposit changes
* fixing test and cloning
* removing unneeded test based on update
* gaz
* wip apply pending deposit
* fixing replay test and adding apply pending deposit
* fixing setters test
* updating transition test
* changelog
* updating pending deposits
* fixing ProcessPendingDeposit unit tests
* gaz
* fixing cyclic dependencies
* fix visiblity
* missed adding the right signature verification
* adding point to infinity topup test
* adding apply pending deposit test
* making changes based on eip6110 changes
* fixing ineffassign
* gaz
* adding batched verifications sigs
* fixing broken type
* fixing proto
* updated consensus spec tests and fixed consensus bug tests
* testing readability improvement by avoiding ApplyPendingDeposit
* removing the boolean from apply pending deposit
* improve naming
* review comments and fixing a small bug using wrong variable
* fixing tests and skipping a test
* adding some test skips
* fixing bugs terence found
* adding test for batchProcessNewPendingDeposits
* gaz
* adding churn test
* updating spec tests to alpha.8
* adding pr to changelog
* addressing terence's comments
* Update beacon-chain/core/electra/validator.go
Co-authored-by: terence <terence@prysmaticlabs.com >
* adding tests for batch verify and rename some variables
* skipping tests , add them back in later
* skipping one more test
---------
Co-authored-by: terence <terence@prysmaticlabs.com >
2024-10-14 01:21:42 +00:00
Sammy Rosso
57cc4950c0
Add /eth/v2/beacon/blocks/{block_id}/attestations ( #14478 )
...
* add endpoint
* changelog
* fix response
* improvement
* fix test
* James' review
* fix test
* fix version check
* add test for non electra V2
* Review items
* James' review
* Radek' review
* Update CHANGELOG.md
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-10-10 10:19:26 +00:00
kasey
c11e3392d4
SSE implementation that sheds stuck clients ( #14413 )
...
* sse implementation that sheds stuck clients
* Radek and James feedback
* Refactor event streamer code for readability
* less-flaky test signaling
* test case where queue fills; fixes
* add changelog entry
* james and preston feedback
* swap our Subscription interface with an alias
* event.Data can be nil for the payload attr event
* deepsource
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-10-04 21:18:17 +00:00
Radosław Kapka
cf4ffc97e2
Update block Beacon APIs to Electra ( #14488 )
...
* Update block Beacon APIs to Electra
* CHANGELOG
* Revert "Auxiliary commit to revert individual files from 9bf238279a696dbcd65440606b0e3173f3be5e05"
This reverts commit a7ef57a2532f9ee02831d180926f7b84f5104a2b.
* review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-10-04 08:21:08 +00:00
Bastin
6af44a1466
Fix lc execution header bug ( #14468 )
...
* create finalized header based on finalized block version
* changelog entry
* pass attested block from handlers
* fix core tests
* add test for attested header exectution fields
* changelog entry
* remove unused functions
* Update beacon-chain/core/light-client/lightclient.go
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
* Update beacon-chain/core/light-client/lightclient.go
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
* Update beacon-chain/core/light-client/lightclient.go
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
* remove finalized header from default update
* remove unused functions
* bazel deps
---------
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
2024-10-03 17:29:22 +00:00
Owen
2e29164582
allow users to publish blobs ( #14442 )
...
* allow users to publish blobs
Allowing users to publish blobs before publishing blocks, gives the blobs a head start. They can begin to propagate around the network while the block is being validated.
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
* Update beacon-chain/rpc/prysm/beacon/handlers.go
---------
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
2024-10-01 20:13:41 +00:00
Potuz
ddafedc268
Implement consensus-specs/3875 ( #14458 )
...
* WIP
- beacon-chain builds
* pass blockchain tests
* pass beacon-chain/execution tests
* Passing RPC tests
* fix building
* add changelog
* fix linters
* Spectests
* copy requests on Copy()
* Fix tests
* Fix config test
* fix verification tests
* add aliases for Electra types
* double import and unskip spectests
* Remove unnecessary comment
2024-09-25 17:06:52 +00:00
Radosław Kapka
7ac3c01b5b
Refactor light client functions ( #14434 )
...
* Use correct types in light client functions
* conversions
* more refactoring
* test fixes
* changelog
* error fix
* revert test changes
* revert test skip
* Update api/server/structs/conversions_lightclient.go
Co-authored-by: Rupam Dey <117000803+rupam-04@users.noreply.github.com >
* use BlockToLightClientHeader
* reviewer suggestion
* Revert "use BlockToLightClientHeader"
This reverts commit f3df56ded5 .
---------
Co-authored-by: Rupam Dey <117000803+rupam-04@users.noreply.github.com >
2024-09-13 22:08:28 +00:00
Rupam Dey
eec3b0b7fe
feat: introduce Capella and Deneb full-node.md lc changes ( #14376 )
...
* feat: introduce Capella and Deneb `full-node.md` lc changes
* add switch-case and replace `[][]byte` with `[][]string`
* return version name in http header
* populate header and use `interfaces.ReadOnlyBeaconBlock`
* fix lint
* merge cases in switch case and replace `interfaces.ExecutionData` with `*ExecutionPayloadHeader`
* minor fixes
* refactor `createLightClientBootstrapCapella` and `createLightClientBootstrapDeneb`
* use lightclientheader instead of different versions
* fix failing `TestLightClientHandler_GetLightClientBootstrap` tests
* fix lint
* refactor handlers
* refactor handlers more
* refactor handlers even more
* create conversions_lightclient
* fix lint errors
* add deneb and capella proto headers
* update lightclientbootstrap proto struct to capella&deneb
* update usecases
* update usecases
* resolve panic in header.GetBeacon
* fix spacings
* refactor core/lightclient.go
* fix isBetterUpdate
* use errors.wrap instead of fmt.errorf
* changelog entry
* fix lint errors
* fix api structs to use json rawMessage
* inline unmarshal
* remove redundant nil check
* revert remove redundant nil check
* return error in newLightClientUpdateToJSON
* inline getExecutionData
* better error handling
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Inspector-Butters <mohamadbastin@gmail.com >
Co-authored-by: Bastin <43618253+Inspector-Butters@users.noreply.github.com >
2024-09-06 17:06:31 +00:00
Bastin
3015eea4e3
Fix lightclient header ( #14389 )
...
* change LCUpdate to use LCHeader
* fix api struct usages
* fix api struct finalized_header
* add lightclientheader to proto structs
* fix proto usages
* fix proto usages in events
* fix uppercase field in protobuf defenition
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-29 15:57:21 +00:00
Rupam Dey
dd3c9652c3
fix: replace BeaconBlockHeader in createLightClientBootstrap with LightClientHeader ( #14374 )
...
* fix: replace `BeaconBlockHeader` in `createLightClientBootstrap` with `LightClientHeader`
* minor fix in `handlers_test.go`
* check if `beacon` is `nil` instead of `header`
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-22 17:13:10 +00:00
Radosław Kapka
41ea1d230a
Electra API struct conversions ( #14339 )
...
* Electra API conversions
* reduce function complexity
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-08-19 11:46:56 +00:00
Sammy Rosso
e0785a8939
HTTP endpoint for GetValidatorActiveSetChanges ( #14264 )
...
* add GetValidatorActiveSetChanges
* fix linter
* fix errors
* James' review
* use stater
* fix merge conflict errors
* remove validator from func names
* rename util funcs
2024-08-06 11:56:43 +00:00
Sammy Rosso
fb2620364a
HTTP endpoint for GetChainHead ( #14262 )
...
* add getChainHead endpoint
* James' review
* Radek' review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-05 08:49:37 +00:00
Sammy Rosso
836608537e
HTTP endpoint for GetValidatorParticipation ( #14261 )
...
* add endpoint
* remove canonicalFetcher
* Add replayerBuilder to coreService
* fix endpoint template
* fix string query params
* gaz
* fix linter
* test fix
* Radek' review
* remove unused request struct + gaz
* linter
* gaz
---------
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-08-02 13:55:17 +00:00
Sammy Rosso
57ffc12f17
HTTP endpoint GetIndividualVotes ( #14198 )
...
* add http endpoint
* add tests
* Gaz
* Add pointers
* add endpoint to test
* Electra: EIP-7251 Update `process_voluntary_exit` (#14176 )
* Electra: EIP-7251 Update `process_voluntary_exit`
* Add unit test for VerifyExitAndSignature EIP-7251
* @potuz peer feedback
* Avoid Cloning When Creating a New Gossip Message (#14201 )
* Add Current Changes
* add back check
* Avoid a Panic
* fix: Multiple network flags should prevent the BN to start (#14169 )
* Implement Initial Logic
* Include check in main.go
* Add tests for multiple flags
* remove usage of append
* remove config/features dependency
* Move ValidateNetworkFlags to config/features
* Nit
* removed NetworkFlags from cmd
* remove usage of empty string literal
* add comment
* add flag validation to prysctl validator-exit
---------
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
* fix tests
* Radek' review + tests
* fix tests
* Radek' review
* forgot one
* almost forgot the tests
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: kira <shyampkira@gmail.com >
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-07-19 12:23:36 +00:00
Khanh Hoa
7a394062e1
refactor: enable errorlint and refactor code ( #14110 )
...
* refactor: enable errorlint and refactor code
* revert
* revert
* add bazel
* gofmt
* gofmt
* gofmt
* gofmt
* gci
* lint
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-07-04 22:40:13 +00:00
kasey
c312a88aa3
Removes fork-specific concrete type getters ( #13941 )
...
* removing typed pb accessors
* refactor ssz api resp handlers to avoid typed pbs
* json get block handler refactor
* SubmitBlindedBlock to use generic json handling
* update SubmitBlindedBlock
* clear out more usages of PbForkname methods
* remove fork-specific getters from block interface
* remove usages of payload pb methods
* remove pb helpers from execution payload interface
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek review
* fix error message
* deal with wonky builder responses
* ✂️
* gaz
* lint
* tweaks for deep source
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-05-02 20:52:27 +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
Sammy Rosso
5afb1255fe
Add /eth/v1/beacon/deposit_snapshot endpoint ( #13514 )
...
* Add endpoint
* Uncomment in InitializeRoutes
* Add test
* Add 404
* Add more checks
* Test improvements
* Ssz
* Add ssz tags
* Add DepositSnapshot to bazel
* Fix tests
* Fix max size
* Resolve conflicts
* Revert untouched code
* Fix test + review
* Lint
* Oops
* Preston + Radek' review
* Only return 3 finalized roots
* Change to deposit contract depth
* Radek' review
* Gaz
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-02-07 22:53:08 +00:00
Radosław Kapka
e3ce1bde45
Move API structs to api module ( #13577 )
2024-02-03 11:57:01 +00:00