deepsource-autofix[bot]
531f05d30d
Unused parameter should be replaced by underscore ( #9632 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-20 20:51:59 +00:00
terence tsao
161a13ac09
Correctly filter sync committee message at period boundary ( #9626 )
...
* Add head sync committee indices with slot consideration
* Apply rpc
* Apply sync
* Update tests
* Update mock.go
* Update sync_committee_test.go
* Update validator_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-20 18:06:43 +00:00
terence tsao
2ba29a3cfc
Move block and attestation to proto v1alpha1 folder ( #9618 )
...
* Add block and attestation to container pkg
* Move aggregation into attestation
* Update attestation_test.go
* Move them to proto
* Gazelle
* fix cycle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-20 16:17:03 +00:00
Raul Jordan
11a1f681e0
Move Shared Packages Into Async/ ( #9620 )
...
* async packages
* change pkg
* build
* working
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-18 17:26:11 +00:00
Raul Jordan
7dadc780b8
Move Shared Packages into Math/ and IO/ ( #9622 )
...
* amend
* building
* build
* userprompt
* imports
* build val
* gaz
* io file
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 21:55:24 +00:00
Raul Jordan
d2f74615ab
Move Miscellaneous Shared/ Packages Into Semantic Groups ( #9624 )
...
* remove shared network and ip util
* forkutil
* gaz
* build
* gaz
* nogo
* genrule
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 19:20:50 +00:00
Radosław Kapka
93a4ebc662
Enable SSZ-serialization in v2 endpoints ( #9587 )
2021-09-17 14:08:59 +00:00
Raul Jordan
8f0008c45a
Move Related Packages Into API/ Pkg ( #9619 )
...
* begin on api pkg
* build
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 19:55:51 +00:00
Raul Jordan
23e2d62c0c
Create Container Package for Shared/ Subpackages ( #9607 )
...
* ensure run
* amend
* fix initial sync test target
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 12:05:58 -05:00
Raul Jordan
495e92ce9f
Create Runtime Package for Moving Several Packages in Shared/ ( #9588 )
...
* add maxprocs
* add prereqs
* add tos and version pkg
* add in all runtime packages
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 09:46:29 +00:00
Radosław Kapka
d020e1b2d9
Correctly display epoch participation in GetStateV2
( #9598 )
...
* Correctly display epoch participation in `GetStateV2`
* fix file names
* handle null case
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 02:51:51 +00:00
terence tsao
ee5d75732d
Add pkg crypto ( #9603 )
...
* Add pkg crypto
* Update go.yml
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 22:55:11 +00:00
Radosław Kapka
c47923d20e
Properly display sync committees in GetStateV2
( #9599 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-15 17:23:13 +00:00
Nishant Das
34391fa780
Implement Batch Verifier For Pubsub Objects ( #9344 )
...
* add initial commit
* add aggregates in
* fmt
* add new changes
* gaz
* fix copy
* terence's review
* fix broken build
2021-09-15 05:49:50 +00:00
terence tsao
31a78ab22a
Create config package for Shared/featureconfig ( #9593 )
...
* add config/features
* Gazelle
* Gazelle
* Fix build
* Go mod tidy
* active cache
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-09-15 01:18:39 +00:00
terence tsao
3e71997290
Create time Package for Shared/timeutil, mclock and slotutil ( #9594 )
...
* add time pkg
* Go fmt
2021-09-15 00:09:04 +00:00
Raul Jordan
9935ca3733
Move Shared/ Subpackages Into Monitoring/ Folder ( #9591 )
...
* add tracing
* monitoring pkg
* move prom
* Add client stats
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:59:51 +00:00
Radosław Kapka
5b37deb1a6
Allow listing attestations for Altair blocks ( #9580 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:03:09 +00:00
Radosław Kapka
f98505bfbe
Align ProduceBlockV2
to HTTP API spec ( #9581 )
...
* Align `ProduceBlockV2` to HTTP API spec
* snake case protos
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 17:48:24 +00:00
Radosław Kapka
ac3c544e29
Make until_epoch
exclusive in PrepareSyncCommitteeSubnets
( #9579 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 15:14:28 +00:00
Radosław Kapka
25f2ca4159
Align ProduceSyncCommitteeContribution
to HTTP API spec ( #9572 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 14:39:16 +00:00
Radosław Kapka
ae21665b0a
Align GetStateV2
to API HTTP spec ( #9569 )
2021-09-14 09:07:03 +00:00
Radosław Kapka
562e128251
Align GetSyncCommitteeDuties
to API HTTP spec ( #9570 )
...
* Align `GetSyncCommitteeDuties` to API HTTP spec
* doc
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 19:14:05 +00:00
Radosław Kapka
4f86714c2a
Align PrepareSyncCommitteeSubnets
with API HTTP spec ( #9571 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 18:16:16 +00:00
Radosław Kapka
1e4063e69c
Align PublishContributionAndProofs
to HTTP API spec ( #9573 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 17:47:05 +00:00
Radosław Kapka
ed68dd757f
Implement ProduceBlockV2
in the beacon API ( #9560 )
...
* Rename service func to ProduceBlockV2
# Conflicts:
# beacon-chain/rpc/eth/validator/validator.go
* initial implementation
# Conflicts:
# beacon-chain/rpc/eth/validator/validator.go
# proto/eth/v2/validator.pb.go
* test first try
* try new signature in test
* Fix test's sync committee signature
* Use 0xAA instead of 0xFF
* properly get altair block
* final implementation
* Revert "Auxiliary commit to revert individual files from 17779d4228b8c65452343fe5c51ef5764766f732"
This reverts commit 3f352a145c70c8edf8dd283f684fecf93f6d6487.
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* revert pb.go changes to block
* add signature to return value
* fix ineffectual assignment
* simplify if/else statement
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-13 13:58:42 +00:00
Radosław Kapka
2d9ae57378
Align SubmitPoolSyncCommitteeSignatures
to API HTTP spec ( #9563 )
2021-09-10 09:55:56 -07:00
Radosław Kapka
006a2620c4
Align GetBlockV2
to API HTTP spec ( #9562 )
2021-09-10 10:20:52 -05:00
Radosław Kapka
fc44ecbb16
Align GetEpochSyncCommittees
to API HTTP spec ( #9555 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-09 21:54:08 +00:00
Radosław Kapka
a6abfa5dd8
Implement PublishContributionAndProofs
in the beacon API ( #9526 )
...
* implementation
* tests
* do not reuse pool
* godoc
* Revert "Auxiliary commit to revert individual files from 7f95a794ef9b2e1feac4683e181fc7d0fc289a0a"
This reverts commit 917ed4cc7a457847139d11bfb7c8d163584b48be.
* handle error in test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-09 15:49:11 +00:00
Radosław Kapka
ddfa269e4f
Add Version
field to v2
endpoints ( #9546 )
...
* version enum
* get block
* get state
* rename shared to version
* goimports
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-09 13:29:09 +00:00
Radosław Kapka
cb9c1ad0fe
Implement Semi-Generic GetBeaconBlock
RPC Endpoint for Pre & Post-Fork Blocks ( #9517 )
...
* BuildBlockData
* GetBlockAlatair
* build file
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* review comments
* add alias
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* add get block test
* comment
* implement get beacon block
* commentary
* test setup issues
* Use correct genesis state
* test renames
* pass
* rem commented code
* ctx unused
* proper grpc errors
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-09 05:26:49 +00:00
Raul Jordan
83a9079700
Implement Generic ProposeBeaconBlock Function for RPC ( #9549 )
...
* add in generic propose block method
* propose generic with tests
* ineff assign issue
2021-09-08 18:54:04 +00:00
terence tsao
7c45c5f8cd
More misc altair changes ( #9547 )
...
* More altair changes
* Gazelle
2021-09-08 17:52:37 +00:00
Preston Van Loon
b586d3784b
Rename beacon-chain/core/state to beacon-chain/core/transition pkg ( #9530 )
...
* Move, refactor, fix
* @rkapka PR feedback: revert irrelevant changes
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-08 10:41:47 +00:00
Radosław Kapka
ddbac85ec4
Allow returning Altair block headers ( #9543 )
...
* GetBlockHeader
* ListBlockHeaders
2021-09-07 18:07:30 +00:00
Raul Jordan
d210dd7691
Maintainable Beacon Block API Endpoints ( #9528 )
...
* add new proto endpoints and deprecate old
* regen protos
* regen mocks
* begin fixing tests
* build tests
* e2e build
* go build
* resolve conflicts
* pass tests
* amend generated name
* fix build
* more fixes
* update gateway paths
* radek comments
* fix comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-07 15:17:50 +00:00
Preston Van Loon
dc71f35f4f
Remove copyutil pkg, move v1alpha1 copy methods into v1alpha1 pkg ( #9533 )
2021-09-04 06:55:57 +00:00
Preston Van Loon
4beb352e6f
Move Slot and Epoch functions from helpers to core pkg ( #9519 )
...
* Move Slot and Epoch functions from helpers to core
* limited viz
* goimports
* fix fuzz build
* fix fuzz build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 20:10:31 +00:00
terence tsao
29b851a2b7
RPC: Stream altair block ( #9521 )
...
* Add tests
* Fix tests
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 19:11:40 +00:00
Radosław Kapka
e875fe3dfc
Implement ProduceSyncCommitteeContribution
in the beacon API ( #9524 )
...
* implementation
* test
* change func signature
* remove broadcaster from test
2021-09-03 09:47:35 -05:00
terence tsao
924fe20dcd
RPC: list block altair end point ( #9494 )
...
* Implement list block altair
* Dont export block container
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 22:21:33 +00:00
terence tsao
019f0257c2
RPC: sync committee duties ( #9501 )
...
* Add get altair duties
* Refactor, clean up, Rahul's feedback
* Gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 21:17:42 +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
1f48accb0e
RPC: Extend participation and performance to Altair ( #9499 )
...
* Add endpoints and tests
* Update beacon-chain/rpc/prysm/v1alpha1/beacon/validators_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 18:42:04 +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
4b9fb1cd1b
Add tests to GetBlockV2
( #9486 )
...
* Add tests to `GetBlockV2`
* add missing error assert
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 13:08:47 +00:00
terence tsao
95e07963fb
Stategen: fix state by slot off by 1 ( #9509 )
...
* Fix state by slot off by 1
* Comment
* Go fmt
* Add err
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-02 03:05:08 +00:00
Radosław Kapka
69ed46af0f
Add RPC validator sync committee code ( #9510 )
2021-09-01 23:08:05 +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