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
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
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
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
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
terencechain
c24016f006
Add validator index with Withdrawal pb ( #11563 )
...
* Add validator index with Withdrawal pb
* Update BUILD.bazel
* Fix test
* Better tests
2022-10-22 20:54:50 +00:00
Radosław Kapka
5f4c26875b
Remove ValidatorCapella
protobuf ( #11562 )
2022-10-19 17:56:50 +00:00
Radosław Kapka
b7a878d011
Resolve remaining native state tasks ( #11561 )
...
* remove ToProto and ToProtoUnsafe wrappers
* TestAppendBeyondIndicesLimit
* change type of genesisValidatorsRoot
* fuzz tests
* check type assertion
2022-10-19 10:37:45 -04:00
terencechain
e8400a0773
Fix complains and bad test ( #11555 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-17 16:20:26 +00:00
Radosław Kapka
cafe0bd1f8
Capella beacon state ( #11141 )
...
* fork
* types
* cloners
* getters
* remove CapellaBlind from fork
* hasher
* setters
* spec params, config tests
* generate ssz
* executionPayloadHeaderCapella
* proto state
* BeaconStateCapella SSZ
* saving state
* configfork
* BUILD files
* fix RealPosition
* fix hasher
* SetLatestExecutionPayloadHeaderCapella
* fix error message
* reduce complexity of saveStatesEfficientInternal
* add latestExecutionPayloadHeaderCapella to minimal state
* halway done interface
* remove withdrawal methods
* merge setters
* change signatures for v1 and v2
* fixing errors pt. 1
* paylod_test fixes
* fix everything
* remove unused func
* fix tests
* state_trie_test improvements
* in progress...
* hasher test
* fix configs
* simplify hashing
* Revert "fix configs"
This reverts commit bcae2825fcc8ba45a2b43d68ad0ab57f8eac8952.
* remove capella from config test
* unify locking
* review
* hashing
* fixes
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-10-12 11:39:19 -05:00
terencechain
211c5c2c5c
Beacon api: produce block should skip mev-boost ( #11488 )
...
* Beacon api: produce block should skip mev-boost
* Update comments
* Additional test and comments
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Fix suggestion
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-09-23 18:45:26 +00:00
james-prysm
20e99fd1f9
Improvement to Fee Recipient UX ( #11307 )
...
* updating mock
* adding new internal api
* adding generated code
* converting validator index to pubkey
* adding new API endpoint
* fixing mock related new API
* fixing unit tests
* preventing failure on startup, replacing with warnings
* improving log message
* changing warn log to error log
* fixing error formatting
* improve log on beacon node side on startup
* fixing deepsource issue
* improving logs
* fixing unit tests
* fixing more tests
* adding error check
* adding in new case for fee recipient to avoid conflicts on changing beacon node suggested fee recipient
* adding default fee recipient check for gas limit as well
* adding improved unit tests
* accidently checked in tmp folder
* adding more unit tests
* fixing gas limit unit test
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* addressing comments
* updating proto generated files
* fixing linting and addressign review comments
* fixing unit test
* improve error handling
* accidently added tmp folder
* improving function error returns
* realizing i am wrapping error incorrectly
* fixing unit test
* addressing review comment
* fixing linting
* fixing unit test
* improving ux around enable builder
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-09-22 11:35:35 -05:00
terencechain
d860daff75
clean up: godoc comments, redundant castings and more ( #11428 )
...
* clean up: Godoc comments, redundant castings and more
* Fix assertion check
* Update beacon-chain/forkchoice/doubly-linked-tree/forkchoice.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/forkchoice/protoarray/store.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2022-09-12 14:03:20 +00:00
Radosław Kapka
30cd158ae5
Move forkchoice dump to eth
namespace ( #11325 )
...
* protos
* server code
* rename v2 to v1 in endpoint
* middleware
* test fix
* test fix
* oops
* remove duplicated import
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-26 14:54:32 +00:00
Potuz
e1f56d403c
Restore forkchoice dump endpoint. ( #11312 )
...
* Restore forkchoice dump endpoint.
Only working on doubly-linked-tree.
* unit test
* revert proto changes
* protoarray
* Deepsource
* shut up!
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:37:23 +00:00
Raul Jordan
b60e508c89
Remove Slasher Deprecated Protos ( #11257 )
...
* rem deprecated
* fix slasher
2022-08-18 15:56:05 +00:00
terencechain
515e7c959f
Remove deprecated RPC ListBlocks
( #11243 )
...
* Remove deprecated RPC ListBlocks
* Fix test
* Rm mock
* Go imports
* Rm unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:07:28 +00:00
terencechain
95430ddb57
Remove deprecated SubmitValidatorRegistration
( #11242 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 16:35:41 +00:00
Raul Jordan
1062f5fe4d
Fix Proto Generation Scripts and Regen Protos With V3 Bindings ( #11227 )
...
* proto gen fix
* regen protos and ssz bindings
* regen
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:52:24 +00:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com>
2022-08-16 12:20:13 +00:00
Potuz
155d60dd60
Remove forkchoice debug endpoint ( #11105 )
...
* Remove forkchoice debug endpoint
* change protos
Co-authored-by: terencechain <terence@prysmaticlabs.com>
2022-08-15 21:04:39 +00:00
james-prysm
63b7376b75
Prysm V3: update signing type ( #11099 )
...
* updating proto name
* updating generated files
* updating names on block v2 and v3 signing types
* fixing import format
* fixing unit tests
* fixing unit test
* fixing more conflicts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 18:22:14 +00:00
james-prysm
f7a298ae8f
Prysm V3: delete old unused APIs ( #11086 )
...
* initial commit
* removing old unusued functions and tests
* updating proto generated files
* fixing unit tests
* fixing linting
* fixing file format
* fixing formatting
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-12 09:48:38 +00:00
terencechain
d08aa6b23f
Remove deprecated block RPC ( #11106 )
...
* Remove deprecated block RPC
* Sync and fix test
* Update BUILD.bazel
* Fix e2e
* Fix e2e
2022-08-11 14:07:52 +00:00
terencechain
d4ab08050f
Clean up: fix typos ( #11165 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 18:47:30 +00:00
Preston Van Loon
0c3df40b1f
Remove unused proto import ( #11164 )
...
* Remove unused proto import
* Update generated go files
2022-08-03 18:26:20 +00:00
terencechain
699bfdfdb4
Rename pow to execution ( #11135 )
...
* Rename pow to execution
* Fix complain
* Fix complain
2022-08-01 14:43:47 +00:00
terencechain
5005fbfe71
Validate builder signature for Bid ( #11124 )
...
* Validate builder signature for Bid
* Few renamings
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-29 05:16:18 +00:00
Radosław Kapka
eb066da5c2
Capella changes to protobufs ( #11128 )
2022-07-28 16:19:36 +00:00
terencechain
44ae300b04
Use the correct withdrawal ( #11123 )
...
* Use the correct withdrawal
* Move withdrawal to engine.proto
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>
2022-07-28 13:56:30 +00:00
Radosław Kapka
e5ab259ee1
Capella changes to protobufs ( #11119 )
...
* manual proto changes
* generated files
* missed comment
2022-07-27 18:39:15 +02:00
terencechain
9149dc2aae
Run ./hack/update-go-pbs.sh
( #11107 )
2022-07-26 16:45:16 +00:00
Potuz
7aee67af90
Withdrawals: containers and process BLS to ETH1 changes ( #11090 )
...
* add proto for withdrawal containers
* process BLSToExecutionChange
* unit tests
* go fmt
* gaz
* unused error
* Fix import error
* Radek's review
* failed test
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-25 14:10:18 +00:00
Preston Van Loon
da25624b1d
Validator gRPC: Add deprecated endpoint to prevent breaking change from v2.1.3 ( #11078 )
...
* Add a deprecated gRPC endpoint to prevent breaking changes from prior release
* Fix validator build, tests still fail
* Fix validator tests
* Fix validator tests
* Fix validator tests
* Update mocks and uncomment the endtoend fee recipient check. Also
updates proto generated files.
* Remove unrelated changes
* Remove unrelated changes
* Stop yelling
* Finish renaming
2022-07-20 11:08:13 -05:00
Preston Van Loon
5722a5793c
Tracing: properly overwrite context so that spans can be correctly attributed ( #11012 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-14 17:00:33 +00:00
Raul Jordan
77a63f871d
Included Blinded Beacon Block in V1alpha1 Protobuf ( #10989 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-05 21:03:14 +00:00
Radosław Kapka
f376f3fb9b
Integrate better fastssz validation errors into Prysm ( #10945 )
...
* update dep
* regenerate SSZ, update test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-29 16:05:56 +08:00
Radosław Kapka
b82e2e7d40
Use prysmaticlabs/fastssz
as a direct dependency ( #10941 )
...
* Update dependency
* Regenerate SSZ files
* fix BUILD files
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-28 13:03:24 +00:00
Radosław Kapka
31f96a05b3
Update fastssz dependency in deps.bzl
( #10939 )
2022-06-27 18:32:38 +02:00
Radosław Kapka
2b6e86ec1b
Some test improvements ( #10928 )
...
* extract DeterministicGenesisStateWithGenesisBlock
(cherry picked from commit a5e3a9c9bbbacb23a644f5c68c92839a315f66a1)
# Conflicts:
# testing/util/state.go
* part 1
* part 2
* part 3
* fix errors
* db interface public visibility
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-24 17:22:39 +00:00
terencechain
0b50ab7832
Consolidate ExecutionPayloadHeader
Protobuf definitions ( #10917 )
2022-06-22 13:08:06 +02:00
terencechain
7e64a3963d
Change submit validator registration to registration(s) ( #10907 )
...
* Change submit validator registration to registration(s)
* Fixed a few tests
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>
2022-06-21 18:46:28 +00:00
terencechain
546bb5ed53
Clean up misc warnings ( #10900 )
...
* Clean up misc warnings
* Gazelle
* Rm state assignments
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-21 15:26:56 +00:00
Håvard Anda Estensen
b55ddb5a34
Use go:build lines and remove obsolete +build lines ( #10704 )
...
* Use go:build lines and remove obsolete +build lines
* Run gazelle
* Update crypto/bls/blst/stub.go
* Update crypto/bls/blst/stub.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-06-14 11:47:27 +00:00
terencechain
7fcadbe3ef
Add optimistic status to chainhead ( #10842 )
...
* Add optimistic status to chainhead
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 17:37:52 +00:00
james-prysm
db687bf56d
Validator client builder support ( #10749 )
...
* Startinb builder service and interface
* Get header from builder
* Add get builder block
* Single validator registration
* Add mev-builder http cli flag
* Add method to verify registration signature
* Add builder registration
* Add submit validator registration
* suporting yaml
* fix yaml unmarshaling
* rolling back some changes from unmarshal from file
* adding yaml support
* adding register validator support
* added new validator requests into client/validator
* fixing gofmt
* updating flags and including gas limit, unit tests are still broken
* fixing bazel
* more name changes and fixing unit tests
* fixing unit tests and renaming functions
* fixing unit tests and renaming to match changes
* adding new test for yaml
* fixing bazel linter
* reverting change on validator service proto
* adding clarifying logs
* renaming function name to be more descriptive
* renaming variable
* rolling back some files that will be added from the builder-1 branch
* reverting more
* more reverting
* need placeholder
* need placeholder
* fixing unit test
* fixing unit test
* fixing unit test
* fixing unit test
* fixing more unit tests
* fixing more unit tests
* rolling back mockgen
* fixing bazel
* rolling back changes
* removing duplicate function
* fixing client mock
* removing unused type
* fixing missing brace
* fixing bad field name
* fixing bazel
* updating naming
* fixing bazel
* fixing unit test
* fixing bazel linting
* unhandled err
* fixing gofmt
* simplifying name based on feedback
* using corrected function
* moving default fee recipient and gaslimit to beaconconfig
* missing a few constant changes
* fixing bazel
* fixing more missed default renames
* fixing more constants in tests
* fixing bazel
* adding update proposer setting per epoch
* refactoring to reduce complexity
* adding unit test for proposer settings
* Update validator/client/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* trying out renaming based on feedback
* adjusting based on review comments
* making tests more appropriate
* fixing bazel
* updating flag description based on review feedback
* addressing review feedback
* switching to pushing at start of epoch for more time
* adding new unit test and properly throwing error
* switching keys in error to count
* fixing log variable
* resolving conflict
* resolving more conflicts
* adjusting error message
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
2022-06-06 19:32:41 +00:00
terencechain
3e36eacd1e
Add registration DB methods ( #10812 )
2022-06-03 15:13:04 +00:00