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
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
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
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
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
11d9e7da9b
Update Libp2p to v0.14.4 ( #9108 )
...
* fix
* tidy
* fix deps
* tidy
* fix pubsub
2021-07-20 23:50:47 +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
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
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
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
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
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
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
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
Preston Van Loon
9dc3dd04c7
Update go-bitfield ( #9162 )
2021-07-08 08:31:40 -07: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
terence tsao
6c8fd745a4
Better import alias names ( #9149 )
2021-07-06 09:37:33 -05:00
terence tsao
00907fd7d1
Update log test and ChainInfoFetcher
interface ( #9143 )
2021-07-02 14:01:37 -05:00
terence tsao
1edf1f4c87
Restructure RPC packages to be future compatible ( #9136 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-02 15:54:52 +00:00
Nishant Das
5d65ace970
Implement Doppelganger Check ( #9120 )
...
* checkpoint changes
* Update beacon-chain/rpc/validator/status.go
Co-authored-by: Potuz <potuz@potuz.net>
* Update beacon-chain/rpc/validator/status.go
Co-authored-by: Potuz <potuz@potuz.net>
* add in client side tests
* add ordering
* add all new test cases
* gate feature
* handle edge case
* add one more test case
* fatal error
* zahoor's review
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* doppelganger not doppleganger
* preston's review
* add in comment
* change comment
* Fix e2e to only run new flags on the current version
* Fix bug where zero byte public keys were always sent in the request when attestation history existed. Still some tests to fix due to another bug in attester protection AttestationHistoryForPubKey.
* go mod tidy, gazelle
* Increase test size
* fix timeout, change size back to small
Co-authored-by: Potuz <potuz@potuz.net>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-07-02 12:11:09 +08:00
Preston Van Loon
d6bd619429
Bazel: minimal test build transitions ( #9122 )
...
* Add build transitions for minimal config based tests
* respect existing gotags
* clean up import
* Add some commentary
* gaz
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-06-30 19:22:09 +00:00
Raul Jordan
b23f63a064
Beacon State V2 Interface Definition With Semantic Version Paths ( #9125 )
...
* v2 state initialize and semantic paths
* ensure build
* gaz changes to ignored build files
* gaz
2021-06-30 15:06:19 +00:00
terence tsao
4fb3e05124
Add search for most profitable sync contribution ( #9121 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-06-29 17:26:01 +00:00
Radosław Kapka
0347b4b4af
Retrieve validators through v1 API in e2e ( #9117 )
...
* Retrieve validators through v1 API in e2e
* fix comment
* simplify boolean comparison
2021-06-29 09:47:59 -05:00
terence tsao
ea34af4abf
Add proposer sync contribution type ( #9106 )
...
* Add `proposerSyncContributions`
* Update BUILD.bazel
* Add dedup and tests
* Update BUILD.bazel
* Revert grpc changes
2021-06-28 13:54:33 -05:00
Radosław Kapka
940ce0c292
Make Eth APIs flag name implementation agnostic ( #9112 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-28 15:12:39 +00:00
Radosław Kapka
71f1f19334
Small API Middleware improvements ( #9111 )
...
* extract creating DefaultErrorJson objects
* do not use default http client for proxying
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-28 11:36:12 +00:00
Raul Jordan
a860648960
Reduce Usage of Eth2 Terminology in Prysm ( #9104 )
...
* remove all mentions
* more changes
* folder by folder
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-26 19:00:33 +00:00
Radosław Kapka
9eb3ff6bdf
Fix a few bugs in the API ( #9099 )
2021-06-26 11:17:45 -07:00
Radosław Kapka
b114247836
Move common gateway registration code to new package ( #9092 )
...
* Move common gateway registration code to new package
* no shared inside of beaconchain
* beacon gateway
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-06-25 11:02:11 +00:00
Radosław Kapka
ff99a2ed40
Run text/event-stream
values returned from grpc-gateway through API Middleware ( #9080 )
...
* register events handler in v1
* begin `status.Error` messages with uppercase
* something works
* handle errors
* topic comments
* handle the rest of event types
* gzl
* make code more testable + test
* better error handling
* tests
* gzl
* fix deps
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-06-24 16:18:28 +00:00
Raul Jordan
1e99ec30cb
Revert "Improve performance during CheckAttesterDoubleVotes" ( #9085 )
...
This reverts commit a958dd246b
.
2021-06-23 21:19:22 +00:00
Nishant Das
9ee086feaf
Disable No Freelist Sync In Backups ( #9069 )
2021-06-21 15:14:55 +02:00
Nishant Das
6e42f1bc5d
add lock ( #9068 )
2021-06-21 16:33:06 +08:00
Radosław Kapka
4f3c17cf69
Make the shared/gateway
package unaware of consuming services ( #9050 )
...
* gateway refactor
* test customizations
* change variable names
* fix BUILD file
* remove unused code
* move mux registration out of gateway
* fix gateway tests
* better name for struct
* fix mock endpoint factory
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-06-18 13:35:13 +00:00