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
Preston Van Loon
412ddbb29e
beacon-chain/state/v1: ReadOnlyValidator wrapper constructor method ( #9221 )
...
* Introduce changes from Altair hf1 branch
* go pkg viz changes
* Fix test
* goimports for some reason
* Use a more safe method of wrapping validators with regards to nil validators. Add basic tests for this wrapped validator
* Use a more safe method of wrapping validators with regards to nil validators. Add basic tests for this wrapped validator
* Panic fixes
* Fix tests
* remove nil validator test as it is no longer possible
* goimports for some reason
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 18:26:39 +00:00
Radosław Kapka
8a7010f5aa
Implement GetProposerDuties in the validator API ( #9223 )
...
* endpoint implementation
* extract common code
* tests
* remove named return values
* correct test log
* sort duties by slot
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-07-19 18:00:15 +00:00
Nishant Das
40a96bc2b6
Invert Update Head Timely Flag ( #9224 )
...
* invert
* Update shared/featureconfig/flags.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 17:23:43 +00:00
terence tsao
1beb0071b5
State/v2: Add InitializeFromProto
and InitializeFromProtoUnsafe
( #9226 )
...
* Add `InitializeFromProto`
* Update BUILD.bazel
2021-07-19 16:47:42 +00:00
terence tsao
2a0c4e0d5f
Use block wrapper and interface for propose block ( #9218 )
2021-07-19 15:51:38 +00:00
Nishant Das
dad205bd04
Invert Optimized Balance Update Feature ( #9225 )
2021-07-19 14:27:20 +00:00
Preston Van Loon
15bfcf8ff6
Add tests for wrapped Altair objects ( #9213 )
...
* start tests for wrapped methods
* Add a few tests and skeletons for interface impl methods
* Add latest interfaces update from hf1 and stub the appropriate tests
* Add a few more tests
* More progress
* Migitate nil pointer issues in construct. Complete tests
* Copy changes from hf1 to v1alpha1 wrapper
* Use testutils from #9201
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-18 19:32:52 +00:00
terence tsao
15704053e1
Add Altair configs ( #9150 )
...
* Add altair configs
* Update minimal_config.go
* Update workspace and config tests
* Revert workspace changes
* Update WORKSPACE
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-07-18 16:18:43 +00:00
terence tsao
5be1ccd3cf
Hydrate altair block ( #9201 )
...
* Hydrate altair blocks
* Update BUILD.bazel
* HTR test
* Update BUILD.bazel
* Comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 23:35:37 +00:00
terence tsao
97e6eb14e2
Altair block wrapper: update return to interfaces ( #9212 )
2021-07-16 23:09:45 +00:00
Mohamed Zahoor
6f126c92c0
Make exportdb tool faster ( #9184 )
...
* added prodecer consumer pattern for reading and printing
* make state interface visible in exploredb
* bazel magic for visibility
* fix manual visibilithy marking
* linter fix
* parallelized bucket stats
* add log.WithErr and log.Infof
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-16 22:24:16 +00:00
Radosław Kapka
223d5309a0
Implement GetAttesterDuties in the validator API ( #9207 )
...
* remove irrelevant comment
* fix proto documentation
* first implementation
* register validator server
* first working version
* add sync checker and test file
* first test
* gzl
* final version + tests
* gzl
* run duties through API Middleware
* extract dependent root getter
* dependentRoot docs
* wrap indices in array
* fix static analysis issues
* modify err nil check
* create local variables in slot processing test
* Update proto/eth/v1/validator_service.proto
* review
* simplify index loops
* better calculation of committees at slot
* comment about impossible comndition
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:55:22 +00:00
Preston Van Loon
31d2482f9c
Add proto wrappers for Altair ( #9209 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
* Copy hf1 cloners and add tests
* Introduce wrapper changes from hf1
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:30:26 +00:00
terence tsao
3ef0c5d6e5
Fix deepsource: shadow of builtin detected ( #9210 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-07-16 20:04:30 +00:00
Preston Van Loon
187a1ca53d
shared/copyutil: Add copy methods for Altair ( #9208 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
* Copy hf1 cloners and add tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-07-16 19:30:48 +00:00
Preston Van Loon
17d7fc492e
shared/copyutil: Add tests for copy methods ( #9204 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-07-16 16:56:09 +00:00
Preston Van Loon
f029fdd44a
beacon-chain/state/stateutil: Fix benchmark target ( #9199 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 14:39:14 +00:00
Preston Van Loon
44d266313e
testutil: Add NotEmpty method ( #9202 )
2021-07-15 22:32:10 +00:00
terence tsao
1a9a46d042
Block util: block header from block interface ( #9196 )
...
* Add beacon block header from block interface
* Update BUILD.bazel
* Update shared/blockutil/block_utils.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Go fmt
* Remove unused bodyroot
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-07-15 16:03:46 +00:00
Preston Van Loon
71c8c75bc3
shared/queue: Add RetrieveByKey method ( #9195 )
...
* Checkout shared/queue changes from hf1 branch
* Remove logic that removes and reinserts an item into the queue at the back
* Add test to ensure the correct thing was returned
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-07-15 10:31:19 -05:00
terence tsao
b22935a724
Rename AttestationNotifier ( #9197 )
2021-07-14 18:32:03 -07:00
Radosław Kapka
3ff5b95945
Remove database field from v1alpha1 validator server ( #9191 )
...
* Remove database field from v1alpha1 validator server
* remove field
* gzl
* remove not needed variable
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-14 13:16:21 +00:00
Nishant Das
e6bd5f31b1
Cleanup Fast Aggregate Verify ( #9193 )
2021-07-14 11:12:50 +00:00
terence tsao
9a4ab41761
BaseReward
test only (#9189 )
...
* Move baseward to test only
* Update BUILD.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-13 20:12:53 +00:00
terence tsao
7f0749c398
Clean up shared interface package ( #9172 )
...
* Remove shared interface folder
* Rename file names
* Gazelle
* Move interface to /beacon/p2p/
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-07-13 18:58:43 +00:00
Nishant Das
d73ac71ee6
add std out for beacon node ( #9183 )
2021-07-13 08:45:26 -05:00
terence tsao
6ba741f251
Calculate epoch outside of loop ( #9178 )
2021-07-12 12:35:36 -07:00
Radosław Kapka
4ebb008bc9
Protos and stubs for validator API endpoints ( #9174 )
...
* match proto definitions with spec
* stubs for grpc server's functions
2021-07-12 10:38:55 -05:00
Nishant Das
a9ee3ee06a
Update Go-Ethereum ( #9157 )
...
* update
* tidy
* fix
* fix e2e
* fix e2e
* fix bad tx opts
2021-07-09 07:58:43 -05:00
Preston Van Loon
7c23d02c3e
Remove cluster-pk-manager tool ( #9165 )
...
* Remove cluster-pk-manager tool
* Go mod tidy
2021-07-08 13:31:41 -05:00
Preston Van Loon
9dc3dd04c7
Update go-bitfield ( #9162 )
2021-07-08 08:31:40 -07:00
ahadda5
72886986ea
prysm scripts should not save 404 pages ( #9072 )
...
* first .sh attempt, checked curl
* removed echo
* more meaningful msg
* prysm.bat changes
* do not save 404, using -f and grep
* removed extra line
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-06 23:34:42 +00:00
terence tsao
1d3a9983cc
Move block interface next to generated pb ( #9146 )
...
* Move block interface next to pb
* Update fuzz build bazel
* Move interface to /proto/interface and wrapper next to generated pb
* Fix fuzz build bazel
* Add //proto/eth/v1alpha1/wrapper
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-06 15:34:05 +00:00
Mohamed Zahoor
cca4a8c821
exploredb tool to display bucket contents ( #9116 )
...
* add state bucket content display test case
* save work
* state db disection methods
* fix go.mod
* gazel fix
* pass the testcase if the db is not present. for CI
* get db path from env. optimize code
* update deps.bzl
* go mod tidy
* revery deps.bzl
* moved bucket content inspection to exploredb tool
* satisfy deepsource and tidy go.mod
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-06 15:11:11 +00:00
terence tsao
6c8fd745a4
Better import alias names ( #9149 )
2021-07-06 09:37:33 -05:00
terence tsao
466546bb40
Add sync committee aggregation_bits
tags for minimal and mainnet ( #9147 )
...
* Add aggregation_bits tags for minimal and mainnet
* Update go-bitfield
* Go mod tidy
2021-07-03 18:59:35 -05:00
terence tsao
1ff4605398
Add priority queue tests ( #9142 )
...
* Add priority tests
* Gazelle
* bazel
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-07-02 21:54:28 +00:00