Radosław Kapka
6782df917a
Utilize next slot cache in block rewards rpc ( #13684 )
...
* Utilize next slot cache in block rewards rpc
* msg fix
* tests
2024-03-25 08:56:20 +00:00
james-prysm
e243f04e44
validator client on rest mode has an inappropriate context deadline for events ( #13771 )
...
* addressing errors on events endpoint
* reverting timeout on get health
* fixing linting
* fixing more linting
* Update validator/client/beacon-api/beacon_api_validator_client.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update beacon-chain/rpc/eth/events/events.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* reverting change and removing line on context done which creates a superfluous response.WriteHeader error
* gofmt
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-03-20 13:19:05 +00:00
terence
ec7949fa4b
Use justified checkpoint from head state to build attestation ( #13703 )
2024-03-11 15:05:40 +00:00
Preston Van Loon
83538251aa
Remove DOMAIN_BLOB_SIDECAR. See https://github.com/ethereum/consensus-specs/pull/3542 ( #13706 )
2024-03-08 03:55:46 +00:00
james-prysm
0453d18395
small cleanup on functions ( #13666 )
2024-02-26 22:23:23 +00:00
Dhruv Bodani
e100fb0c08
Add support for sync committee selections ( #13633 )
...
* add support for sync committee selections
* go mod tidy
* remove unused fields
* fix build
* fix build
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2024-02-23 13:53:42 +00:00
Sammy Rosso
4ff91bebf8
Switch gomock library ( #13639 )
...
* Update gomock
* Update mockgen
* Gaz
* Go mod
* Cleanup
* Regenerate gomock
* Manually fix import
2024-02-21 18:37:17 +00:00
Radosław Kapka
41d97a2a27
Remove /eth/v1/beacon/blocks/{block_id} ( #13628 )
2024-02-16 15:01:09 +00:00
james-prysm
2d0fe20917
Blob API - invalid indicies should error instead of ignored ( #13616 )
...
* addressing ux issue when using API
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* fixing tests
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 19:54:42 +00:00
Radosław Kapka
6c5351c3a2
Remove deprecated items ( #13600 )
...
* Remove deprecated items
* missed test
* add back deprecated fields
* Preston's review
* remove tests
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2024-02-15 15:23:31 +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
Radosław Kapka
1eb373103a
Remove /eth/v1/debug/beacon/states/{state_id} ( #13619 )
2024-02-14 17:52:20 +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
james-prysm
1383546999
Beacon API: get blob fix retention cases ( #13585 )
...
* fixing the handling for certain cases
* fixing tests
* Update beacon-chain/rpc/eth/blob/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* update comment based on review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2024-02-06 22:31:17 +00:00
Dhruv Bodani
55a29a4670
Implement beacon committee selections ( #13503 )
...
* implement beacon committee selections
* fix build
* fix lint
* fix lint
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* move beacon committee selection structs to validator module
* fix bazel build files
* add support for POST and GET endpoints for get state validators query
* add a handler to return error from beacon node
* move beacon committee selection to validator top-level module
* fix bazel
* re-arrange fields to fix lint
* fix TestServer_InitializeRoutes
* fix build and lint
* fix build and lint
* fix TestSubmitAggregateAndProof_Distributed
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2024-02-05 15:43:51 +00:00
Radosław Kapka
e3ce1bde45
Move API structs to api
module ( #13577 )
2024-02-03 11:57:01 +00:00
Radosław Kapka
d9ac69752b
Return consensus block value in Wei ( #13575 )
...
* Return consensus block value in Wei
* Return consensus block value in Wei
* review
2024-02-02 18:17:40 +00:00
Radosław Kapka
1b70d2b566
Fetch unaggregated atts in GetAggregateAttestation
( #13533 )
2024-01-26 17:08:58 +00:00
james-prysm
c4c28e4825
fixing small typo in error messages ( #13525 )
2024-01-25 04:56:17 +00:00
Radosław Kapka
c996109b3a
Return payload value in Wei from /eth/v3/validator/blocks
( #13497 )
...
* Add value in Wei to execution payload
* simplify how payload is returned
* test fix
* fix issues
* review
* fix block handlers
2024-01-24 20:58:35 +00:00
james-prysm
75a28310c2
fixing route to match specs ( #13510 )
2024-01-23 18:04:03 +00:00
Gaki
bdd7b2caa9
chore: typo fix ( #13461 )
...
* messsage
* cancellation
2024-01-20 01:07:17 +00:00
Radosław Kapka
a608630727
Add Inactivity field ro attestation rewards ( #13382 )
2024-01-18 18:51:35 +00:00
Mario Vega
37739b4193
fix blobsidecar json tag for commitment inclusion proof ( #13475 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2024-01-18 17:43:43 +00:00
james-prysm
4d2067dbae
bugfix: ssz post-requests should check content type not accept ( #13482 )
...
* updating post requests that accept ssz to check content type instead of accept header
* radek's review comments to make things more clear
2024-01-18 17:41:31 +00:00
Radosław Kapka
204de13c86
REST VC: Subscribe to Beacon API events ( #13453 )
...
* Revert "Revert "REST VC: Subscribe to Beacon API events (#13354 )" (#13428 )"
This reverts commit 8d092a1113
.
* change logic
* review
* test fix
* fix critical error
* merge flag check
* change error msg
* return on errors
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2024-01-18 14:27:41 +00:00
Potuz
abef94d7ad
do not check optimistic status if cached attestation ( #13462 )
...
* do not check optimistic status if cached attestation
* Gazelle
* Gazelle again
* fix nil panics
* more nil checks
* more nil checks
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2024-01-15 18:50:33 +00:00
qinlz2
b8c5af665f
[3/5] light client events ( #13225 )
...
* add http streaming light client events
* expose ForkChoiceStore
* return error in insertFinalizedDeposits
* send light client updates
* Revert "return error in insertFinalizedDeposits"
This reverts commit f7068663b8c8b3a3bf45950d5258011a5e4d803e.
* fix: lint
* fix: patch the wrong error response
* refactor: rename the JSON structs
* fix: LC finalized stream return correct format
* fix: LC op stream return correct JSON format
* fix: omit nil JSON fields
* chore: gazzle
* fix: make update by range return list directly based on spec
* chore: remove unneccessary json annotations
* chore: adjust comments
* feat: introduce EnableLightClientEvents feature flag
* feat: use enable-lightclient-events flag
* chore: more logging details
* chore: fix rebase errors
* chore: adjust data structure to save mem
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* refactor: rename config EnableLightClient
* refactor: rename feature flag
* refactor: move helper functions to helper pkg
* test: fix broken unit tests
---------
Co-authored-by: Nicolás Pernas Maradei <nicolas@polymerlabs.org>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2024-01-11 18:38:59 +00:00
Justin Traglia
703cfc5819
Initialize exec payload fields and enforce order ( #13372 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2024-01-09 21:49:35 +00:00
Radosław Kapka
8d092a1113
Revert "REST VC: Subscribe to Beacon API events ( #13354 )" ( #13428 )
...
This reverts commit e68b2821c1
.
2024-01-06 21:36:42 +00:00
james-prysm
d3d25e3ae5
proposer and attester slashing sse ( #13414 )
...
* wip
* adding in event notifiers for slashing events
* fixing tests
2024-01-05 15:27:50 +00:00
james-prysm
d439e6da74
adding builder boost factor to get block v3 ( #13409 )
...
* adding builder boost factor to functions
* gaz
* fixing linting
* fixing unit tests
* gaz
* addressing review comments
* fixing tests
* addressing review feedback
* gaz
* changing log based on review
2024-01-04 17:25:18 +00:00
Radosław Kapka
e68b2821c1
REST VC: Subscribe to Beacon API events ( #13354 )
...
* Initial code for head event streaming
* handle events and error
* keepalive event
* tests
* generate new mock
* remove single case select
* cleanup
* explain eventByteLimit
* use 2 channels in test
* review
* more review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2024-01-04 17:14:45 +00:00
Potuz
b7e0819f00
refactor Payload Id caches ( #12987 )
...
* init
- getLocalPayload does not use the proposer ID from the cache but takes
it from the block
- Fixed tests in blockchain package
- Fixed tests in the RPC package
- Fixed spectests
EpochProposers takes 256 bytes that can be avoided to be copied, but
this optimization is not clear to be worth it.
assginmentStatus can be optimized to use the cached version from the
TrackedValidatorsCache
We shouldn't cache the proposer duties when calling getDuties but when
we update the epoch boundary instead
* track validators on prepare proposers
* more rpc tests
* more rpc tests
* initialize grpc caches
* Add back fcu log
Also fix two existing bugs wrong parent hash on pre Capella and wrong
blockhashes on altair
* use beacon default fee recipient if there is none in the vc
* fix validator test
* radek's review
* push always proposer settings even if no flag is specified in the VC
* Only register with the builder if the VC flag is set
Great find by @terencechain
* add regression test
* Radek's review
* change signature of registration builder
2023-12-22 18:47:51 +00:00
Radosław Kapka
7d64104003
block publishing ( #13376 )
2023-12-22 18:15:00 +00:00
Nishant Das
233f4d99a2
Update Libp2p To v0.32.1 and Go to v1.21.5 ( #13304 )
...
* update libp2p
* fix tests
* fix tests
* fix build
* update to go v1.21
* workflow
* workflow again
* update ci
* update golangci
* disable quic
2023-12-21 16:09:54 +00:00
james-prysm
856907d760
Small encoding fixes on logs and http error code change ( #13345 )
...
* fixing some bad encodings
* changing http error to align with other clients
* fixing unit test
2023-12-20 18:18:55 +00:00
Nishant Das
eb713d1177
Refactor Network Config Into Main Config ( #13364 )
...
* change parameters to main config
* add more changes
* change to accepted format
* fix changes in config
* gaz
* fix test
* fix test again
2023-12-19 14:59:30 +00:00
Radosław Kapka
e9d26c61d7
Do not skip mev boost in v3
block production endpoint ( #13365 )
2023-12-19 12:46:17 +00:00
terence
0eff83cb9d
Use a cache of one entry to build attestation ( #13300 )
...
* Use a cache of one entry to build attestation
* Gazelle
* Enforce on RPC side
* Rm unused var
* Potuz feedback, dont use pointer
* Fix tests
* Init fetcher
* Add in-progress
* Add back missing lock
* Potuz feedback
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2023-12-18 16:12:43 +00:00
Nishant Das
b45a6664be
Enable Deneb For E2E Scenario Tests ( #13317 )
...
* fix all cases
* update web3signer
* current progress
* fix it finally
* push it back to capella
* remove hard-coded forks
* fix failing tests
* gaz
* fix dumb bug
* fix bad test setup
* change back
2023-12-16 11:37:44 +00:00
Radosław Kapka
344e68b81b
Use SkipMevBoost
properly during block production ( #13352 )
...
* fix bugs
* tests
* name fix
2023-12-15 16:14:42 +00:00
Justin Traglia
4a374435c0
Enable errname linter and fix findings ( #13341 )
2023-12-15 03:26:48 +00:00
Radosław Kapka
ea59b1ec71
Increase buffer of events channel ( #13329 )
2023-12-13 15:37:45 +00:00
james-prysm
b19d24c581
Remove signed block requirement from no-verify functions ( #13314 )
...
* removing fake wrappers
* fixing conficts and missed tests
* fixing more conflicts
* addressing missed unit test
* fixing nogo error
* fixing more unit tests
* fixing more tests
2023-12-12 20:18:40 +00:00
james-prysm
5e56b5fdd7
Beacon APIs: re enabling blob events ( #13315 )
...
* re enabling blob events
* terence's comments
* Update beacon-chain/rpc/eth/events/events_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-12 15:58:11 +00:00
Delweng
0eb08a4f96
beacon-chain/rpc: use BalanceAtIndex instead of Balances to reduce memory copy ( #13279 )
...
* beacon-chain/rpc: use BalanceAtIndex instead of Balances
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: stream use BalanceAtIndex is sufficient
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: fix commit review
Signed-off-by: jsvisa <delweng@gmail.com>
* beacon-chain/rpc: http2 -> httputil
Signed-off-by: jsvisa <delweng@gmail.com>
---------
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-12-10 00:04:45 +00:00
Radosław Kapka
4c47756aed
HTTP endpoints cleanup ( #13251 )
...
* remove validation package
* structs cleanup
* merge with apimiddleware removal
* more validation and Bls capitalization
* builder test fix
* use strconv for uint->str conversions
* use DecodeHexWithLength
* use exact param names
* rename http package to httputil
* change conversions to fmt.Sprintf
* handle query paramsd and route variables
* spans and receiver name
* split structs, move bytes helper
* missing ok check
* fix reference to indexed failure
* errors fixup
* add godoc to helper
* fix BLS casing and chainhead ref
* review
* fix import in tests
* gzl
2023-12-08 20:37:20 +00:00
Preston Van Loon
ff99616833
Fix staticcheck violations ( #13301 )
...
* Fix violations of sa2002
* Fix violations of sa4005
* Fix violations of sa4010
* Fix violations for sa4023
* Comment on commented static checks
2023-12-08 13:07:52 +00:00
Nishant Das
590317553c
Support New Subnet Backbone ( #13179 )
...
* add in changes
* fix it up
* fix test
* gaz
* lint
* add back
* fix tests
* fix it
* fix tests
* add lib
* fix it
2023-12-08 04:07:48 +00:00