Nishant Das
0ea4e9a71c
fix trie ( #9495 )
2021-08-31 08:01:26 -07:00
terence tsao
da5f37fc71
Clean up from hf1
( #9493 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-08-31 10:47:44 +00:00
Preston Van Loon
59e8523272
fix spectest timeouts and sizing ( #9492 )
...
* fix spectest timeouts and sizing
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-31 09:36:56 +00:00
Nishant Das
8d4b92962b
Add in Remaining Altair Core Tests ( #9489 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-08-31 07:18:45 +00:00
terence tsao
8f88d574f5
Stategen: replay altair epoch ( #9468 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-30 23:57:08 +00:00
terence tsao
921acc300b
Clean up ProcessInactivityScores
( #9483 )
2021-08-30 22:50:51 +00:00
terence tsao
516401537a
Update to spec test beta3 ( #9491 )
...
* Update to beta3 spec tests
* `ProcessEpochParticipation` processes only active indices
* Go fmt
* Update epoch_precompute_test.go
* Update WORKSPACE
* Fix current and previous epoch switch up
2021-08-30 19:32:11 +00:00
terence tsao
572498f954
Fix deep source complains ( #9485 )
2021-08-29 20:57:37 +02:00
Raul Jordan
20a1a58860
Proposer Sync Aggregate RPC Methods ( #9479 )
...
* sync agg
* more readable
* pass tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-28 20:47:45 +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
Nishant Das
4d02329cd5
Add in P2P Changes ( #9390 )
...
* add in initial changes
* add test method
* raul's review
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* preston's review
* kasey's review
* only 1
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-27 09:34:20 +08:00
Raul Jordan
031830baa4
Remove Kafka from Prysm ( #9470 )
...
* remove kafka
* gaz
* rem foreign rules
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 23:59:00 +00:00
terence tsao
2cc9fc9e0e
Add altair spec tests ( #9477 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 23:08:04 +00:00
terence tsao
1284496648
Increase seen attestation cache sizes ( #9476 )
...
* Increase attestation cache sizes
* Update WORKSPACE
* Go fmt
* Fix tests
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 21:37:35 +00:00
Raul Jordan
c1f841d6d4
Allow Sending Interfaces Over Application Event Feeds ( #9458 )
...
* add event feed changes
* deep source issues
* omit receiver name
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-08-26 15:21:29 -05:00
Raul Jordan
7d5f30b01e
Delete Deprecated Flags and Old Slashing Protection for V2 ( #9453 )
...
* delete deprecated flags and old slashing protection schema
* remove toledo mentions
* build
* do not remove migration
2021-08-26 13:48:25 -05: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
terence tsao
74df479bd3
Use active balance cache ( #9469 )
...
* Use active balance cache
* Feature flag and test
* Gazelle
* Fix fuzz
* Fix test
* Mix in validator count
* Update test to reflect validator count
* Add eth1 data block hash
* Fix assign
* Use eth1 data root
* Update active_balance_test.go
* Remove eth1 data root
* Remove eth1 data usage in tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-26 14:32:40 +00:00
Nishant Das
d22552944d
Update Blockchain Package From Altair ( #9422 )
...
* add latest changes
* fix up
* raul's review
* pass cache tests
* Update beacon-chain/blockchain/head_sync_committee_info.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* kasey's review
* rename cache err
* add nil checks and error path checks
* gaz
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-26 05:01:09 +00:00
terence tsao
2903275e7e
Altair process slots ( #9455 )
...
* Update process slots
* More test scenarios
* Update transition_test.go
* Add CanUpgradeToAltair
* Go fmt
* Gaze
* Update beacon-chain/core/state/transition.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update transition_test.go
* Update altair fork epoch for e2e
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 09:59:23 +08:00
Preston Van Loon
3d6fad3121
Update Prater config to include Altair fork epoch ( #9467 )
...
* Update Prater config after https://github.com/eth2-clients/eth2-networks/pull/58 . Add tests to enforce compliance.
* gofmt
* spec: true
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-25 17:18:29 +00:00
terence tsao
ffbb722777
Add active balance cache ( #9456 )
...
* Add active balance cache
* Better comment
* Fuzz
* ,
* go fmt
* Fix err
* Raul's feedback
* A few renames to effective
2021-08-25 16:39:12 +00:00
Radosław Kapka
8b10adc92a
Fix struct type used when sending beacon committee subscriptions ( #9466 )
2021-08-25 15:35:28 +00:00
Nishant Das
0d60863bed
Add Stategen Log ( #9460 )
...
* add log
* amend it
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-08-25 14:34:09 +00:00
Nishant Das
0208d9b328
Change P2P Logs to Trace Logs ( #9459 )
2021-08-25 15:35:50 +02:00
Raul Jordan
e150e29710
Add In Generated Mocks for Altair RPC ( #9457 )
2021-08-24 21:38:44 +00:00
terence tsao
45b6a80a30
Validator: perform sync committee duties ( #9411 )
...
* Validator sync committee methods
* Gazelle
* Update visibility
* Add setupWithKey
* Refactor selection proofs
* Fix build
* Refactor compute and sign
* Fix sign request
* 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-08-24 17:33:42 +00:00
terence tsao
cd4bb6a9c8
Add altair process epoch ( #9449 )
...
* Add altair process epoch
* Verify balance
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 16:07:11 +00:00
Nishant Das
114a14a4b6
Patch Initial Sync For Non Finalized Blocks ( #9452 )
...
* fix for now
* off by 1
* preston's review
2021-08-24 10:20:45 -05:00
Raul Jordan
a49c0f19ae
Add Sync Committee Head State Cache ( #9448 )
...
* add sync committee head state cache
* handle err in init
* include file in build file
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 07:54:04 +00:00
Preston Van Loon
362212b5ed
Fix 'headSlot' log statement in init-sync ( #9451 )
...
* Fix 'headSlot' log statement in init-sync
* gofmt -w beacon-chain/sync/initial-sync/round_robin.go
2021-08-24 07:00:18 +00:00
terence tsao
5c96a2713d
Prevent Reinsertion of Orphaned Attestations Into Pool ( #9442 )
...
* Can re-save orphaned attestation
* Go fmt
* Fix tests
* Go fmt
* Bug fix flag
* Bug fix flag
* 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-24 03:05:08 +00:00
terence tsao
6457ec17bf
Process epoch: precompute previous and finalized epoch ( #9445 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 01:42:05 +00:00
terence tsao
d3475a563d
Remove Canonical Attestations From Pool Correctly ( #9444 )
...
* Remove canonical attestaitons
* Rm debug log
* Remove deleted test
* Tests and fmt
* Tests
* Bug fix flag
* Move feature flag
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 00:33:17 +00:00
Nishant Das
ab101e8a4a
Fix Validator Backups ( #9446 )
...
* fix val backups
* fix
* debug
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-23 21:46:04 +00:00
Preston Van Loon
5442d0f486
Altair: Merge passing hf1 tests and shared code ( #9447 )
...
* Altair: Merge passing hf1 tests and shared code
* Remove weird files
* del commented code
* Add dynamic file fetching, remove hardcoded list of files
* Remove hard coded paths
* remove hardcoded paths from phase0 too
* nosec fixes
2021-08-23 20:09:24 +00:00
Raul Jordan
0ee203fc2e
Deduplicate Copy Functions In State Packages ( #9437 )
...
* remove duplicated copy functions
* add all unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-08-23 16:53:50 +00:00
terence tsao
63e0a4de84
Transition: Altair process block ( #9430 )
...
* Add altair transition
* Add tests
* refactor exit into operation funcs
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-08-21 00:32:37 +00:00
terence tsao
cac1e94f04
Add altair epoch processing functions ( #9404 )
2021-08-20 16:55:42 -07:00
Raul Jordan
bdfdba1e23
Remove Unused Trieutil Helpers ( #9435 )
...
* remove unused trieutil helpers
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 23:00:04 +00:00
Raul Jordan
e2a3dc13fb
Less Flakey E2E API Checks ( #9439 )
...
* compare list attestations instead
* add query filter
* fix failing
* fix response
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 22:30:56 +00:00
Radosław Kapka
af2801f215
Implement GetEpochSyncCommittees
in the beacon API ( #9434 )
...
* initial implementation
* get committee for epoch
* test
* fix failing test
# Conflicts:
# beacon-chain/rpc/prysm/v1alpha1/validator/assignments_test.go
* combine function arguments
* review feedback
* use sync committee setter
* fix failing test
* fix build
* remove bad test
* refactor for single responsibilities
* radek suggestions
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-08-20 21:32:56 +00:00
Raul Jordan
fa4a4225a7
Improve DB.SaveBlocks Performance ( #9431 )
...
* improve save blocks performance
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 20:01:38 +00:00
terence tsao
005ce7e238
Remove float64 usage for fork choice ( #9438 )
2021-08-20 14:15:18 -05:00
terence tsao
25bc3f2aeb
More altair spec tests ( #9436 )
...
* Add fork and ssz static spec tests
* Fix build
* Remove minimal tags
2021-08-20 16:47:37 +00:00
terence tsao
67c3ae0117
Add signature verification using current fork ( #9405 )
2021-08-20 07:38:35 -07:00
Raul Jordan
6368da2716
Remove Nested BoltDB View Within Update Transaction in SaveHeadBlockRoot ( #9428 )
...
* no nested bolt txs
* remove the nested view in update calls
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 21:42:30 +00:00
terence tsao
3764b7dca3
ValidatorIndexByPubkey
length check (#9424 )
...
* `ValidatorIndexByPubkey` length check
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 19:33:05 +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
Nishant Das
9f36116c2f
Update Core Helpers ( #9393 )
...
* add helpers
* naming
* remove comments
* Terence's feedback
* Revert `UpdateCommitteeCache` changes
* Update beacon-chain/core/helpers/committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-19 12:18:27 +00:00