Preston Van Loon
dc71f35f4f
Remove copyutil pkg, move v1alpha1 copy methods into v1alpha1 pkg ( #9533 )
2021-09-04 06:55:57 +00:00
Radosław Kapka
c45fe5cc1c
Implement GetStateV2
in the beacon API ( #9506 )
...
* implementation
# Conflicts:
# beacon-chain/state/v2/BUILD.bazel
* Revert "Auxiliary commit to revert individual files from 2cbe98c88777cac071876fe97f85029fad964e51"
This reverts commit edc4ff52e7796aefd1782e31eaf40231a3134693.
* tests
* fix function call
* make state package visible to migration
* fix span names
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-02 19:28:55 +00:00
terence tsao
b10964514a
Implement SubmitPoolSyncCommitteeSignatures
in the beacon API ( #9464 ) ( #9503 )
...
* Implement `SubmitPoolSyncCommitteeSignatures` in the beacon API (#9464 )
* Update server
* remove duplicated field
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-09-02 16:54:53 +00:00
Radosław Kapka
28e472aa5f
Implement PrepareSyncCommitteeSubnets
in the beacon API ( #9498 )
...
* initial implementation
* final implementation
* review
* fix logic
* refactor duration calculation
* tests
* revert alias change
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-01 17:19:29 +00:00
Radosław Kapka
822522a3af
Implement GetSyncCommitteeDuties
in the beacon API ( #9478 )
...
* implementation
* tests
* review feedback
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-28 22:00:46 +02:00
Radosław Kapka
89941d4be2
Implement GetBlockV2
in the beacon API ( #9433 )
...
* Implement `GetBlockV2` in the beacon API
* fix gateway config test
* Revert "fix gateway config test"
This reverts commit 8179400b2ac7cd302c1bca0f191145d017838f5d.
* unregister v2
* review feedback
* improve comment
* reduce duplication
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-26 15:22:06 +00:00
Raul Jordan
eac542a8ac
Change Eth2 Repository Names ( #9425 )
...
* eth2 repo name changes
* rem sha
* use consensus spec terminology and pin sha
2021-08-19 13:00:57 -05:00
Raul Jordan
72cfe50eff
Move Validator Accounts Protos Into Proper Place ( #9416 )
...
* move into proper namespace
* package naming
* add strict deps
* regen protos
* add web api
* regen
* builds
* rename
* build
2021-08-18 21:24:01 +00:00
Radosław Kapka
0d8ceb18b0
Improve v2
protos ( #9412 )
...
* Generate SSZ code for `BeaconBlockContainerV2`
* new line at end of file
* remove unneeded V2 suffix
* more fun stuff
# Conflicts:
# proto/eth/v1/generated.ssz.go
* rename Altair to V2
2021-08-18 15:50:37 +00:00
Radosław Kapka
1936f991eb
Prepare protos for Ethereum API v2.0.0 ( #9384 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
* without aggregation_bits
* aggregation_bits
* v2 endpoints
* generate new code and define function stubs
* build files
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 16:41:03 +00:00
Radosław Kapka
de907fc362
Fix java classname in beacon_debug_service.proto
( #9380 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:59:55 +00:00
Radosław Kapka
f516e71167
Move proto services to a different package ( #9379 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
2021-08-13 10:55:24 +00:00
Radosław Kapka
ede85c21e2
Clean up v1 protos ( #9377 )
...
* Clean up v1 protos
# Conflicts:
# proto/eth/v1/generated.ssz.go
* A little more cleanup
# Conflicts:
# proto/eth/v1/generated.ssz.go
* fix java class names
2021-08-13 09:12:18 +00:00
terence tsao
d77616f705
Fixes Issues Found by Goland IDE Code Inspect ( #9368 )
...
* Ran code inspect
* Update shared/testutil/altair.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 20:12:22 +00:00
Raul Jordan
a217d71d08
Sync Protobufs Between Hard Fork Branch and Develop ( #9362 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 19:14:49 +00:00
Radosław Kapka
456b4d463e
Implement PrepareBeaconCommitteeSubnet
in the validator API ( #9318 )
...
* validator migration
* status helpers
* implementation
* fix existing tests
* build file
* tests
* run endpoint through API Middleware
* reduce helper package visibility
* empty caches before each test
* assign all validators to subnets
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-08-05 07:23:52 +00:00
Radosław Kapka
c5b68b4f03
Implement PublishAggregateAndProofs
in the validator API ( #9294 )
...
* grpc implementation
* build file
* full implementation
* remove unused function
* tests
* wrap top-level array
* Update beacon-chain/rpc/eth/v1/validator/validator.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-04 09:01:38 +00:00
terence tsao
012d279663
Fix duplicated imports ( #9304 )
...
* Fix duplicated imports
* Fix metrics test
2021-07-29 16:45:17 -05:00
Raul Jordan
9145310647
Eliminate Proto V2 Namespace ( #9297 )
...
* get rid of v2 in prysm codebase
* replace block2
* builds
* terence comments
* gazelle
2021-07-28 21:23:44 +00:00
Raul Jordan
98f7f82b2f
Copy Altair Changes Into v1alpha1 Namespace ( #9296 )
...
* move the v2 changes into v1alpha1
* v1alpha1 builds
* regenerate pbs
* regenerate ssz
* top level builds
2021-07-28 18:05:07 +00:00
Raul Jordan
2d9915d2d9
Define Unimplemented V2 Services ( #9286 )
...
* generate ssz bindings for protos
* define services and unimplemented
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-27 20:42:14 +00:00
Raul Jordan
f700808c8b
Generate SSZ Bindings for Latest Protos ( #9285 )
2021-07-27 17:57:11 +00:00
Raul Jordan
1ea1c69174
Copy V1Alpha1 Protos and API Endpoints To V2 Namespace ( #9284 )
...
* v2 builds
* generate go code
* fix build
2021-07-27 16:54:49 +00:00
terence tsao
8db0c9a0e6
Move proto/interfaces -> proto/prysm/v2 ( #9270 )
...
* Move proto/interfaces -> proto/prysm
* Update paths
* Fix block2
* Update blocks_fetcher_utils.go
* Update BUILD.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 20:10:15 +00:00
Raul Jordan
30e93f5763
Move Slashing Protos to V2 ( #9256 )
...
* proto slashing
* move slashing related protos
* gaz
* include slasher pbs consolidated
* slasher pb fmt imports
* imports
* beacon builds
* build validator
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 18:01:01 +00:00
Radosław Kapka
a8363405f8
Implement ProduceBlock
in the validator API ( #9259 )
...
* server-side implementation
* build file
* run through api middleware
* tests
* build file
* gofmt
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-23 16:29:38 +02:00
Raul Jordan
2d10bcf179
Move State Protos Into V2 Namespace ( #9257 )
...
* move state protos
* regen ssz
* edit v1 code
* fix imports
* building
* beacon chain builds
* validator and shared builds
* fuzz builds
* changes
* spectest builds
* tools build
* remove import cycle
* generate ssz
* pcli
* gaz
* kafka
* gaz
2021-07-23 08:07:40 -05:00
Raul Jordan
5864795ca5
Move RPC Protos Into V2 Namespace ( #9254 )
...
* moved rpc protos
* gazelle
* change pb
* validator health
* edit name
* naming
2021-07-22 21:00:28 +00:00
Raul Jordan
b7919b3115
Move DB Protos Into V2 Namespace ( #9253 )
...
* move db protos into prysm v2
* build
* build
* imports gaz
* v2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 20:05:06 +00:00
Raul Jordan
715aa408e3
Move Web Protos Into Prysm V2 ( #9249 )
...
* move web protos
* move web to v2
* update web protos
* gaz
* proto build
* replace mentions of validator v2
* gaz
2021-07-22 19:19:24 +00:00
Raul Jordan
ceb1ec451a
Remove Faucet Protos ( #9252 )
...
* rem faucet protos
* tidy
2021-07-22 18:27:31 +00:00
Raul Jordan
0fb43aec34
Remove Unused Cluster Protos ( #9251 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 16:39:27 +00:00
Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
terence tsao
e7bdf35721
Fix unused variables ( #9234 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-21 16:06:57 +00:00
Preston Van Loon
3a35a953bf
proto/prysm/v2: Introduce Altair pb changes ( #9222 )
...
* Copy v2 protos from hf1
* Remove some extra Altair naming
* Build with github.com/ferranbt/fastssz/pull/50
* Regen pb.go
* Update fastssz to master
2021-07-19 20:42:06 +00:00
Preston Van Loon
15bfcf8ff6
Add tests for wrapped Altair objects ( #9213 )
...
* start tests for wrapped methods
* Add a few tests and skeletons for interface impl methods
* Add latest interfaces update from hf1 and stub the appropriate tests
* Add a few more tests
* More progress
* Migitate nil pointer issues in construct. Complete tests
* Copy changes from hf1 to v1alpha1 wrapper
* Use testutils from #9201
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-18 19:32:52 +00:00
terence tsao
97e6eb14e2
Altair block wrapper: update return to interfaces ( #9212 )
2021-07-16 23:09:45 +00:00
Radosław Kapka
223d5309a0
Implement GetAttesterDuties in the validator API ( #9207 )
...
* remove irrelevant comment
* fix proto documentation
* first implementation
* register validator server
* first working version
* add sync checker and test file
* first test
* gzl
* final version + tests
* gzl
* run duties through API Middleware
* extract dependent root getter
* dependentRoot docs
* wrap indices in array
* fix static analysis issues
* modify err nil check
* create local variables in slot processing test
* Update proto/eth/v1/validator_service.proto
* review
* simplify index loops
* better calculation of committees at slot
* comment about impossible comndition
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:55:22 +00:00
Preston Van Loon
31d2482f9c
Add proto wrappers for Altair ( #9209 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
* Copy hf1 cloners and add tests
* Introduce wrapper changes from hf1
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:30:26 +00:00
terence tsao
7f0749c398
Clean up shared interface package ( #9172 )
...
* Remove shared interface folder
* Rename file names
* Gazelle
* Move interface to /beacon/p2p/
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-13 18:58:43 +00:00
Radosław Kapka
4ebb008bc9
Protos and stubs for validator API endpoints ( #9174 )
...
* match proto definitions with spec
* stubs for grpc server's functions
2021-07-12 10:38:55 -05:00
terence tsao
1d3a9983cc
Move block interface next to generated pb ( #9146 )
...
* Move block interface next to pb
* Update fuzz build bazel
* Move interface to /proto/interface and wrapper next to generated pb
* Fix fuzz build bazel
* Add //proto/eth/v1alpha1/wrapper
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-06 15:34:05 +00:00
terence tsao
466546bb40
Add sync committee aggregation_bits
tags for minimal and mainnet ( #9147 )
...
* Add aggregation_bits tags for minimal and mainnet
* Update go-bitfield
* Go mod tidy
2021-07-03 18:59:35 -05:00
Nishant Das
5d65ace970
Implement Doppelganger Check ( #9120 )
...
* checkpoint changes
* Update beacon-chain/rpc/validator/status.go
Co-authored-by: Potuz <potuz@potuz.net>
* Update beacon-chain/rpc/validator/status.go
Co-authored-by: Potuz <potuz@potuz.net>
* add in client side tests
* add ordering
* add all new test cases
* gate feature
* handle edge case
* add one more test case
* fatal error
* zahoor's review
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* doppelganger not doppleganger
* preston's review
* add in comment
* change comment
* Fix e2e to only run new flags on the current version
* Fix bug where zero byte public keys were always sent in the request when attestation history existed. Still some tests to fix due to another bug in attester protection AttestationHistoryForPubKey.
* go mod tidy, gazelle
* Increase test size
* fix timeout, change size back to small
Co-authored-by: Potuz <potuz@potuz.net>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-07-02 12:11:09 +08:00
Preston Van Loon
d6bd619429
Bazel: minimal test build transitions ( #9122 )
...
* Add build transitions for minimal config based tests
* respect existing gotags
* clean up import
* Add some commentary
* gaz
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-06-30 19:22:09 +00:00
Raul Jordan
b23f63a064
Beacon State V2 Interface Definition With Semantic Version Paths ( #9125 )
...
* v2 state initialize and semantic paths
* ensure build
* gaz changes to ignored build files
* gaz
2021-06-30 15:06:19 +00:00
terence tsao
442f8d1d3c
Remove old protos ( #9107 )
2021-06-28 07:41:37 +00:00
Raul Jordan
a860648960
Reduce Usage of Eth2 Terminology in Prysm ( #9104 )
...
* remove all mentions
* more changes
* folder by folder
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-26 19:00:33 +00:00
Raul Jordan
8f5c0833ff
Block Stream V2 Protos ( #9096 )
2021-06-25 00:05:38 +00:00
Raul Jordan
860716666b
Add Altair Protobuf Changes to Prysm ( #9087 )
...
* all altair protobuf additions
* add altair changes to deps
2021-06-24 10:32:30 -05:00