Sammy Rosso
6944d22ce3
Add support for engine_exchangeCapabilities ( #12224 )
...
* Add call to engine_exchangeCapabilities
* Fix unused import
* Cleanup + tests
* Warning only when needed
* Add Radek' feedback
2023-04-17 12:55:22 +00:00
james-prysm
f5bfb8e9eb
revert protobuf depreciation - ValidatorPerformanceResponse ( #12192 )
...
* accidently deprecated protobuf message
* accidently checked in blob changes
2023-03-27 13:39:21 -05:00
terencechain
5bb1491d8f
Remove blob protos ( #12173 )
...
* Remove old protobufs
* Rm generated files
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-21 18:08:05 +00:00
shana
4d5827c527
Fix payload attributes json ( #12169 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-03-21 13:36:18 +00:00
Nishant Das
88f03967dd
Apply Goimports to Generated Files ( #12170 )
...
* gofmt
* build
2023-03-21 11:12:23 +00:00
terencechain
d17996f8b0
Update to V4
🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
Nishant Das
e58b66f76d
Fully Deprecate Vectorized HTR Flag ( #12148 )
...
* cleanup
* gaz
* fix tests
* remove unused hasher
* gaz
* fix last one
* fix tests
* fmt
2023-03-17 11:41:02 +00:00
Potuz
99997fa2e3
forkchoice changes ( #12126 )
...
* forkchoice changes
* gazelle
* remove best justified from forkchoice dump
* keep protobufs and update comment
* remove phase0 tests
* bumb spectests version
* missing sha
* Fix sha256 for spec
* rpc tests
* Mark field 3 as reserved so it will never be used it again
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2023-03-16 14:27:30 -03:00
james-prysm
b180a7de81
Prysm V4: SSE api adding payload_attributes ( #12102 )
2023-03-14 19:04:31 -07:00
terencechain
5c234c8c68
Mark GetChainHead deprecated ( #12128 )
...
* Mark GetChainHead deprecated
* Add deprecation notice to protobuf definition
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon_chain.pb.go
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-14 21:06:34 +00:00
Sammy Rosso
49f0c44dfe
Add getpayloadbodies ( #11973 )
...
* el payload bodies code
* Add getPayloadBodies
* Add error 38004
* Add unmarshal
* Add ExecutionPayloadBodyV1 to proto
* Add EnableCapellaEngineMethods flag
* Small fixes
* Add proto files
* gazelle
* passing tests
* compile
* Add remaining tests
* fix tests
* Cleanup
* Fix gazelle
* Remove comments
* Rename the flag + add missing description
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2023-03-14 15:52:16 +00:00
Preston Van Loon
a0ff5ff792
Only build non-test targets in hack/update-go-pbs.sh ( #12101 )
...
* Only build non-test targets in hack/update-go-pbs.sh
* run ./hack/update-go-pbs.sh
* Add ability to pass config to bazel
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 17:49:34 +00:00
terencechain
00b9e484e5
Cleanups from eip4844 branch ( #12109 )
...
* Minor cleanups from eip4844 branch
* Add back handler
* Fix gazelle
* More fixes
* More fixes
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 16:46:27 +00:00
james-prysm
7c3027801b
Prysm v4 - mark old endpoints for deprecation ( #11997 )
...
* updating some protos
* updating proto endpoints
* updating generated code
* fixing linting
* updating protos
* updating based on feedback. also removing unused storage protos
* adding in deprecation notice on the server functions
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/debug.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/v1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* addressing feedback
* rewording comment
* updating comments
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 16:32:03 +00:00
james-prysm
c379c9ea47
Prysm V4 - Deprecate web UI endpoints ( #12025 )
...
* wip adding deprecation to web api endpoints
* wip adding more deprecation notices
* adding in a few more deprecation markers
* updating order of comments
2023-02-23 15:24:06 +00:00
Radosław Kapka
75e8f85ba5
Handle EL offline/unavailable in getSyncingStatus
( #12031 )
...
* Handle EL offline/unavailable in `getSyncingStatus`
* fix type
* better name
* test fix
2023-02-23 12:09:56 +00:00
Potuz
3d0ecdff3f
Fix forkchoice endpoint path ( #11986 )
...
* fix endpoint path
* update protos
* fix double import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 13:45:25 +00:00
terencechain
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08:00
Sammy Rosso
81b29ea2d8
Update produce block funcs to support Capella ( #11959 )
...
Co-authored-by: rkapka <rkapka@wp.pl>
2023-02-10 17:20:38 +01:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
Radosław Kapka
b10e59a144
Add finalized
flag to API responses ( #11947 )
...
* server code
(cherry picked from commit fc68e6e78f2a84c66cd6c4db2a482cccdaf487d5)
* tests
* middleware
* more tests
* fix one more test
2023-01-31 17:58:16 -06:00
Sammy Rosso
9136d30121
Return error when using unsupported mnemonic language ( #11805 )
...
* Return error when using unsupported mnemonic language
* Fix failing tests
* More test fixes
* Add MnemonicLanguage to CreateWalletRequest
* Add MnemonicLanguage to remaining tests
* Add language to error
* Add missing (.)
* Set default language + fix renumbered fields
* Replace hardcoded language with default var
* default set
* gaz
* fix proto field setting
* fix up
* Remove WithMnemonicLanguage from tests
* Remove WithMnemonicLanguage from tests
* Fix conflicting information failure
* Gazelle + remove hardcoded english values
* fix
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-26 23:44:38 +00:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Radosław Kapka
a296a0c783
Update builder code to Capella ( #11904 )
2023-01-26 14:07:44 +01:00
terencechain
79d6ce45ad
Add capella's marshal and unmarshal ( #11879 )
...
* Add capella's marshal and unmarshal
* skip test
* Fix TestJsonMarshalUnmarshal/execution_payload_Capella
* Fixing test
* Skip http test
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 23:44:59 +00:00
Potuz
fbafbdd62c
Stream blocks capella ( #11883 )
...
* capella blocks stream
* add unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 12:17:18 +00:00
terencechain
5480d607ac
Change withdrawal amount unmarshal to uint64 (gwei) ( #11866 )
...
* Change withdrawal amount unmarshal to uint64 (gwei)
* Init server
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2023-01-16 21:25:16 +00:00
terencechain
4762fd71de
Add historical summaries to beacon api state ( #11863 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-12 17:06:23 +00:00
terencechain
7fa3ebfaa8
Add historical summaries to state and processing ( #11842 )
...
* Add historical summaries to state and processing
* Process historical roots test
* Passing spec tests
* Fix shas and tests
* Fix mainnet spectest sha
* Fix tests
* Update beacon-chain/core/epoch/epoch_processing.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/core/epoch/epoch_processing_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/prysm/v1alpha1/beacon_state.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/state/state-native/hasher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Radek's feedback
* Getters error
* Dont return
* Fix else
* Fix tests
* Fix test
* Rm white space
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2023-01-11 22:20:15 +00:00
Potuz
c1f00923c1
Implement bls_to_execution_changes beacon endpoint ( #11845 )
...
* Initial implementation
* fix withrawal unit tests
* add custom hooks api middleware test
* unit tests for endpoint
* update screwed proto file
* double import
* Raul review
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2023-01-06 05:17:33 +00:00
Patrice Vignola
83f48350b2
Fix a bunch of deepsource warnings ( #11814 )
2022-12-22 09:20:10 +00:00
Radosław Kapka
2dc56878cd
Implement getPoolBLSToExecutionChanges
API endpoint ( #11801 )
...
* Implement `getPoolBLSToExecutionChanges` API endpoint
* fix
(cherry picked from commit d602c94b7b0a9c4ecab7a8da023a559d39ce893b)
* unify with Capella
* newline
2022-12-21 13:01:04 +00:00
Radosław Kapka
cb02a6897d
Update block Beacon APIs to Capella ( #11706 )
...
* proto+ssz
* refactor GetBlindedBlockSSZ
(cherry picked from commit 97483c339f99b0d96bd81846a979383ffd2b0cda)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
(cherry picked from commit 9e4e82d2c55e09be7568b28eaa33cdd1141445f4)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* add Capella version
(cherry picked from commit 5d6fd0bbe663e5dd16df5b2e773f68982bbcd24e)
(cherry picked from commit 82f6ddb693ac9e8b4336b30fae724e478b9e8ec0)
* support SSZ lol
(cherry picked from commit 52bc2c8d617ac3e1254c493fa053cdce4a1ebd63)
(cherry picked from commit d7d70bc25b3ee8acbea10aaf77d26cd1f8c5f26f)
* update withdrawals proto
* refactor and test GetBlockV2
(cherry picked from commit c1d4eaa79d4df04bd284ec65cf261b6f5f260a97)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* refactor and test GetSSZBlockV2
(cherry picked from commit fbc4e73d31c2f68d55d1e2bb8e7f2d8c7458c0a0)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* test other functions
(cherry picked from commit 31d4a4cd1165b882d823696e5983ac6635262ec2)
* move stuff to blinded_blocks.go
(cherry picked from commit 0a9e1658ddb28f45ae5c1cb9fc2703cbb8c6708d)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* fix migration code
* add Capella to SubmitBlock
* custom hooks
* missing structs
* fix tests
* fix tests
* review
* fix build issues
* replace ioutil with io
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 23:42:07 +00:00
Radosław Kapka
1fbb3f3e51
Reconstruct full Capella block ( #11732 )
...
* Merge branch 'reconstruct-capella-block' into capella
(cherry picked from commit b0601580ef1c876a79074a477556ecbeeef49178)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
# proto/engine/v1/json_marshal_unmarshal.go
* remove unneeded test
* rename methods
* add doc to interface
* deepsource
(cherry picked from commit 903cab75eea384c75018e3da4fc45b471ebaf0ea)
# Conflicts:
# beacon-chain/execution/testing/mock_engine_client.go
* bzl
* fix failing tests
* single ExecutionBlockByHash function
* fix engine mock
* deepsource
* reorder checks
* single execution block type
* update tests
* update doc
* bytes test
* remove toWithdrawalJSON
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 13:42:48 +00:00
Radosław Kapka
0798092ca8
API finalized
metadata field - update protos ( #11749 )
...
* API `finalized` metadata field - update protos
* change nums
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-12 16:59:27 +00:00
Patrice Vignola
fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock
( #11731 )
...
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-12-12 10:39:51 +00:00
Radosław Kapka
7dc966bb3b
Update state Beacon APIs to Capella ( #11708 )
...
* proto
(cherry picked from commit 24f45e021061782ab4d6c101a95368310aad67b6)
* implementation
(cherry picked from commit bbfa22c2053e8176fc004b13ba9c8d62cc3bd352)
# Conflicts:
# beacon-chain/rpc/apimiddleware/structs.go
* fix compilation error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-06 00:36:23 +00:00
Radosław Kapka
c7a3cf8563
GetForkChoice
API endpoint (#11680 )
...
* proto
* middleware
* change structure
* fix all issues
* test
* validity field
2022-11-28 19:17:53 +00:00
Radosław Kapka
6c3b75f908
Upgrade getBlindedBlock
API endpoint to Capella ( #11687 )
...
* proto
(cherry picked from commit 7101910e0fab5a5572795115679fd6f8d8c8379b)
* GetBlindedBlock
(cherry picked from commit e5c269ddf7b0c9e04f72ed28982a82de56fcac55)
* middleware
(cherry picked from commit 1719ce5967b0f74786c596cc921f7256e6b224f3)
* refactor
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
* update error message
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-11-28 18:17:05 +00:00
Radosław Kapka
f2399e21e1
GetLiveness
API endpoint (#11617 )
...
* proto
* initial version
* middleware + tests
* change request structure
* fix all issues
* review feedback
* simplify out-of-range check
2022-11-23 18:23:22 +00:00
terencechain
e2ffaf983a
Add minimal withdrawal size ( #11658 )
...
* Add selector with minimal withdrawal size
* @potuz's feedback, Add PayloadAttribruteV2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-22 16:05:37 +00:00
Potuz
de73baa4a7
Update 3068 ( #11656 )
...
* rename last_withdrawal_validator_index
* Update Capella methods to Specs #3068
* Add missing renames
* rename minimal state
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:38:21 +00:00
Radosław Kapka
53d4659654
GetRandao
Beacon API endpoint (#11609 )
...
* `GetRandao` Beacon API endpoint
* test optimistic execution
* review
* change epoch in test
2022-11-05 23:04:58 +00:00
terencechain
09e117370a
Flatten blob to an array ( #11614 )
...
* Flatten blob to an array
* Rename data back to blob
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com>
2022-11-04 15:03:25 +00:00
Potuz
bb09295072
Remove withdrawal Queue ( #11610 )
2022-11-03 16:55:44 +00:00
terencechain
0fd5253915
Remove unused protobuf imports ( #11602 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-02 13:46:23 +00:00
terencechain
86e855d499
Rename blob.blob
to blob.data
( #11601 )
2022-11-02 14:21:03 +01:00
terencechain
d1f0e5dd55
Run ./hack/update-go-pbs.sh
( #11598 )
2022-11-01 23:08:52 +00:00
terencechain
2142b13a41
Add 4844 containers to protobuf ( #11596 )
2022-10-31 12:11:40 -07:00
Radosław Kapka
ffac232d89
Capella beacon block ( #11566 )
...
* in progress
* done, no tests yet
* fix ToBlinded()
* Revert "Auxiliary commit to revert individual files from 2e356b6f5b15d409ac15e825c744528591c13739"
This reverts commit 081ab74e88fb7d0e3f6a81e00fe5e89483b41f90.
* tests
* fix tests
* one more fix
* and one more
* review
* fix proto_test
* another fix
* do not return error when nil object is wrapped
* allow nil payload in body.Proto()
* correctly assert error
* nil checks in body.Execution()
* simplify PR
* Revert "Auxiliary commit to revert individual files from 5736c1f22f2d2f309b9303c13d0fb6b1679c6ecb"
This reverts commit 1ff3a4c864923f5c180aa015aa087a2814498b42.
* fix slice sizes in cloner tests
* better payload tests
* review
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-10-31 17:58:30 +00:00