Radosław Kapka
4db0dfc4f1
Properly broadcast attestations ( #9301 )
...
* better handling of gateway response
* empty response tests
* build file
* broadcast attestations properly
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-29 18:33:18 +02:00
terence tsao
cf4ff3d6f9
Clean up phase 0 spec tests ( #9299 )
2021-07-29 09:01:18 -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
Mohamed Zahoor
21c79f4dfa
Protect the state objects in memory when saving them ( #9291 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-28 18:27:27 +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
terence tsao
f16b9859e7
Test: add altair test utility ( #9287 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-28 17:15:23 +00:00
Nishant Das
a372e30c8f
Fix Spaced Arguments for Subcommands ( #9292 )
...
* fix args for commands
* fix nasty edge case
2021-07-28 14:36:48 +00:00
Nishant Das
415973fca3
remove flag ( #9290 )
2021-07-28 16:11:22 +08: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
Mohamed Zahoor
c6bd7a2f83
Efficient Historical State Representation ( #9155 )
...
* added migration in to new schema
* gazel fix
* goimports fix
* construct state with validator entries from a seperate bucket
* save state with validator entry indirection
* fixed save and retreieve issues
* fixed more test cases related to DeepEqual
* added save benchmark
* gazel fix
* organize benchmarks
* add cache and improve state construction performance
* gazel fix
* check type
* remove cache checking from Has
* fix decoding when cache is off
* fix slice bugs
* add migration testcases
* linter fix
* fix few review comments
* fix review feedback
* gazel fix
* satisfy deepsource
* added the feature flag
* lint fix
* fix usage of featureconfig Inti in testcases
* call resetConfig method
* add feature flag in migration testcases
* fix formatting
* change bucket name from blockRootValidatorKeysIndexBucket to blockRootValidatorHashesBucket
* remove from cache when state deleted
* fixed few more comments
* added to devModeFlags
* added cache delete under the feature flag
* fix lint
* change cache sizes and improve documentation
* fiexed few more review coments
* not using hash anymore and using a new SaveStates function
* satisfu deepsource
* run gazel
* fix feature flag related stuff
* fixing merge conflict fix
* few goodies
* improve UX and dont swallow error
* merge fix
* import format fix
* fix migrationion when flag not given issue
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-27 20:02:53 +00:00
terence tsao
7129af5ccf
Core/deposit: altair processing methods and tests ( #9227 )
2021-07-27 12:10:08 -07: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
54772596e0
State/V2: rest of pkg ( #9283 )
...
* Add rest of state v2
* Update BUILD.bazel
2021-07-27 15:47:03 +00:00
Nishant Das
a556cf27c4
Use Only Checkpoint Cache for Processing Attestations ( #9282 )
...
* use only one cache
* clean up
2021-07-27 07:26:53 -07:00
terence tsao
5b5c8f4d3f
State/V2: setters ( #9279 )
...
* Add state v2 getters
* Update BUILD.bazel
* Add state v2 setters
* Update BUILD.bazel
2021-07-26 17:27:05 -05:00
terence tsao
245dc23cde
State/V2: getters ( #9228 )
...
* Add state v2 getters
* Update BUILD.bazel
2021-07-26 20:55:30 +00:00
Radosław Kapka
837cd4eb8f
Implement ProduceAttestationData
in the validator API ( #9271 )
...
* functionality
* test
* build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-26 19:22:58 +00:00
Radosław Kapka
8c8f1bb9c1
Regression test for #9264 ( #9277 )
2021-07-26 11:48:51 +00:00
Kaan
a8c49c50ad
v1alpha1 validators: catch possible reqState nil case ( #9275 )
...
* v1alpha1 validators: catch possible reqState nil case
* Minor format of error log
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-07-26 13:50:40 +08:00
Lorem Ipsum
14d0d9195f
Fixing wrong node information in fallback log ( #9258 ) ( #9272 )
2021-07-25 23:46:54 +02: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
Preston Van Loon
938a038c42
Fix //... for darwin ( #9273 )
...
* Fixes
* More manual tags
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 18:26:49 +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
be82c8714f
Do not require a handler function in the gateway ( #9264 )
...
* Do not require a handler function in the gateway
* test fix
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 16:48:22 +00:00
Preston Van Loon
c0076cc7a2
State: move state interfaces into state package ( #9268 )
...
* Move interfaces from github.com/prysmaticlabs/prysm/beacon-chain/state/interface to github.com/prysmaticlabs/prysm/beacon-chain/state
* remove/rename state2
2021-07-23 16:11:21 +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
terence tsao
526596a679
State/v1: add atts and block roots getter tests ( #9255 )
...
* Add att and block getter tests
* Update BUILD.bazel
* Update getters_attestation_test.go
* Update beacon-chain/state/v1/getters_block_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Fix mutation tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-07-22 22:31:14 +00: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
Radosław Kapka
b35c3ab2e7
Implement GetAggregateAttestation
in the validator API ( #9243 )
...
* server-side implementation
* run through api middleware
* tests
* build file
* build file fix
* return attestation with most aggregation bits
* build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 17:48:32 +00:00
terence tsao
c8685d256c
Lint: add v1 as import alias ( #9250 )
...
* Add v1 as import alias
* Update helpers.go
* More
* Update skip_slot_cache_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 17:13:18 +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
terence tsao
9addb5f7c3
Core/epoch: sync committee period ( #9248 )
...
* Combine function parameters
* Add sync committee epoch calculations
* Update BUILD.bazel
2021-07-22 16:13:42 +00:00
Nishant Das
33f7582d25
Add Doppelganger E2E ( #9239 )
...
* add current fixes
* fix prev release
* Update endtoend/endtoend_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update endtoend/endtoend_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* Update endtoend/endtoend_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* review comments for radek and raul
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-21 23:00:12 -05:00
Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
Radosław Kapka
ae140073e7
Remove proposer_sync_aggregate.go
( #9231 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-21 19:35:18 +00:00
terence tsao
b667d30d3f
Feature/UpdateHeadTimely: cache finalized checkpoint when initial sync ( #9244 )
2021-07-21 11:55:27 -07: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
Nishant Das
c780301096
Remove Validator DB Cache ( #9238 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-21 15:26:07 +00:00
terence tsao
e1d543a77b
Combine function parameters ( #9242 )
2021-07-21 14:55:37 +00:00
Nishant Das
2ffe8336fc
Fix Parsing of Nested Subcommands ( #9236 )
2021-07-21 13:01:33 +02:00
Nishant Das
11d9e7da9b
Update Libp2p to v0.14.4 ( #9108 )
...
* fix
* tidy
* fix deps
* tidy
* fix pubsub
2021-07-20 23:50:47 +00:00
Radosław Kapka
53e02b1601
Log correct warning when disabling flags ( #9230 )
...
* Log correct warning when disabling flags
* use interface
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2021-07-20 16:54:08 +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
8d1c9fe1e2
epoch/precompute: Add changes from Altair ( #9219 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 19:39:23 +00:00
terence tsao
4229b466ae
Add sync committee pool pkg ( #9203 )
...
* Add sync committee pkg
* Fix err variable namings
2021-07-19 19:06:49 +00:00