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
terence tsao
c1d4ff6239
Use deep ssz ( #8557 )
2021-03-04 13:31:39 -06:00
Radosław Kapka
e36c3dd668
Ignore "safe" secrets in DeepsSource analysis ( #8555 )
2021-03-04 13:52:55 +00:00
terence tsao
1c7c62cf8a
Attestation pool: continue if bad ( #8550 )
...
* Continue saving attestation when one is bad
* Gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-04 08:14:47 +00:00
Raul Jordan
d215607e55
Add Goland Standard "cmd" Pattern for Slasher Binaries ( #8542 )
...
* vis
* gaz
* imports
* slasher img
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
2021-03-03 18:37:57 +00:00
Raul Jordan
ff329df808
Add All Other Prysm CLI Entrypoints to "cmd" Folder ( #8545 )
...
* other cmd
* comments
* gaz
* gaz ignored file
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-03 17:05:37 +00:00
Preston Van Loon
c9858b5e6b
Validator: Remove optional and duplicated dial opts for streaming middleware ( #8549 )
2021-03-03 10:28:13 -06:00
Nishant Das
565d51009d
Make DB Backup More Efficient ( #8543 )
...
* checkpoint
* add test
* Update beacon-chain/db/kv/backup_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-03-03 15:37:13 +00:00
terence tsao
c6b74b2ba7
Beacon state: Add interfaces ( #8544 )
...
* Define Readonly and writeonly
* Comment
* First take at clean up
* Completed interfaces
* Fix build and test
* Reordering interfaces
* Add build.bazel
* Add build.bazel
* Fix visibility
2021-03-03 02:26:24 +00:00
Raul Jordan
090fbbf18c
Add Goland Standard "cmd" Pattern for Beacon-Chain Binaries ( #8540 )
...
* beacon chain cmd pattern
* imports spacing
* more import fix
* edit build file
* e2e viz
* amend e2e
2021-03-02 13:36:03 -06:00
Raul Jordan
cdea2debc9
Add Goland Standard "cmd" Pattern for Validator Binaries ( #8541 )
...
* validator cmd
* imports
* more imports
* e2e viz
* alias
* use native alias
* add actual
* fix macro
* work on fix e2e
* add viz
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-03-02 12:58:40 -06:00
terence tsao
4c49d4af7e
Clean up state pkg's getter and setter ( #8533 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-03-02 12:37:36 +00:00