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
Nishant Das
49440c90ba
Add in Database Support For Altair Blocks ( #9387 )
...
* add in schema
* gaz
* fix panic in rpc
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 15:50:49 +00:00
Nishant Das
47ee6fa17e
Add in Altair Message ID Function ( #9382 )
...
* add in changes
* add method call
* gaz
* rauls review
* rauls review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-14 14:36:02 +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
Nishant Das
a1c0bee397
Add in Object Mapping For Types ( #9381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:28:26 +00:00
Raul Jordan
b42465a7dd
Optimized Slasher Parameters ( #9361 )
...
* add in parameters and helpers files
* add in small set of changes
* build file
* viz
2021-08-13 16:53:04 +00:00
Nishant Das
8fe22422a6
add it in ( #9383 )
2021-08-13 10:53:51 -05: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
Nishant Das
a9f2170657
Update P2PUtils And Parameters From Altair ( #9373 )
...
* add changes
* add p2putils changes
* clean up
* fix build
* remove test
* raul's review
2021-08-13 13:11:11 +08:00
Nishant Das
3a528147a2
Change to Proto Check For Blocks ( #9372 )
...
* check inner objects
* add test in here.
* verify better
2021-08-13 00:35:23 +00:00
Nishant Das
c8cffbbf02
Update Dependencies For Prysm ( #9374 )
...
* update deps
* tidy
2021-08-12 11:07:13 -05:00
Raul Jordan
1f102c256d
Altair Committee Cache Changes ( #9366 )
...
* changes to hf1 caches
* suggested
* Update beacon-chain/cache/sync_subnet_ids.go
* add in proper changes
* committee.go
* committee test and disabled
* nil active balance check
2021-08-12 00:04:40 -05:00
terence tsao
e3492698f8
Core: modified process attestation for Altair ( #9367 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Check length
* Go fmt
* Add process att
* Refactor and tests
* Update attestation.go
* Gazelle
* Under flow error message
* Update beacon-chain/core/altair/attestation.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 21:58:25 -05:00
Jim McDonald
5256751e8b
Trim SSE event names. ( #9342 )
...
* Trim SSE event names.
When sending SSE events the event name contains trailing whitespace.
This patch removes the whitespace before processing the event, ensuring
it is easily parsed by clients.
* Separate test.
* Test receiveEvents, not writeEvent.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-11 23:00:39 +00:00
terence tsao
225f9a74f6
Add epoch participation and proposer base reward helpers ( #9356 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Check length
* 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-08-11 20:54:45 +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
Raul Jordan
efa1f29311
Use Different Golang JWT Library ( #9360 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 18:10:53 +00:00
Raul Jordan
136b157d00
Better Slashing Protection Import/Export User Experience ( #9355 )
...
* failure mode if command goes wrong
* improve export
* fix struct orderw
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 17:24:24 +00:00
Raul Jordan
c1280867ed
Add Tracing Request Sink to E2E ( #9341 )
...
* add tracing request sink
* fix struct order
* add in base64 encode and gzip
* add encoding and gzip
* tracing sink and replay tool
* post
* replay
* include latest sink and replay tool
* capture the gzout file instead
* rem time sleep
* handle err
* better handling
* add documentation
* changes
* working sync
* working
* added more logging
2021-08-11 15:38:00 +00:00
Nishant Das
0dd7a8b078
Fixes Altair Bug Introduced For State Representation ( #9358 )
...
* add test
* test
* test
2021-08-11 15:02:55 +00:00
terence tsao
41ab27402f
Sync committee subnet cache ( #9350 )
...
* Add sync subnet id cache
* Update BUILD.bazel
* Update BUILD.bazel
* Update beacon-chain/cache/sync_subnet_ids.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Add comments
* add more comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: nisdas <nishdas93@gmail.com>
2021-08-11 00:26:20 +00:00
terence tsao
9668ab0fea
Clean up duplicated imports ( #9354 )
2021-08-10 14:55:24 -05:00
Radosław Kapka
7a9c717ae0
Reduce locking time in recomputeFieldTrie
( #9353 )
...
* Reduce locking time in `recomputeFieldTrie`
* add comment
* reuse variable and improve comment
2021-08-10 09:54:35 +00:00
Nishant Das
a5998fab2f
Clean Up State Representation ( #9339 )
...
* checkpoint all work
* add new fixes
* fixes
* gaz
* terence's review
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-09 21:54:24 +00:00
terence tsao
8df6854a74
Core: upgrade state to Altair ( #9349 )
...
* Add upgrade to altair
* Update BUILD.bazel
* Update beacon-chain/core/altair/upgrade.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Move getter and setter outside the loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-09 21:27:51 +00:00
Jim McDonald
3de168b806
Fix state state transition logging. ( #9343 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-09 20:05:46 +00:00
Preston Van Loon
bfdaf8a3f5
Fix config loader tests ( #9348 )
...
* don't mutate mainnet config
* add missing minimal config params
* Ensure all yaml fields were set and are correct
* gofmt
* Add sanity check that some empty yaml wasn't given
* Gazelle and deepsource feedback
2021-08-09 18:40:06 +00:00
terence tsao
38787353a2
Attestation: get participation status ( #9340 )
...
* Add participation flag indics matching helpers
* Gazelle
* Tests
* Update BUILD.bazel
* Update attestation.go
2021-08-09 16:35:46 +00:00
Nishant Das
170e2e115b
Fix Flaky Sync Committee Test ( #9337 )
...
* fix flake
* Update beacon-chain/core/altair/sync_committee_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-09 14:49:13 +00:00
terence tsao
be85b7f909
Cleanup: remove test only process block/attestation ( #9345 )
...
* Remove test only process block attestation code
* Rm fuzz process block
* Revert "Rm fuzz process block"
This reverts commit 5d1b0f0741eb1dd7489aa6998bdf8987a26e20e0.
* Still can test fuzz
* Fix return
* More unused funcs
2021-08-08 22:01:06 -05:00
terence tsao
ad048a8750
Rewards/penalties: epoch processing for Altair ( #9334 )
...
* Add epoch precompute methods
* Better name
* Bring expensive computation outside
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-06 20:02:35 +00:00
Raul Jordan
90ea158301
Add Some More Traces to Blockchain Service ( #9336 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-06 15:02:36 +00:00
Radosław Kapka
ef9eff29b8
Tiny state management improvements ( #9338 )
...
* Tiny state management improvements
* fix indices length calculation
* review comments
* revert function rename
2021-08-06 10:47:50 +00:00
terence tsao
4cce4f1ee5
Refactor slash validator func's signature ( #9321 )
...
* Refactor slash validator func's signature
* Named arguments
* Update beacon-chain/core/blocks/proposer_slashing.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-06 04:06:49 +00:00
Raul Jordan
ce10be9a16
Add Latest Slasher KV Methods to DB Subpackage ( #9328 )
...
* tests pass
* use end slot for epoch pruning
* amended to endslot of epoch
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-08-05 21:27:05 +00:00
Raul Jordan
4f0b00894b
More Precise Metrics E2E ( #9331 )
...
* metrics test copute slots since genesis
* gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 20:44:56 +00:00
Radosław Kapka
57fac9b74f
Improve API Middleware design ( #9324 )
...
* remove superfluous WriteHeader call
* move custom handlers outside hooks
* rename OnPostStart hook
* function that returns a default endpoint
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 20:21:43 +00:00
Mohamed Zahoor
395feeb35d
Cross check db state bucket after migration ( #9311 )
...
* added state db check after migration
* satisfy deepsource
* added db compare after migration sub-command
* fomt issue
* point ot bolt issue
* gazel fix
* maxUint84
* revert accidental deletion of WORKSPACE file
* added sorting support
* cleanup debug
* gazel fix
* satisfy deepsource
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 18:30:05 +00:00
terence tsao
7bc22e4ddf
Cache: sync committee index position ( #9317 )
...
* Add sync committee index cache
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 17:44:13 +00:00
Radosław Kapka
016beb51c0
Make SubmitAttestations
v1 implementation similar to v1alpha1 ( #9319 )
...
* Make `SubmitAttestations` v1 implementation similar to v1alpha1
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 08:01:20 +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
terence tsao
4d33068496
Core helper: validate sync message time ( #9325 )
...
* Add validate sync message time
* Update BUILD.bazel
2021-08-05 12:39:32 +08:00
terence tsao
6e9faa3618
Epoch: precompute functions for Altair part 1 ( #9309 )
...
* Add epoch precompute methods
* Split into part 1 for better review
* Update epoch_precompute_test.go
* Preston's feedback
* Skip if the valiator is not eligible
* Add regression test for non eligible
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-04 15:13:05 +00:00
Nishant Das
fd42cb712f
Fix Incorrect Conditional Check ( #9323 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-04 13:50:27 +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
Mohamed Zahoor
239d904d27
Fix memory usability ( #9310 )
...
* fix cache usability
* fix the name of the prometheus flag
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-04 02:33:28 +00:00
terence tsao
461be99fac
Block: process sync aggregate ( #9308 )
...
* Add altair base reward funcs
* Update BUILD.bazel
* Add process sync aggregate
* Update BUILD.bazel
* Update block.go
* Update block_test.go
* Feedback, refactor and more tests
* Further refactor sync committee votes
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-03 16:14:15 +00:00
Preston Van Loon
9572add171
Fail fast when using old define=ssz=<value> ( #9316 )
...
* Fail fast when using old define=ssz=<value>
* remove print statement
2021-08-02 19:04:30 +00:00