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
Radosław Kapka
b692722ddf
Optimize SubmitAggregateSelectionProof VC action ( #13711 )
...
* Optimize `SubscribeCommitteeSubnets` VC action
* test fixes
* remove newline
* Optimize `SubmitAggregateSelectionProof`
* mock
* bzl gzl
* test fixes
2024-03-19 14:09:07 +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
Radosław Kapka
9e7352704c
Optimize SubscribeCommitteeSubnets VC action ( #13702 )
...
* Optimize `SubscribeCommitteeSubnets` VC action
* test fixes
* remove newline
* review
2024-03-08 18:08:35 +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
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
b842d8ce1d
Remove leftover log ( #13627 )
2024-02-16 14:02:56 +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
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
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
Manu NALEPA
99a8d0bac6
Validator client - Improve readability - NO FUNCTIONAL CHANGE ( #13468 )
...
* Improve `NewServiceRegistry` documentation.
* Improve `README.md`.
* Improve readability of `registerValidatorService`.
* Move `log` in `main.go`.
Since `log` is only used in `main.go`.
* Clean Tos.
* `DefaultDataDir`: Use `switch` instead of `if/elif`.
* `ReadPassword`: Remove unused receiver.
* `validator/main.go`: Clean.
* `WarnIfPlatformNotSupported`: Add Mac OSX ARM64.
* `runner.go`: Use idiomatic `err` handling.
* `waitForChainStart`: Avoid `chainStartResponse`mutation.
* `WaitForChainStart`: Reduce cognitive complexity.
* Logs: `powchain` ==> `execution`.
2024-01-15 14:46:54 +00:00
Radosław Kapka
2875ce6ee1
Use a single rest handler ( #13446 )
2024-01-11 16:03:35 +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
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
Radosław Kapka
d0bf03e863
Simplify error handling for JsonRestHandler ( #13369 )
...
* Simplify error handling for `JsonRestHandler`
* POST
* reduce complexity
* review feedback
* uncomment route
* fix rest of tests
2023-12-22 22:39:20 +00:00
Preston Van Loon
db096488b0
fixing sa4006 ( #13350 )
2023-12-15 16:49:27 +00:00
Justin Traglia
4a374435c0
Enable errname linter and fix findings ( #13341 )
2023-12-15 03:26:48 +00:00
Potuz
96df81d5c5
Hook to slot stream instead of block stream on the VC ( #13327 )
...
* Hook to slot stream instead of block stream on the VC
* Implement StreamSlots in the BN
* mock update
* fix tests
* don't return from stream
* Terence's review
* deepsource second complain
---------
Co-authored-by: rkapka <rkapka@wp.pl >
2023-12-13 23:13:56 +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
Radosław Kapka
cee38660c7
Gracefully handle unknown validator index in the REST VC ( #13296 )
...
* Gracefully handle unknown validaor index in the REST VC
* add apostrophes
2023-12-08 04:30:50 +00:00
james-prysm
83af9a5694
Beacon API: update Deneb endpoints after removing blob signing ( #13235 )
...
* making needed changes to beacon API based on removal of blobsidecar from block contents
* fixing tests and reverting some changes to be addressed later
* fixing generated code from protos
* gaz
* fixing get blob handler and adding blob storage to the blob service
* updating unit tests
* WIP
* wip tests
* got tests passing but needs cleanup
* removing gomod and gosum changes
* fixing more tests
* fixing more tests
* fixing more tests
* gaz
* moving some proto types around
* removing unneeded unit test
* fixing proposer paths
* adding more tests
* fixing more tests
* improving more unit tests
* updating one blob only unit test
* changing arguments of buildBlobSidecar
* reverting a change based on feedback
* terence's review items
* fixing test based on new develop changes
* radek's comments
* addressed more comments from radek
* adding in blobs to test data
* fixing casing in test
* removing extra line
* fixing issue from bad merge
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/blob/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* moving core getblob business logic to blocker based on radek's comment
* fixing mock blocker
* gaz
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-12-07 17:37:11 +00:00
Radosław Kapka
28c3330375
Don't fetch duties for unknown keys ( #13269 )
...
* Don't fetch duties for unknown keys
* test
2023-12-06 14:18:45 +00:00
Radosław Kapka
a0ca4a67b0
Remove API Middleware ( #13243 )
...
* remove api/gateway/apimiddleware
* fix errors in api/gateway
* remove beacon-chain/rpc/apimiddleware
* fix errors in api/client/beacon
* fix errors in validator/client/beacon-api
* fix errors in beacon-chain/node
* fix errors in validator/node
* fix errors in cmd/prysmctl/validator
* fix errors in testing/endtoend
* fix all other code
* remove comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-12-04 11:55:21 +00:00
Radosław Kapka
5ecb4d62a9
REST VC: Use POST to fetch validators ( #13239 )
2023-11-29 18:53:26 +01:00
james-prysm
bc107a61e3
builder API: remove blinded blob sidecar ( #13202 )
2023-11-29 06:28:37 -08:00
terence
7cc05401ca
Update proposer RPC to new blob sidecar format ( #13189 )
2023-11-27 15:44:52 -08:00
Radosław Kapka
2fbda536b0
Fix handling POST requests in the REST VC ( #13215 )
...
* Fix handling POST requests in the REST VC
* tests for decodeResp
2023-11-25 23:25:14 +00:00
Radosław Kapka
a7edec9b98
Better error handling in REST VC ( #13203 )
2023-11-21 17:42:55 +01:00
Terence
57eda1de63
Add RO blob sidecar ( #13144 )
2023-11-01 10:03:49 -07:00
Radosław Kapka
2ef0b3526d
Fix block proposals in the REST validator client ( #13116 )
...
* Fix block proposals in the REST validator client
* fix graffiti test
* return empty graffiti
* fallback to old endpoints
* logs
* handle 404
* everything passes
* review from James
* log undecoded value
* test fixes and additions
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 18:15:45 +00:00
Radosław Kapka
f925aded66
Allow unknown fields in Beacon API responses ( #13131 )
2023-10-27 16:47:50 +00:00
terencechain
76fec1799e
Replace Empty Slice Literals with Nil Slices ( #13093 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-23 16:36:11 +00:00
terencechain
9387a36b66
Refactor Exported Names to Follow Golang Best Practices ( #13075 )
...
* Fix exported names that start with a package name
* A few more renames
* Fix exported names that start with a package name
* A few more renames
* Radek's feedback
* Fix conflict
* fix keymanager test
* Fix comments
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 16:45:33 +00:00
Radosław Kapka
a536612c39
HTTP Beacon APIs for node ( #13010 )
2023-10-11 22:18:49 +02:00
james-prysm
55e4c6e1db
HTTP API: /eth/v1/beacon/pool/bls_to_execution_changes ( #12963 )
...
* wip
* wip changes for beacon handlers
* wip
* updating protos
* fixing conflict
* fixing protos
* fixing more tests
* migrating tests and removing one that is irrelevant
* fixing e2e
* fixing unit tests
* missed adding routes
* gaz
* fixing more tests
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek's comments
* fixing protos after conflict
* accidently removed a proto type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-10-11 14:08:06 +00:00
Dhruv Bodani
2806326155
integrate validator count endpoint in validator client ( #12912 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-10-11 15:23:02 +02:00
Preston Van Loon
8eb82dd378
Update rules_go and gazelle to 0.42 & 0.33 (latest releases) ( #13021 )
...
* Provide @go_googleapis, update gazelle
* fix pb build failures
Fix build issues with grpc-gateway
2023-10-10 12:50:29 +08:00
Radosław Kapka
f37301c0c0
Remove remote slashing protection feature ( #12989 )
...
* Remove remote slashing protection feature
* test fix
* remove mock from tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-04 04:15:06 +00:00
james-prysm
c8b39e08ef
cleanup on api types ( #12961 )
...
* removing code duplication using shared types
* gaz
* fixing test
* fixing tests
2023-09-27 09:26:32 -05:00
Radosław Kapka
e22258caa9
HTTP validator APIs ( #12887 )
...
* GetValidators in progress
* in progress
* completed implementation of GetValidators + some tests
* typo
* completed tests for GetValidators
* GetValidator
* GetValidatorBalances
* register
* more tests and e2e fix
* middleware cleanup
* remove struct
* handle all ignored
* test fixes
* more test fixes
* even more test fixes
* remove unused structs
* docs
* fix validator count test
* build fix
* add length checks
* lint fix
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-21 18:16:59 +00:00
Radosław Kapka
3bc9ac37f6
Add Content-Type header to VC POST requests ( #12942 )
2023-09-21 17:21:06 +00:00
Radosław Kapka
e76aedf1ae
HTTP API: GetLiveness and GetBlockHeader ( #12916 )
...
* GetLiveness
* GetBlockHeader
* simplify request objects
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-20 19:06:11 +00:00
Radosław Kapka
14f040de48
GetFinalityCheckpoints and GetGenesis HTTP endpoints (#12902 )
...
* GetFinalityCheckpoints and GetGenesis
* bzl
* remove unused func
* use const as base path
* bring back headers
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-19 17:53:45 +00:00
terencechain
998a493ee2
Fix builder blind block namings ( #12910 )
...
* Fix builder blind block namings
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-18 15:32:10 +00:00
anukul
4d120b53ae
HTTP Beacon API: /eth/v1/beacon/headers ( #12817 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-09-15 12:05:35 +02:00
Sammy Rosso
8c39c55f05
HTTP Beacon API: /eth/v1/beacon/states/{state_id}/committees ( #12879 )
...
* Initial setup
* Gaz
* Remove original implementation
* Fix protos
* Cleanup + tests
* Cleanup
* Radek' review + fixes
* Fix merge errors
* Fix imports
* Rename error handling
* Fix broken e2e
* Gaz
* Update comment
2023-09-13 17:29:32 +00:00