Radosław Kapka
4d90afe944
Fixed size arrays in block interfaces and structs ( #11375 )
...
* Fixed size arrays in block fields
* test fix
* fmt
* fix fetcher test
* fix fuzz tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 14:30:16 +00:00
Potuz
9ce922304f
Track timestamp in forkchoice ( #11333 )
2022-08-29 14:49:02 +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
james-prysm
762b3df491
Beacon API: api wrongly marked deprecated ( #11316 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-25 21:02:17 +00:00
terencechain
1d07bffe11
Beacon api: fix get blind block ( #11304 )
...
* Beacon api: fix get blind block
* Gaz
* Add back before bellatrix behavior
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-25 17:19:17 +00:00
Han Shen
3a4c599a96
Implement delete gaslimit ( #11290 )
...
* Implement delete gaslimit.
* Minor comment change.
* Reset gaslimit to DefaultConfig's gaslimt instead of 0.
* After gaslimit deletion, use global gaslimit default value instead of values provided in ProposalConfig.
* After deletion, use config default, if that is not available, use global default gaslimit value.
* Use grpc's codes.NotFound instead of http code "404".
* Updated bazel deps (new imports "google.golang.org/grpc/codes" was added for tests).
* Fix "TestServer_RecoverWallet_Derived" test failure.
Previously "params.BeaconConfig()" (thus the default global value
"BLSSecretKeyLength") was overriden by standard_api_test:TestServer_DeleteGasLimit.
Fixed the problem by retoring the origin global default after the test is done.
* Do not change BeaconConfig object, instead change BeaconConfig.DefaultBuilderGasLimit.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-25 14:43:21 +00:00
Raul Jordan
b60e508c89
Remove Slasher Deprecated Protos ( #11257 )
...
* rem deprecated
* fix slasher
2022-08-18 15:56:05 +00:00
Han Shen
4af7d8230a
Implement "set gaslimit" for KeyManager API ( #11208 )
...
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* Fixed comment string.
* Regenerated key_management proto files.
* Addressed code review comment - explitly set BuildConfig.Enabled to false.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-18 04:49:54 +00:00
terencechain
d815fa8f21
Remove deprecated eth endpoints ( #11251 )
...
* Remove deprecated eth endpoints
* Add back blockroot
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:20:34 +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
james-prysm
2377d6d6ea
Register validator beacon api ( #11225 )
...
* adding in beacon API request Object
* fixed proto generation
* fixing protos
* adding new API logic and fixing linting
* adding work in progress unit test for validator registrations
* fixing unit test
* fixing linting
* fixing function name to match interface
* changing emptypb to empty.Empty
* fixing import complaint
* removing unused import
* fixing import
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com>
* adding emptypb.Empty back in
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* adding validator registration API to apimiddleware
* fixing import
* fixing import format
* fixing protos
* fixing goimports
* removing duplicate import
* fixing proto
* fixing error message in test
Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-08-17 11:41:51 +00:00
Radosław Kapka
1c180e5088
Protobuf cleanup ( #11096 )
...
* remove v2 from all messages that are not request/responses
* rename StreamBlocksAltair to StreamBlocks
* fix tests
* fix validator module
(cherry picked from commit 7f2263e90e80499a851c2e09605e2ef5dccb0df8)
# Conflicts:
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* fix mocks
* update validator.pb.go
* Revert "rename StreamBlocksAltair to StreamBlocks"
This reverts commit 9c961c4e643e1c4d292f07acadab3c981e760fe4.
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* Revert "Auxiliary commit to revert individual files from a872c9d59dee869da5a9c7236c7ac34fcaf8d54c"
This reverts commit 89f19e4f15006c4a0efe593229abc433491e578e.
* Revert "Auxiliary commit to revert individual files from 9acbf7b0160626dae0d39c58fa0d8a3e48c203e0"
This reverts commit 398ecc9cef460c27e7fc92efe4df3fc9d3dbe566.
* update mocks
* fix build errors
* patch up
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 01:35:27 +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
sragss
7d7e6fcd62
deprecate eth http api endpoints; update protos ( #10946 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-14 23:29:56 +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
Han Shen
760d2fcfbc
This PR is for issue #11155 "Keymanager APIs: gas limit api" ( #11156 )
...
* This PR is for issue #11155 "Keymanager APIs: get_limit api".
This PR implements the first task "get gas limit for the validator key".
* Removed useless import alias.
* Added regenerated key_management.pb.go/pb.gw.go files as well as endpoint_factory.go changes.
* Address James's comments:
1. api path component should be "gas_limit" instead of "gaslimit".
2. ran curl test like:
- go build -o tmp/validator
- ./tmp/validator --web --validators-external-signer-url=http://localhost:9000/
- curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.C-BuVfWhKpr9elB05GTJdEEx_8AzkImxzXL03IqcHR8" 127.0.0.1:7500/eth/v1/validator/0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5/gas_limit
- {"data":{"pubkey":"0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5","gas_limit":"30000000"}}
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
2022-08-08 17:52:18 +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
Radosław Kapka
879e310332
Native Blocks Ep. 2 - Switch usages to new package ( #10885 )
...
* panic in SizeSSZ
* moving slowly
* adapt old code to new interfaces
* return interfaces from factory functions
* replace the rest of WrappedSignedBeaconBlock
* WrappedBeaconBlock
* WrappedBeaconBlockBody
* miscellaneous
* Test_BeaconBlockIsNil
* replace usages of BeaconBlockIsNil
* replace usages of mutator
* fix all build errors
* fix some more issues
* mutator changes
* relax assertions when initializing
* revert changes in object_mapping.go
* allow calling Proto on nil
* Revert "allow calling Proto on nil"
This reverts commit ecc84e455381b03d24aec2fa0fa17bddbec71705.
* modify Copy and Proto methods
* remove unused var
* fix block batch tests
* correct BUILD file
* Error when initializing nil objects
* one more error fix
* add missing comma
* rename alias to blocktest
* add logging
* error when SignedBeaconBlock is nil
* fix last test
* import fix
* broken
* working
* test fixes
* reduce complexity of processPendingBlocks
* simplified
2022-08-02 15:30:46 +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
Nishant Das
2d6b157eea
Disable Fuzz Targets ( #11060 )
...
* add changes
* fix fuzzer again
* is fixed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2022-07-26 16:19:30 +08: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
Radosław Kapka
5d94fd48ca
Revert "Testutil refactor attestations ( #10952 )" ( #11073 )
2022-07-19 14:41:15 +02: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
Nishant Das
d41805a39c
Fuzz Remaining Engine Objects ( #11049 )
...
* add new fuzz tests
* add fixes
* remove test
* add more checks
* remove comment
2022-07-14 11:33:32 -04:00
Nishant Das
b0e15f3c8f
Fix FuzzForkChoiceResponse Crash ( #11043 )
2022-07-13 09:47:14 +00:00
Raul Jordan
d8f9750387
Only Unmarshal Full Tx Bodies in ExecutionBlock JSON Unmarshaler ( #11006 )
...
* full tx unmarshaling fixed
* prefix check
2022-07-07 23:08:44 +00:00
Raul Jordan
b67c885995
Major Simplification of JSON Handling for Execution Blocks ( #10993 )
...
* no more execution block custom type
* simpler json rpc data unmarshaling
* simplicify
* included hash and txs fix
* all tests
* pass
* build
* mock fix
* attempt build
* builds
* build
* builds
* pass
* pass
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 22:06:00 +00:00
Nishant Das
ce277cb388
Add Fuzzing For JSON Marshalling/Unmarshalling Methods ( #10995 )
...
* modify it
* add gaz
* revert
* deps
* revert change
* fix it
2022-07-06 15:15:14 +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
Sammy Rosso
8ebbde7836
Testutil refactor attestations ( #10952 )
...
* Add AttestationUtil receiver
* Modify usage to account for the receiver
* Add missing explanatory comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2022-06-29 16:42:33 +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