Raul Jordan
d9e4084d6d
Remove Lock Contention in getAttPreState ( #7656 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-28 05:42:54 +00:00
Raul Jordan
ec8eab21ae
Remove Top Jaeger Span Offenders ( #7655 )
2020-10-28 05:14:54 +00:00
terence tsao
0cbd8bc03d
Use root + slot for skip slot cache key ( #7654 )
...
* Update skip slot cache's key
* Add tests
* Refactor into its own function
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-28 03:09:05 +00:00
Victor Farazdagi
e57770bd0a
Fix slasher ReadOnlyDatabase.BlockHeaders parameter names ( #7652 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-28 02:36:02 +00:00
Raul Jordan
8c2fff3a75
Allow for 25th Word Passphrases in Mnemonics ( #7645 )
...
* advanced functionality, enable 25th word mnemonic passphrase
* 25th word passphrase
* add test
* added test to ensure differences when using the mnemonic 25th word
* better message
* passing tests
* fix up logic
2020-10-27 20:51:29 +00:00
Nishant Das
4f5726b3af
Initialize State Correctly In Powchain ( #7648 )
...
* fix bug
* Update beacon-chain/powchain/service.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
* return error
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-10-27 17:50:46 +00:00
Preston Van Loon
424488bf8a
Deprecate db.HeadState ( #7653 )
...
* Deprecate db.HeadState
* Deprecate db.HeadState
2020-10-27 16:25:52 +00:00
Radosław Kapka
21c5ba8ed8
display that all validators are exited ( #7651 )
2020-10-27 09:29:58 -05:00
Victor Farazdagi
dbbbc7586f
Remove redundant attribute in validator test ( #7649 )
...
* remove redundant attribute in validator test
* remove other attribs
2020-10-27 12:15:35 +00:00
Preston Van Loon
fcbb168c76
Code health: review map usage ( #7635 )
...
* remove unused cache states map
* correct typo
* Remove unused array
* Add lock around deposits cache chainstart pubkeys
* Copy attestation before grabbing lock. This may reduce lock contention time as other callers wanting the lock do not need to wait as long for the lock to become available.
* Copy attestation before grabbing lock. This may reduce lock contention time as other callers wanting the lock do not need to wait as long for the lock to become available.
* Set capacity to 1 since it is known that the slice will be 1 after insertion
* require validatorSlashingPreconditionCheck caller to hold lock
* Add lock for voluntary exits pool HasBeenIncluded
* Require rate limiter retrieveCollector to hold lock
* Add lock requirement assertions in sync
* Remove unused struct
* remove ClearCachedStates API
* field initSyncState is unused
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-26 21:17:07 +00:00
Nishant Das
f1bce1001d
Restrict Proposer Lookup to the Current Epoch ( #7542 )
...
* checkpoint
* add test
* Update beacon-chain/core/helpers/committee_test.go
* preston's review
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-26 13:40:38 -07:00
terence tsao
ec77196197
Remove checkpoint info cache and usages ( #7642 )
...
* Remove checkpoint info cache and usages
* Gazelle
2020-10-26 14:09:19 -05:00
Raul Jordan
a468a12ef0
Allow Specifying Output Directory When Creating DB Backups ( #7630 )
...
* move flags
* backup db output dir flag
* fix build
* fix up broken backup test
* Radek's feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-26 18:20:54 +00:00
Radosław Kapka
b0dff891fc
Invert enable-eth1data-majority-vote ( #7362 )
...
* make flag opt-out
* fix flags
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-26 17:36:47 +00:00
Raul Jordan
687251fedc
keep asking for account pass if fails decrypt ( #7631 )
2020-10-26 17:56:57 +01:00
Alon Muroch
a04b7c2e4f
Slasher highest source target ( #7604 )
...
* WIP - slasher highest attestation start
* fixed previous
* highest source and target
* highest attestation cache
* cleanup
* persist + fixes
* PR fixes and cleanup
* slashing proto
* highest att. api
* cleanup + tests
* increased highest att. cache to 300K
* removed highest att. api (for a separate PR)
* fixed linting
* bazel build fix
* highest att. kv test
* slasher highest att. test + purge + fix on eviction persist performance
* cleanup + linting
* linting + test fixes
* bazel gazelle run
* PR fixes
* run goimports
* go mod tidy
* ineffectual assignment fix
* run gazelle
* bazel gazelle run
* test fixes
* linter fix
* Apply suggestions from code review
Co-authored-by: Shay Zluf <thezluf@gmail.com>
* goimports run
* cache tests
* A bunch of small fixes
* gazelle fix + gofmt
* merge fixes
* kv ordering fix
* small typos and text fixes
* capital letter fix
Co-authored-by: Shay Zluf <thezluf@gmail.com>
2020-10-26 14:15:42 +02:00
Victor Farazdagi
e6d688f6d5
Init-sync: re-arrange tests ( #7641 )
...
* move tests
* formatting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-26 08:54:06 +00:00
Victor Farazdagi
8a3b75e9e3
Update init-sync FSM ( #7640 )
...
* update fsm
* more tests
2020-10-26 05:26:35 +00:00
terence tsao
a73c539fab
Forkchoice: update read only lock to regular lock ( #7633 )
2020-10-24 16:35:18 +00:00
Nishant Das
92efe64b8a
Fix Gossip Message ID ( #7624 )
...
* fix snappy errors
* gaz
* Update beacon-chain/p2p/pubsub.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-10-24 03:38:05 +00:00
Raul Jordan
b1c047b9ee
Prevent Panics in Field Trie Helpers ( #7613 )
...
* add tests to prevent panics
* if > 0
* fix typ
2020-10-23 21:41:45 +00:00
Nishant Das
ff50ea2e0d
Better Logging When Using Head Sync ( #7626 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-23 21:00:53 +00:00
terence tsao
ebb3fa71f1
VerifyFinalizedConsistency - return early when canonical ( #7628 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-23 19:02:20 +00:00
Preston Van Loon
9ea69a070e
Fix attestation broadcast recovery metric ( #7629 )
2020-10-23 18:41:17 +00:00
Raul Jordan
c59edb3358
Revert "Use validator protection datadir" ( #7627 )
...
This reverts commit ab76bdad15
.
2020-10-23 17:19:38 +00:00
Radosław Kapka
7e2112b4ba
Fix panic issues on beacon node shutdown ( #7625 )
...
* allow service cleanup on node shutdown
* revert error to fatal
* remove unused struct field
2020-10-23 12:43:48 +00:00
bidlocode
cdbbf66027
Fix pregenesis countdown msg wording ( #7477 )
...
* fix wording
* fix gofmt
* fix msg
* gofmt
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2020-10-23 05:21:52 +00:00
Victor Farazdagi
e5e51e66e1
Handle voting ties in BestFinalized() ( #7622 )
2020-10-23 04:43:35 +00:00
Nishant Das
6eb022ffa1
Clean Up Block Retrieval Methods ( #7593 )
...
* fix and add tests
* return for 0
* add test case
* fix
* fix fail
* add comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-23 04:23:15 +00:00
Nishant Das
e776eb5409
Fix Powchain Error In Startup ( #7621 )
...
* fix error
* add test case
2020-10-23 03:57:19 +00:00
Victor Farazdagi
6a2bb65fe2
Fix BestFinalized method ( #7619 )
...
* turn tests to use testing vector
* add regression test case
* complete tests
2020-10-23 02:49:42 +00:00
Preston Van Loon
ecc25d2b8c
Release and remove feature flag --enable-att-broadcast-discovery-attempts ( #7610 )
...
* Release and remove feature flag --enable-att-broadcast-discovery-attempts
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-23 01:53:50 +00:00
terence tsao
e07a12e6b7
Move IsCanonical implementation to forkchoice package ( #7602 )
...
* Move IsCanonical implementation to forkchoice pkg
* Remove debug print log
* Add tests
* Fixed current tests
* Fixed a test
* Fixed a test
* Add tests for cov
2020-10-23 01:32:13 +00:00
terence tsao
840ffc84ac
Save state to DB during long non-finality ( #7597 )
...
* Starting saving state during hot
* Add a log
* Add helpers to turn on/off mode
* Add locks
* Add missing return
* Clean up
* Add logic to migration to handle db roots
* Add tests for on and off
* Add more tests
* Add test for migrate
* @prestonvanloon's feedback
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-23 00:35:30 +00:00
Raul Jordan
ca081e8639
Fatal If No TLS Found in RPC Service ( #7614 )
...
* fatal if no tls found rpc
* tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 23:58:53 +00:00
Raul Jordan
e54ac48f9d
Deep Source Security Issues ( #7617 )
...
* deep source issues
* fix broken build
* fix beacon chain build
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-10-22 23:31:52 +00:00
Raul Jordan
075f1458b4
Do Not Recommend --ssl-no-revoke When Downloading Prysm Scripts ( #7618 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 22:25:22 +00:00
Raul Jordan
be6481e178
Amend Cross Compile README ( #7615 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 21:41:46 +00:00
Shay Zluf
ab76bdad15
Use validator protection datadir ( #7355 )
...
* Add validator protection db flag
* fix nil handling
* reuse datadir
* add datadir default config
* Add handling for moving account dir datafile to new set dir
* naming conditionals
* add tests
* fix test
* fix logic to default to wallet dir
* raul feedback
* nishant feedback
* gaz
* revert site_data changes
* fix formatting
* fix formatting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-22 21:05:08 +00:00
Raul Jordan
e7723c4d1f
Remove Deprecated Participation Metrics ( #7616 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 20:14:58 +00:00
Raul Jordan
a688b9e030
Miscellaneous Docs Improvements ( #7606 )
...
* misc docs fixes
* revert readme
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 19:45:31 +00:00
Raul Jordan
ff15621fe1
Fix Nil Pointer in RPC List Peers ( #7612 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 18:48:58 +00:00
Raul Jordan
4a78071e41
Explicit Password Requirements ( #7607 )
...
* explicit password requirements
* explicit reqs
* explicit reqs
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 18:02:30 +00:00
Raul Jordan
113b2cd6cf
Clarify No Wallet Found
Error Messages ( #7609 )
...
* clarify no wallet found error messages
* extract error
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 17:31:03 +00:00
Raul Jordan
13af8a7a37
Remove Unusued Base Parameter in SubscribeWithBase ( #7608 )
...
* remove base in sub with base param
* refactor subscribeWithBase signature
2020-10-22 16:56:24 +00:00
Nishant Das
7131cd991c
Ignore PreGenesis Messages Instead Of Rejecting Them ( #7550 )
...
* ignorePreGenesisMessages
* fix test + handelaar's review
* fix issues
* change back
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 15:43:35 +00:00
Radosław Kapka
17a08a75ea
Move voluntary exit logging to accounts_exit
( #7603 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-22 15:01:11 +00:00
Nishant Das
ddbece5988
Fix Range Request Responses ( #7531 )
...
* checkpoint
* fix tests
* fix all tests
* imports
* gazelle
* reviews
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-22 09:33:01 -05:00
bidlocode
ff658ba641
Fix w3endpoint file relative path ( #7557 )
...
* add expandpath
* fix error description
* fix bazel & deepsource
* fix
* fix gofmt
* fix refactor
* add tests
* gofmt
* fix
Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2020-10-22 05:53:03 +00:00
Victor Farazdagi
483f7f8177
Fix InitWithReset - rely on previously updated flags ( #7598 )
...
* Fix initWithReset to use previously set configuration
* further cleanup
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-22 05:20:56 +00:00