james-prysm
71fa70ce40
CLEANUP: validator exit prompt ( #13057 )
...
* removing check special phrase in url from validator exit
* fixing missed tests
* fixing unit test and addressing preston/sammy's comments
* fixing test
* sammy's comments
* deepsource recommendation
* Update validator/accounts/accounts_helper.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* sammy's review
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-18 14:00:25 +00:00
james-prysm
bfae7f3c9f
HTTP VALIDATOR API: /eth/v1/validator/{pubkey}/voluntary_exit ( #13032 )
...
* migrating set validator exit to http only and removing from api middleware
* fixing ineffassign error
* cleaning up middleware
* fixing linting
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* adding more tests based on sammy's comments
* radek's feedback
* adjusting error codes
* one more status change
* fixing unit test
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-16 22:16:20 +00:00
james-prysm
493a7179d7
Deneb - web3signer ( #12767 )
...
* wip
* adding deneb block
* adding in support for blobs and fixing unit tests for deneb
* fixing linting
* gaz
* adding support for new web3signer version
* fixing tag name
* addressing feedback
* fixing tests
* adding unit test for review
* updating test name
* updating unit tests and length logic
* adding in lengthfor root
* adjusting max blob length
* fixing mock
* fixing another mock
* gaz
* adding network configs
* removing duplicate
* changing based on nishant's feedback
* Update validator/keymanager/remote-web3signer/v1/requests.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/keymanager/remote-web3signer/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* sammy's suggestions
* removing temp file
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-16 18:06:36 +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
3070878d59
Add Blind Blob Sidecar Signing in Validator Client ( #12922 )
...
* Add validator signing blind blob sidecar
* Fix tests
* Refactor
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-19 00:36:42 +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
Radosław Kapka
79445d2bf6
HTTP Beacon API: /eth/v1/validator/duties ( #12810 )
...
* impl
* protos
* remove apimiddleware from e2e
* register endpoint
* get epoch from vars
* tests
* test fixes
* remove unused function
* GetProposerDuties
* proto
* fix compilation
* register
* tests
* GetSyncCommitteeDuties
* protos
* register
* tests in progress
* complete tests
* check altair epoch
* more testing
* create variable
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-12 13:57:04 +00:00
terencechain
35fc1c976f
Improved Logging for Blob Sidecar ( #12883 )
...
* feat: improve blob sidecar logs
* Kasey's feedback
2023-09-11 20:46:06 +00:00
james-prysm
b0423a94af
REST implementation of /eth/v1/beacon/states/{state_id}/fork ( #12835 )
...
* fork state endpoint
* removing generated files
* fixing linting
* fixing tests using old type
* moving the response object to a new file under shared
* fixing test
* gaz
* fixing generated code
* gaz
* fixing linting
* rolling back some changes
* reverting generated changes
* fixing spacing
* linting
* updating protos after develop merged
* addressing radek's comments
* addressing more radek comments
2023-09-11 18:57:17 +00:00
james-prysm
6c16e90fe9
deneb - validator beacon rest apis ( #12871 )
...
* wip
* adding tests for deneb
* adding deneb to get block
* Update validator/client/beacon-api/get_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-09-11 16:50:55 +00:00
Bharath Vedartham
2a408a0dd8
don't send pre-genesis signed validator registration objects to relayers ( #12847 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-09 18:53:02 +00:00
Stefan
f17898f658
add a RW lock for duties ( #12861 )
...
* add a RW lock for duties
* remove superfluous rlock
* remove defer from if
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-09-07 18:23:10 +00:00
Radosław Kapka
34f507f4b2
HTTP implementation of /eth/v1/beacon/pool/sync_committees ( #12782 )
...
* impl
* protos
* tests
* register endpoint
* test fix
* test fix
* remove path
* more test fixes
* cleanup
* bzl
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-01 17:58:50 +00:00
james-prysm
bfecbf97db
REST implementation of /eth/v1/validator/prepare_beacon_proposer ( #12781 )
...
* implementing prepare beacon proposer endpoint in full rest
* fixing type naming on validator client
* fixing linting
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing feedback
* fixing unit tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-31 17:02:39 +00:00
terencechain
f5d5a506ff
fix: validator returning the right # of blobs ( #12738 )
2023-08-31 08:41:57 -05:00
terencechain
96a9a6fc16
feat: add validator blob signing ( #12730 )
2023-08-31 08:41:57 -05:00
terencechain
6314f7fcbf
feat: log blob commitment count ( #12723 )
2023-08-31 08:41:57 -05:00
terencechain
f3ca945bb4
feat: add builder override ( #12601 )
2023-08-31 08:41:57 -05:00
james-prysm
6050501eb1
migrating Beacon API code from eip4844 to deneb-integration ( #12568 )
2023-08-31 08:41:57 -05:00
terencechain
2be87f623b
feat(rpc/validator): stream and use deneb block ( #12510 )
2023-08-31 08:41:57 -05:00
Dhruv Bodani
4ef29a24e4
Add REST implementation of node version endpoint ( #12809 )
2023-08-25 13:14:08 +00:00
james-prysm
4d520460e0
REST implementation of /eth/v1/validator/register_validator ( #12758 )
...
* migrating v2 to http native url
* removing old code
* gaz
* updating beacon api validator client code
* fixing tests
2023-08-21 15:42:43 +00:00
Matthew Obwaya
33410a0ec1
Remove uses of deprecated go_embed rules_go ( #12719 )
...
* Remove prysm_web_ui http_archive from WORKSPACE
* Remove go_embed_data_dependencies() from WORKSPACE
* Remove go_embed_data target from validator/web/BUILD.bazel
* Remove # gazelle:ignore site_data.go annotation from validator/web/BUILD.bazel
* Run bazel run //:gazelle
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-08-16 15:47:09 +00:00
Raul Jordan
8229f3eb84
Prysm Web UI Release v2.0.4 ( #12746 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2023-08-15 21:11:44 +00:00
anukul
46c72798c7
HTTP Beacon API: /eth/v1/validator/attestation_data ( #12634 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-14 17:56:36 +03:00
Radosław Kapka
049e608c75
HTTP Beacon API: /eth/v1/validator/sync_committee_subscriptions ( #12689 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* review
* James' review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-08 22:54:04 +00:00
m3diumrare
d2ff995eb2
Fix reported effective balance for unknown/pending validators ( #12693 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-07 09:19:02 -05:00
Bharath Vedartham
33abe6eb90
add metric to check if validator is in next sync commitee ( #12650 )
...
* add metric to check if validator is in next sync commitee
* Update validator/client/validator.go
* Update validator/client/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2023-08-01 08:25:10 +00:00
james-prysm
e449724034
Bugfix: proposer-settings edge case for activating validators ( #12671 )
2023-07-27 16:45:16 +00:00
james-prysm
ec60cab2bf
Bugfix: Metrics adding fix pending validators balance ( #12665 )
2023-07-26 16:09:24 +00:00
james-prysm
9c250dd4c2
Builder gas limit fix default to 0 in some cases ( #12647 )
...
* adding fix for nethermind's findings on gaslimit =0 on some default setups
* adding in default gaslimit check
* fixing linting on complexity
* fixing cognitive complexity linting marker
* fixing unit test and bug with referencing
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-22 03:44:50 +00:00
Radosław Kapka
056d3ff0cc
Fix GetValidatorPerformance endpoint ( #12638 )
2023-07-19 15:29:07 +00:00
Sammy Rosso
4ac4d00377
Implement GetValidatorPerformance beacon chain client ( #12581 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* Implement GetValidatorPerformance
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Update + add broken test
* Gaz
* fix
* Fix test
* Create const for endpoint
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-18 08:57:54 +00:00
dependabot[bot]
ecb26e9885
Bump google.golang.org/grpc from 1.40.0 to 1.53.0 ( #12595 )
...
* Bump google.golang.org/grpc from 1.40.0 to 1.53.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.40.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.40.0...v1.53.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Run gazelle and fix new gRPC API
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-07-06 20:11:43 +00:00
0xalex88
0b10263dd5
Increase validator client startup proposer settings deadline ( #12533 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-30 21:37:39 +00:00
james-prysm
d0c740f477
Registration Cache used by default and other UX changes for Proposer settings ( #12456 )
...
* WIP
* WIP
* adding in migration function
* updating mock validator and gaz
* adding descriptive logs
* fixing mocking
* fixing tests
* fixing mock
* adding changes to handle enable builder settings
* fixing tests and edge case
* reduce cognative complexity of function
* further reducing cognative complexity on function
* WIP
* fixing unit test on migration
* adding more tests
* gaz and fix unit test
* fixing deepsource issues
* fixing more deesource issues missed previously
* removing unused reciever name
* WIP fix to migration logic
* fixing loging info
* reverting migration logic, converting logic to address issues discussed on slack, adding unit tests
* adding test for builder setting only not saved to db
* addressing comment
* fixing flag
* removing accidently missed deprecated flags
* rolling back mock on pr
* fixing fmt linting
* updating comments based on feedback
* Update config/features/flags.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* fixing based on feedback on PR
* Update config/validator/service/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/client/runner.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/db/kv/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* adding additional logs to clear up some steps based on feedback
* fixing log
* deepsource
* adding comments based on review feedback
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-29 02:49:21 +00:00
Sammy Rosso
20f4d21b83
Keymanager API: Add validator voluntary exit endpoint ( #12299 )
...
* Initial setup
* Fix + Cleanup
* Add query
* Fix
* Add epoch
* James' review part 1
* James' review part 2
* James' review part 3
* Radek' review
* Gazelle
* Fix cycle
* Start unit test
* fixing part of the test
* Mostly fix test
* Fix tests
* Cleanup
* Handle error
* Remove times
* Fix all tests
* Fix accidental deletion
* Unmarshal epoch
* Add custom_type
* Small fix
* Fix epoch
* Lint fix
* Add test + fix empty query panic
* Add comment
* Fix regex
* Add correct error message
* Change current epoch to use slot
* Return error if incorrect epoch passed
* Remove redundant type conversion
* Fix tests
* gaz
* Remove nodeClient + pass slot
* Remove slot from parameters
* Fix tests
* Fix test attempt 2
* Fix test attempt 2
* Remove nodeClient from ProposeExit
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:06:16 -05:00
james-prysm
6edbfa3128
multiple validator status - optimization ( #12487 )
...
* adding optmization
* addressing comments
* adding a test and fixing change in assignments.go
* making some changes based on review of the code
* removing irrelevant test
* changing formatting
2023-06-15 17:20:00 -05:00
james-prysm
996ec67229
changing default on bad validators ( #12535 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-15 16:40:59 +00:00