Preston Van Loon
473172ca8b
Validator: Make read operation use db.view instead of db.update ( #8434 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-12 19:06:58 +00:00
Radosław Kapka
47fdb3b99a
Revert "Rename NewService
to New
( #8337 )" ( #8440 )
...
* Revert "Rename `NewService` to `New` (#8337 )"
This reverts commit d121b19145
.
# Conflicts:
# beacon-chain/sync/initial-sync/round_robin_test.go
* fix name in test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-12 17:45:22 +00:00
terence tsao
143d3a3203
Process attestation: skip if forkchoice attestation count == 0 ( #8436 )
...
* Cont. if there's no fork choice attestations
* Comment
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-02-12 17:11:42 +00:00
terence tsao
66471c2f13
Beacon API: update GetStateRoot ( #8437 )
...
* Address various feedbacks
* Gaz
* More nil check
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/rpc/beaconv1/state_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-02-12 15:38:36 +00:00
Nishant Das
7f6b15271a
On Block Cleanup ( #8438 )
2021-02-12 11:36:53 +00:00
Radosław Kapka
cbb0f1e11d
Implement GetStateRoot in the beacon API ( #8402 )
...
* update ethereumapis dependency
* span
* initial implementation
* introduce stategen Service interface and MockService
* Include AddStateForSlot function in the mock service
* return states from mock
* add GenesisState to POWChain mock
* populate roots in helper state
* initialize Slot when creating helper state
* tests
* code refactor - extract helper functions
* gzl
* use SetSlot in tests
* handle SetSlot error
* use new testutil's NewBeaconState
* gzl
* go mod tidy
* rename Service to StateManager
* move regex check to helper
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 21:08:36 +00:00
Raul Jordan
25caa6d1be
Add Mutex and Block Profiling ( #8435 )
2021-02-11 20:20:19 +00:00
Preston Van Loon
d551c8e1d0
Validator: add a DEBUG log to show batch attestation save duration ( #8432 )
...
* Add a debug log to show duration
* Autofix issues in 1 file
Resolved issues in validator/db/kv/attester_protection.go via DeepSource Autofix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2021-02-11 18:27:35 +00:00
Nishant Das
2fd2bafdfa
Increase Validation Queue ( #8431 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 17:35:52 +00:00
Raul Jordan
e236dedc32
Add Ability to Specify All Public Keys When Exiting Validators ( #8399 )
...
* add programmatic voluntary exit
* add exit all flag
* test
* lint
* add multiple exits test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-11 16:50:16 +00:00
Preston Van Loon
7d2f7ae9e1
Refactor validator subnet subscriptions to be non-blocking ( #8319 )
...
* Use response.NextEpochDuties for aggregator subnet subscriptions (credit: @KaanKC PR #8204 ). Make committee subnet subscriptions method non-blocking call
* Fix test
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-02-11 16:09:17 +00:00
Nishant Das
ed9c69ec61
Use a Slim Base Image for our Cross-Build Toolchain Docker Image ( #8425 )
...
* change it to slim
* update
* Ran regenerate.sh
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-02-11 03:03:15 +00:00
Ivan Martinez
b6a40094a6
Exclude unexported fields for protos in sszutils.DeepEqual ( #8415 )
...
* Fix deep equal
* Fixes
* gaz
* Fix test
* Add UnexportedOnly function
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 23:00:18 +00:00
terence tsao
de15d6d2c1
Some improvements to proposer cache ( #8424 )
...
* Revert to use input epoch
* Revert back to process epoch
* Use processed state
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 22:07:12 +00:00
Nishant Das
143cb142bc
Make Individual Validators Immutable ( #8397 )
...
* initial POC
* clean up
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 20:52:45 +00:00
terence tsao
d3e93dd106
Process attestation: reduce checkpoint copies ( #8409 )
...
* Clean up process attestation
* Add matching getters
* Fix tests
* Update tests
* Fix test
* Remove read locks
* Typo
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 19:30:11 +00:00
terence tsao
56c5938898
Send feed faster with UpdateHeadTimely feature flag ( #8422 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 18:26:23 +00:00
terence tsao
d44ab1ace5
Add timeSinceSlotStart
field to "Synced new block..." log ( #8420 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-10 17:24:40 +00:00
Nishant Das
ae028d9c1d
Insert Finalized Deposits In Another Routine ( #8405 )
...
* chk
* terence's review
* add test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-10 10:35:44 -06:00
Preston Van Loon
cbd01d4ff4
Provide TLS certificate to gRPC gateway ( #8418 )
...
* Provide TLS certificate to gRPC gateway
* Provide TLS certificate to gRPC gateway
* Provide TLS certificate to gRPC gateway
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 04:23:12 +00:00
Victor Farazdagi
65645face1
Update ethereumapis deps ( #8417 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-10 03:33:33 +00:00
Ivan Martinez
cd3851c3d5
Add DeepSSZEqual and DeepNotSSZEqual ( #8421 )
2021-02-09 20:57:22 +00:00
terence tsao
2f98e6aaaf
Update head per slot ( #8381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-09 17:24:48 +00:00
terence tsao
9afc9d92d9
Feature flag: update head timely ( #8412 )
...
* Feature flag: update head timely
* Move finalized imply justified up
* Fix resolve error
* Use invert feature flag
* Make diff easier to review
* Line
* Typo
* Fix condition
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-09 15:35:14 +00:00
Victor Farazdagi
a8e501b3cf
ETH2 Types: Epoch ( #8373 )
...
* update deps
* update deps
* update protos/*
* update deps
* reset protos
* update protos
* update shared/params/config
* update protos
* update /shared
* update shared/slotutil and shared/testutil
* update beacon-chain/core/helpers
* updates beacon-chain/state
* update beacon-chain/forkchoice
* update beacon-chain/blockchain
* update beacon-chain/cache
* update beacon-chain/core
* update beacon-chain/db
* update beacon-chain/node
* update beacon-chain/p2p
* update beacon-chain/rpc
* update beacon-chain/sync
* go mod tidy
* make sure that beacon-chain build suceeds
* go fmt
* update e2e tests
* update slasher
* remove redundant alias
* update validator
* gazelle
* fix build errors in unit tests
* go fmt
* update deps
* update fuzz/BUILD.bazel
* fix unit tests
* more unit test fixes
* fix blockchain UTs
* more unit test fixes
2021-02-09 10:05:22 +00:00
Preston Van Loon
5727d4eb8a
Update Herumi with a fix for older intel chips ( #8413 )
...
* Update Herumi with a fix for older intel chips. #8410
* Use the correct version of bls-eth-go-binary
2021-02-09 01:44:27 +00:00
terence tsao
fed65122fe
Use EnableNextSlotStateCache
few more places ( #8398 )
2021-02-08 13:11:21 -08:00
Radosław Kapka
86a9d4c6a4
Configurable testutil's BeaconState ( #8407 )
...
* Configurable testutil's BeaconState
* fix shared and fuzz tests
* return state copy
* use mainnet config values for default state
* handle error in block fuzz
* goimports
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-08 20:00:09 +00:00
Panagiotis Georgiadis
0a180dc662
Make a const instead of 3 'abc' occurences ( #8406 )
2021-02-08 17:08:29 +01:00
terence tsao
f9303ca2e4
Clean up unused functions ( #8403 )
...
* Clean ups
* Gazelle
2021-02-05 18:39:15 +00:00
terence tsao
4c25fe978a
Update span names ( #8394 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-04 20:23:50 +00:00
terence tsao
cf88afb287
Block validator buckets ( #8395 )
...
* Block validator buckets
* add more buckets to blocked collector list
Co-authored-by: rauljordan <raul@prysmaticlabs.com>
2021-02-04 03:30:09 +00:00
Victor Farazdagi
c97ea766ca
Attestation aggregation: optimizations and benchmarks ( #7938 )
...
* profitablity tests
* cleanup benchmark
* fix deduplication function
* dedup: move method to atts list
* proper substring handling
* refactor validate method
* update benchmarks
* prepare proposer test
* remove redundant code
* reset test
* remove dedup from maxcover - moved to proposer
* remove redundant test
* remove lower level check for bit length
* optimize candidate validation on att aggregation
* restore test
* fix test
* fix test
* remove dedup functionality
* add benchmark
* optimize list usage
* Attestation aggregration: remove redundant dedup routine
* fix func call
* experiment with bitset based cover
* add benchmark
* samplem implementation using Bilist64
* add tests
* remove redundant code
* remove tmp comments
* unskip test
* update benchmarks
* gazelle
* process err
* optimized max-cover
* Max-cover: optimized implementation based on Bitlist64
* gazelle
* re-arrange overlaps check
* minor comments
* add Bitlists64WithMultipleBitSet
* update benchmarks
* gazelle
* add TestAggregateAttestations_rearrangeProcessedAttestations
* minor updates to rearrange method
* add link to design doc
* remove redundant methods
* simplify test
* add TestAggregateAttestations_aggregateAttestations
* fix issues
* fix assignment
* use ToBitlist(), ToBitlist64()
* fixes test
* benchmarks
* fix typo
* allow opt_max_cover opt-int flag
* update benchmarks
* reset e2e
* fix test
* enable opt_max_cover in e2e tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-04 00:58:33 +00:00
Preston Van Loon
e52a821f73
Validator testing library should be marked as testonly ( #8392 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 23:16:41 +00:00
Nishant Das
d4f241d875
Add Custom Deadline for Slot Progression ( #8388 )
...
* use custom deadline
* revert
* preston's comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 21:39:54 +00:00
Preston Van Loon
48ae49765e
Revert "Change sszutil DeepEqual to ignore unexported fields" ( #8391 )
...
* Revert "Change sszutil DeepEqual to ignore unexported (#8336 )"
This reverts commit 8d986bd414
.
* Add back tests, make tests have equal and non equal check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 20:39:07 +00:00
Raul Jordan
afa5b5e790
Add Spans for Validator DB Methods ( #8390 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-03 19:29:20 +00:00
Preston Van Loon
c5551ebebb
Revert DEPENDENCIES.md change from #8257 ( #8389 )
2021-02-03 18:46:46 +00:00
terence tsao
616081fbdd
Ran code inspect ( #8387 )
2021-02-03 10:59:17 -06:00
Victor Farazdagi
842bafb002
Update bitfield dependency ( #8385 )
2021-02-02 21:33:48 +00:00
Raul Jordan
953cc9733c
Update Ethdo Keystore Deps ( #8382 )
...
* update ethdo deps
* revert workspace
* tidy
2021-02-02 19:05:47 +00:00
Raul Jordan
caac08df33
Add Batch Method for Reading Validator Proposing Histories ( #8378 )
...
* add in batch method
* add in new proposal history methods for efficiency and progress bars
* tests fixed to use the new methods
* add back get slot proposing history method
* add gaz
2021-02-02 15:53:12 +00:00
Radosław Kapka
3fd8c4c046
Implement GetGenesis in the beacon API ( #8380 )
...
* span
* initial implementation
* test wip
* set nanos to zero
* more testing
* gzl
2021-02-02 08:44:28 -06:00
Radosław Kapka
b5a82b9075
Display URLs for tracking exited validators ( #8361 )
...
* Display URLs for tracking exited validators
* extract displaying info to separate function
* fix URL comment
* extract config names
* gzl
* lowercase config names
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 19:00:06 +00:00
Nishant Das
c6e96204e8
Update Herumi BLS Library ( #8377 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 18:31:48 +00:00
terence tsao
2456e6f34d
Add missed feature flag usage ( #8376 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 17:42:50 +00:00
Radosław Kapka
48ed506487
Ajust constructor names of nodes ( #8362 )
...
* clean up constructors for nodes
* resurrect validator client
* fix small naming issues
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 17:12:52 +00:00
Shay Zluf
4595789ac8
Make validator stable when beacon node goes offline ( #8278 )
...
* Make validator stable POC
* fix feedback raul and nishant
* fix wait till first iteration
* fix imports
* retry tests
* fix init
* test retry receive blocks
* remove redundant return statement
* terence feedback
* terence feedback
* remove log
* to check for context after fist call
* remove fatal
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-02-01 16:29:54 +00:00
Victor Farazdagi
d53fdcf781
Simplify expressions ( #8370 )
...
* Simplify expressions
* avoid escaping
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-01 15:14:36 +00:00
Victor Farazdagi
372dc47b64
Deprecate enableSyncBacktracking flag ( #8371 )
...
* Deprecate enableSyncBacktracking flag
* keep deprecated flags
2021-02-01 11:18:24 +00:00