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
terence tsao
408392aa06
Enable prune canonical attestation ( #9576 )
...
* Enable prune canonical attestation
* Update shared/featureconfig/flags.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-13 20:10:45 +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
terence tsao
e8e62856c8
Enable insert orphaned attestation ( #9575 )
...
* Enable insert orphaned att
* Go fmt
2021-09-13 17:05:09 +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
Nishant Das
fd920bb786
Fix Finalized Block Retrieval in Altair ( #9561 )
...
* fix
* radek's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-13 06:57:31 +00:00
terence tsao
416840036a
Add beta4 spec test ( #9565 )
...
* Add beta4 spec tests
* Fix test setup for Altair registry update
* Update WORKSPACE
* Update churn limit calculation for e2e
* Hard set churn limit
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-11 01:33:31 +00:00
Preston Van Loon
1374b6dd4f
Enable active balance cache ( #9567 )
...
* Enable active balance cache
* gofmt
2021-09-10 21:47:25 +00:00
Raul Jordan
dcc1f7c0ec
Move End-to-End Tests for Altair Into Develop ( #9564 )
...
* end to end from hf1
* remove duplicate import
* skip sync eval
* conditional sync participation
* altair fork epoch to 6
* preston feedback
* proper fork epoch
* run for 6
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 19:59:43 +00:00
Radosław Kapka
2d9ae57378
Align SubmitPoolSyncCommitteeSignatures
to API HTTP spec ( #9563 )
2021-09-10 09:55:56 -07:00
terence tsao
c6e7ab79ef
Share ProcessSlashings
between upgrades ( #9557 )
...
* Reuse process slashing
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 15:57:16 +00:00
Radosław Kapka
006a2620c4
Align GetBlockV2
to API HTTP spec ( #9562 )
2021-09-10 10:20:52 -05:00
Nishant Das
741e136b22
Run Fork Watcher ( #9559 )
2021-09-10 11:51:55 +00:00
Nishant Das
1ccbe79209
Add Altair Metadata Changes ( #9552 )
...
* add metadata changes
* gaz
* add tests
* remove
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 08:10:08 +00:00
Nishant Das
57c2d86da1
Fork Watcher For Sync ( #9550 )
...
* add watcher
* raul's review
* preston's and terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 03:52:56 +00:00
Fredrik Svantes
ffd7579476
Add how users should report security vulnerabilities for this repository ( #9525 )
...
* Add how users should report security vulnerabilities for this repository
Suggestion to add a notice on how to report security vulnerabilities. This is visible at https://github.com/prysmaticlabs/prysm/security
* Add correct email
Co-authored-by: Nishant Das <nish1993@hotmail.com>
* Update SECURITY.md
Co-authored-by: Nishant Das <nish1993@hotmail.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-09-10 03:13:09 +00:00
Nishant Das
97f6143a43
Add Remaining Gossip Changes ( #9553 )
...
* add changes
* add changes here in
* rem duplicate import
* fix topic not being set in test
* terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-10 02:36:31 +00: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
Kirill Fedoseev
5325558f03
Recompute SqrRootSlotsPerEpoch at startup for custom configs ( #9554 )
...
* Recompute SqrRootSlotsPerEpoch at startup for custom configs
* Fix bazel deps
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-09 17:03:00 +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
Nishant Das
2faaafb159
add remaining rpc methods ( #9551 )
2021-09-09 10:12:49 -05: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
Nishant Das
279cc16c88
Add Sync Subnets Subscribers ( #9539 )
...
* add in digest
* add new stuff
* add tests
* terence's review
* Update beacon-chain/sync/subscriber.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-09-09 03:25:02 +00:00
Radosław Kapka
4b90c10cb2
Fix templating in eth
protos ( #9548 )
...
* 1st try
* working version
* clean up build file
* fix v1 + cleanup
* remove unneeded comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-08 19:37:26 +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
Nishant Das
90038a6001
Implement Network Encoder using SSZ Interface ( #9535 )
...
* add stuff
* unused
* kasey's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-08 23:16:53 +08: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
kasey
bc551b7e30
using upstream fastssz with altair fixes ( #9542 )
...
* using upstream fastssz with altair fixes
* update generated ssz code
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-07 19:42:37 +00:00
terence tsao
d7679d2e71
Validator: rest of the Altair changes ( #9532 )
...
* Bring in rest of the validator chagnes
* Go fmt
* Deepsource
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-07 18:43:50 +00:00
Radosław Kapka
ddbac85ec4
Allow returning Altair block headers ( #9543 )
...
* GetBlockHeader
* ListBlockHeaders
2021-09-07 18:07:30 +00:00
Nishant Das
ee28dc3d4f
Add in Fork Digest For Subscribers ( #9538 )
...
* add in digest
* radek's review
* raul's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-07 16:58:24 +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
Radosław Kapka
d6416b29b2
Set Content-Length
to zero for empty POST reponse ( #9540 )
...
* Set `Content-Length` to zero for empty POST reponse
* remove unused function param
2021-09-07 08:54:44 -05: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
terence tsao
ebf3897017
Validator: propose Altair block ( #9414 )
...
* Validator can propose block
* Gazelle
* Preston's feedback
* Rename
* Fix deep source
* Fix build
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-03 18:26:10 +00:00
Nishant Das
cc790ceb2e
Add RPC Changes to Sync For Block Methods ( #9497 )
...
* add changes
* radek's review
* kasey's review
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 16:00:56 +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
Preston Van Loon
265b5feabf
p2p: Handle nil topic ( #9522 )
...
* fix nil topic
* fmt
Co-authored-by: nisdas <nishdas93@gmail.com>
2021-09-03 14:39:54 +08:00
Nishant Das
30b2adc5d6
Add in Sync Contribution And Proof Pubsub Validator ( #9475 )
...
* add contribution handlers
* fix it
* fmt
* fix more
* add clean up
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/sync/validate_sync_contribution_proof.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* use validation pipeline
* deepsource
* fix all tests
* clean up
* comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-03 04:06:54 +00: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
Preston Van Loon
2d41f0885c
p2p: Split MsgID into its own file as a public method ( #9518 )
...
* p2p: Split MsgID into its own file as a public method
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 21:48:14 +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
Kirill Fedoseev
f319535af5
Fix countdown timer ( #9484 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-02 20:41:01 +00:00