kevlu93
14439d2b12
Embed Config Pattern For Slasher, Slashing Protection ( #8637 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-21 17:53:17 +00:00
kevlu93
4a64d4d133
Embed Config Pattern For Attestation, POW Chain, and RPC Services ( #8635 )
2021-03-21 16:58:41 +00:00
terence tsao
9421ac13d8
State: various clean up ( #8633 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-19 20:03:19 +00:00
Raul Jordan
d2b1115f46
Feature Flag for Enabling Slashing Protection Pruning ( #8632 )
2021-03-19 17:54:47 +00:00
Preston Van Loon
9282a73663
Revert "Ignore Syncing Freelist For Validator DB" ( #8629 )
...
This reverts commit 3b6b3f6ef6
.
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-03-19 05:30:09 +00:00
terence tsao
799a4d80cd
State: refactor common root functions ( #8630 )
2021-03-18 16:29:06 -07:00
Preston Van Loon
fe6e6909e6
Validator Attestation History Pruning: Use a bolt cursor instead of bucket.ForEach, exit early when applicable ( #8627 )
...
* Use a bolt cursor instead of bucket.ForEach, exit early when applicable
* Refactor to reuse the same code
* gofmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-18 22:39:28 +00:00
Preston Van Loon
e477fdfd6d
Embedded mainnet genesis state + load genesis.ssz from file ( #8614 )
...
* Update rules_go and fix proto conflicts
* gaz
* Update generated code
* First pass inclusion of using baked states
* more emptypb fixes
* remove testnet genesis files, only embed mainnet
* Refactoring for SaveGenesisData, fix tests that use mainnet config but do not support mainnet genesis values
* a bit more refactoring, load genesis from a file. Needs tests still
* Add method to ensure an embedded genesis file also has the appropriate genesis block
* gofmt
* more clear error
* Check genesis fork version to ensure testnet config matches genesis file
* viz
* test for SaveGenesisData
* More genesis db method tests
* Merge
* Minor tweaks, lint, fmt, etc
* Add more test to genesis db methods
* Revert beacon-chain/state/stateV0/BUILD.bazel
* Update beacon-chain/db/iface/errors.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
* PR feedback
* Update beacon-chain/db/kv/genesis.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* fmt.Errorf works better for nil errors
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-18 21:00:00 +00:00
terence tsao
a921455836
Remove no bootnode error for Prater ( #8628 )
2021-03-18 19:38:04 +00:00
terence tsao
beadec32b8
Add prater boot nodes ( #8623 )
...
* Add bootnodes
* Typos
* Add sigp's lighthouse node
2021-03-18 14:26:18 +00:00
Nishant Das
693ce7b952
Mask All Debug Logs for Endpoints ( #8624 )
2021-03-18 09:13:01 +00:00
terence tsao
ce725ceec3
Move state pkg to stateV0 pkg ( #8620 )
...
* Move state pkg to stateV0 pkg
* Build.bazel
* Remove unused RootsArrayHashTreeRoot
* Revert "Remove unused RootsArrayHashTreeRoot"
This reverts commit bf0bda30d1a8eb7a071f6e3ce9ee85041b45aca6.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-17 19:49:49 +00:00
kevlu93
ecf25d1284
Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly ( #8618 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-17 13:36:56 -05:00
Radosław Kapka
0a73be7389
Return status.Errorf instead of plain errors from gRPC functions ( #8619 )
...
* Return status.Errorf instead of plain errors from gRPC functions
* return plain errors from helper functions
* change errors to lowercase in node
* correct test expectations
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-17 16:47:44 +00:00
Preston Van Loon
034a28710e
Add Prater config ( #8613 )
...
* Add Prater config
* Register flag everywhere
* gofmt
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* Update shared/params/testnet_prater_config.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-17 14:14:07 +00:00
terence tsao
7b16601399
State: Return interface{} for pb related methods ( #8617 )
...
* Return interface{} instead of *pbp2p.BeaconState
* Comment
2021-03-16 22:26:17 -05:00
terence tsao
50e99fb6c1
State: Move compute field roots functions next to implementation ( #8615 )
2021-03-16 11:14:26 -07:00
terence tsao
ea4ea3d1c1
Remove unused AttestationDataRoot ( #8610 )
...
* Remove unused AttestationDataRoot
* Gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-16 16:12:32 +00:00
Radosław Kapka
1f8171d069
Dynamic key reload for remote keymanager ( #8611 )
...
* Dynamic key reload for remote keymanager
* fix failing keymanager test
* keymanager tests
* define RemoteKeymanager interface
* WaitForActivation tests
* gzl
* handle error in test
2021-03-16 10:00:05 -05:00
terence tsao
9fea9816bd
BeaconState: Expose MarshalSSZ ( #8609 )
2021-03-16 00:43:27 +00:00
terence tsao
aa389c82a1
Send attestations over feed at right place ( #8605 )
2021-03-15 07:47:10 -07:00
Radosław Kapka
c577fbd772
Move attestation's source checkpoint validation to VerifyAttestationNoVerifySignature ( #8598 )
...
* Move attestation's source checkpoint validation to VerifyAttestationNoVerifySignature
* change parameter type to ReadOnlyBeaconState
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
2021-03-12 21:43:20 +00:00
Radosław Kapka
dc6dee3f4e
Fix issues with dynamic key reload for imported/derived keymanager ( #8585 )
...
* implementation of handling reload
* proper implementation
* fix WaitForActivation tests
* HandleKeyReload tests
* runner tests
* do not reuse log hook between tests
* gzl
* Drop unnecessary use of the blank identifier
* move mock_validator to testutil package
* Reorganize validator client package
* reduce package visibility
* revert account changes
* gzl
* describe nil parameter
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-12 17:23:56 +00:00
Nishant Das
a3c96c2f44
Prune Better For Larger Buckets ( #8599 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-12 15:05:20 +00:00
Nishant Das
3b6b3f6ef6
ignore syncing freelist for validator db ( #8601 )
2021-03-12 08:06:20 -06:00
Preston Van Loon
eb694ab5d5
Update rules_go and fix proto conflicts ( #8596 )
...
* Update rules_go and fix proto conflicts
* gaz
* Update generated code
* more emptypb fixes
* gaz
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-11 18:03:19 -06:00
Victor Farazdagi
fa2084330b
Fix race condition in TestService_Initialized ( #8597 )
2021-03-11 21:16:40 +00:00
Raul Jordan
286444a2ec
Shorter Pruning Period for Slashing Protection ( #8590 )
...
* begin a simpler pruning process
* shorter pruning
* pass all pruning tests
* passing tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-11 15:51:16 +00:00
Victor Farazdagi
55b6134be1
Improves UTs coverage in shared/aggregation ( #8593 )
...
* improves shared/aggregation test suite
* improves coverage in shared/aggregation/attestations
2021-03-11 15:01:19 +00:00
Radosław Kapka
5374d07c4d
Reorganize validator client package ( #8592 )
...
* Reorganize validator client package
* reduce package visibility
2021-03-11 11:57:41 +00:00
terence tsao
b62619ae3a
State: Refactor Reference
and ValidatorMapHandler
to stateutil pkg ( #8589 )
...
* Starting
* Fix tests
* Gazelle
2021-03-10 20:57:46 -06:00
terence tsao
dc0fc94c13
Use read lock ( #8588 )
2021-03-10 15:11:25 -08:00
Victor Farazdagi
548b471b8a
Simplify nil assignments ( #8587 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-10 20:38:16 +00:00
Victor Farazdagi
fa92766095
Fixes flaky TestBlocksFetcher_nonSkippedSlotAfter test ( #8586 )
...
* Fixes flaky TestBlocksFetcher_nonSkippedSlotAfter test
* fix conditional
2021-03-10 20:03:26 +00:00
Benoit Perroud
9980ca3b7e
Add metrics per keys for next scheduled attestation and proposal ( #8583 )
...
* Add metrics per keys for next scheduled attestation and proposal
* Found a better place where to update the counters
* Wrap with emitAccountMetrics flag
2021-03-09 21:13:11 +00:00
terence tsao
72be10f9a5
Ran go imports ( #8582 )
2021-03-09 19:56:05 +00:00
Raul Jordan
ab301aa4fe
Remove Accounts Enable/Disable Code ( #8576 )
...
* rem
* remove all enable disable code
* fix broken build
* fix more tests
* fix broken tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-09 15:46:50 +00:00
Nishant Das
2bb0a602e4
create the bucket only once ( #8579 )
...
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-09 08:22:52 -06:00
Nishant Das
363771a5c7
Update Go Mod ( #8578 )
2021-03-09 10:26:06 +00:00
terence tsao
bdf2b2019b
Use beacon state interfaces across ( #8552 )
2021-03-08 14:37:33 -08:00
Victor Farazdagi
f2125e5f64
Proposer attestation selection using max-cover ( #8571 )
...
* Proposer attestation selection using max-cover
* better alisgn struct field
* more tests
* cleanup
* simplify expressions
* add benchmarks
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 18:46:24 +00:00
Victor Farazdagi
294b031fa4
Fixes incorrect usages of gazelle:ignore ( #8562 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 18:09:39 +00:00
Raul Jordan
4a98300c59
Use Path to Deposit Data JSON File in Generate Genesis State ( #8575 )
...
* use path to deposit data json
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 16:57:30 +00:00
Preston Van Loon
0f1d14437c
Update blst to v0.3.3 ( #8574 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-08 15:40:10 +00:00
Radosław Kapka
79754bded2
Implement SubmitAttestations in the beacon API ( #8563 )
...
* update ethereumapis deps
* V1AttToV1Alpha1 migration
* Implementation plus happy path test
* fix root variable names
* Invalid attestation test
* gzl
* mod tidy
* use a single append to concatenate two slices
* remove outdated comment from attestation processing
* invoke ProcessAttestationNoVerifySignature when validating attestations
* implement missing PoolMock members
* use new VerifyAttestationNoVerifySignature function
2021-03-08 15:42:05 +01:00
terence tsao
90da16432f
Refactor ProcessAttestationNoVerifySignature
to VerifyAttestationNoVerifySignature
( #8566 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-06 14:53:28 +00:00
Preston Van Loon
f074c5ee89
Fix validator activation monitoring with inactive keys ( #8558 )
...
* refactor / move waiting for activation updates
* Commentary
* Update test to follow the full code path
* gofmt and goimports
* manual imports fixes
* Apply suggestions from code review
typo fixes
* Remove redundant handleAccountsChanged and chan. Thanks @nisdas
* var sub = to sub :=
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-03-05 18:33:39 +00:00
Radosław Kapka
edd86fd358
Simplify API beacon pool tests ( #8564 )
...
* fix comment of FarFutureEpoch
* remove not needed validator configuration
2021-03-05 16:10:48 +00:00
Nishant Das
067a519b37
Add Spans To Attestation Caches ( #8556 )
...
* add spans
* preston's comments
* add span
2021-03-05 09:17:27 -06:00
Raul Jordan
32f2f711db
Exclude Instead of Ignore With Gazelle ( #8559 )
...
* exclude and not ignore
* fix broken test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-04 21:01:32 +00:00