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
Potuz
2dd48343a2
Set default fee recipient if tracked val fails ( #13768 )
2024-03-18 19:35:34 +00:00
james-prysm
d6ae838bbf
replace receive slot with event stream ( #13563 )
...
* WIP
* event stream wip
* returning nil
* temp removing some tests
* wip health checks
* fixing conficts
* updating fields based on linting
* fixing more errors
* fixing mocks
* fixing more mocks
* fixing more linting
* removing white space for lint
* fixing log format
* gaz
* reverting changes on grpc
* fixing unit tests
* adding in tests for health tracker and event stream
* adding more tests for streaming slot
* gaz
* Update api/client/event/event_stream.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* review comments
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/beacon-api/beacon_api_validator_client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing radek comments
* Update validator/client/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing review feedback
* moving things to below next slot ticker
* fixing tests
* update naming
* adding TODO comment
* Update api/client/beacon/health.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing comments
* fixing broken linting
* fixing more import issues
* fixing more import issues
* linting
* updating based on radek's comments
* addressing more comments
* fixing nogo error
* fixing duplicate import
* gaz
* adding radek's review suggestion
* Update proto/prysm/v1alpha1/node.proto
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* preston review comments
* Update api/client/event/event_stream.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* addressing some more preston review items
* fixing tests for linting
* fixing missed linting
* updating based on feedback to simplify
* adding interface check at the top
* reverting some comments
* cleaning up intatiations
* reworking the health tracker
* fixing linting
* fixing more linting to adhear to interface
* adding interface check at the the top of the file
* fixing unit tests
* attempting to fix dependency cycle
* addressing radek's comment
* Update validator/client/beacon-api/beacon_api_validator_client.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
* adding more tests and feedback items
* fixing TODO comment
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-03-13 13:01:05 +00:00
Potuz
02cbcf8545
only update head at 10 seconds when validating ( #13570 )
...
* only update head at 10 seconds when validating
* fix tests
2024-03-12 15:11:40 +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
Radosław Kapka
ee9274a9bc
REST VC metrics ( #13588 )
...
* REST VC metrics
* validator status is not used
* refactor
* remove test
* server-side
* server-side per endpoint
* cleanup
* add config endpoints
* add proper HTTP methods to endpoints
* initialize missing fields
2024-03-05 18:15:46 +00:00
Potuz
2e2ef4a179
Fix failed reorg log ( #13679 )
2024-02-29 15:23:29 +00:00
james-prysm
6d3c6a6331
move setting route handlers to registration from start ( #13676 )
...
* moving route registration out of the start function and into registration
* moving where grpc is set
2024-02-28 11:30:31 +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
Radosław Kapka
0b261cba5e
Unify log fields ( #13654 )
...
* unify fields
* fix tests
2024-02-22 22:40:36 +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
f09fe4f038
Reorganize Prysm custom endpoints ( #13621 )
...
* Reorganize Prysm custom endpoints
* add deprecated paths
* review
2024-02-15 17:26:59 +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
terence
5e74c798d4
Use Gwei for value in get header log ( #13608 )
2024-02-12 15:14:58 +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
Manu NALEPA
9d6160e112
Slasher: Remove unused RPC. ( #13594 )
2024-02-07 21:11:58 +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
Potuz
e2e7e84a96
Get the right head state when proposing a failed reorg ( #13579 )
...
* Get the right head state when proposing a failed reorg
* add unit test
* split logic
2024-02-05 13:40:35 +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
c9fe53bc32
Blob API: make errors more generic ( #13513 )
...
* make api response more generic
* gaz
2024-01-23 20:07:46 +00:00
james-prysm
75a28310c2
fixing route to match specs ( #13510 )
2024-01-23 18:04:03 +00:00
james-prysm
4afb379f8d
cleanup duties naming ( #13451 )
...
* updating some naming to reflect changes to duties
* fixing unit tests
* fixing more tests
2024-01-22 16:58:25 +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
Nishant Das
6a65e07684
Add Spans to Core Validator Methods ( #13467 )
...
* add traces
* gaz
2024-01-16 07:52:46 +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
Preston Van Loon
98e3f2b80f
sort static analyzers, add more, fix violations ( #13441 )
2024-01-09 23:29:36 +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
GoodDaisy
c6ebe157a6
Fix typos ( #13435 )
2024-01-09 21:03:36 +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
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