Nishant Das
211d9bc0b9
Update BLST And Herumi ( #7632 )
...
* fix build from source
* clean up
* update again
* change everything
* workaround for now
* fix versioning
* all passing now
* fix build issues
* clean up
* revert use of MulVerify
* gaz
* stub
* Apply suggestions from code review
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* fix all
* fix test
* todo
* fix stub
* revert back
* make deep source happy
* Update shared/bls/herumi/public_key.go
* Update shared/bls/blst/signature.go
* Update shared/bls/blst/signature_test.go
* imports
* move iface to common, export errors
* rm iface build
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2020-10-30 19:06:33 +00:00
terence tsao
386bfdd6eb
Remove deprecated headstate method in DB ( #7680 )
...
* Remove head state in DB
* Clean up tests
* Fix pow tests
* Add stateGen to pow service
2020-10-30 15:11:08 +00:00
Raul Jordan
ddc8dc36f8
remove use of recover ( #7683 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2020-10-30 14:40:26 +08:00
Preston Van Loon
99f15943a8
Fuzz: sigp/beaconfuzz#78 ( #7684 )
...
* Add failing test to verify https://github.com/sigp/beacon-fuzz/issues/78
* revert beacon-chain/core/blocks/spectest/attestation_test.go
* Describe bug in comments, fix bug
* 1
2020-10-30 02:06:53 +00:00
Raul Jordan
581bed2017
Load in JSON Validators for Genesis State Generation ( #7643 )
...
* load in genesis state from JSON validators
* completed feature with tests
* bazel change
* fix docker image
* deep source
2020-10-29 22:37:16 +00:00
Raul Jordan
2d4bfbbe31
Web UI Security Improvements ( #7676 )
...
* remove delete accounts
* check if user has not yet signed up
2020-10-29 16:38:47 -05:00
terence tsao
fb2dfec1f4
Use state by root to get finalized state ( #7677 )
2020-10-29 14:04:06 -05:00
Nishant Das
2e4dee5aeb
Stategen Bug Fixes ( #7674 )
...
* bug fixes
* fix
* terence's review
* Make comments more explicit
* Update variable names
* Update tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2020-10-29 16:14:57 +00:00
Nishant Das
46c04b98d9
Revert "Add In Progress Checker For Checkpoint Cache" ( #7672 )
...
This reverts commit 37bf6617c0 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2020-10-29 14:35:30 +00:00
terence tsao
301499d134
Fill in blocks to fork choice store during init ( #7665 )
...
* Fill in blocks to fork choice store during init
* Use format option
* Use format option
* Use correct head block. Thanks Nishant
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-29 05:27:30 +00:00
Victor Farazdagi
4fc0a50569
Turn init-sync FSM logs to trace level ( #7670 )
...
* trace
* go fmt
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2020-10-29 04:55:07 +00:00
Preston Van Loon
c1c0b53c25
validateCommitteeIndexBeaconAttestation: Reorder boolean logic to reduce db calls ( #7671 )
...
* reorder boolean logic to shortcut
* same issue, in another place
* refactor for the greater good
2020-10-29 04:14:16 +00:00
Nishant Das
37bf6617c0
Add In Progress Checker For Checkpoint Cache ( #7659 )
...
* add inprogress checker
* fix test
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-29 01:21:49 +00:00
Preston Van Loon
149d3b84fa
Check attestation target checkpoint epoch matches attestation slot ( #7667 )
...
* Check attestation target checkpoint is within current or previous epoch
* reject bad att where slot does not match target
* Add test, reduce redundant check
2020-10-29 00:52:18 +00:00
Preston Van Loon
5092093389
Revert "Remove redundant checks in processAttestation" ( #7666 )
...
This reverts commit 3b34954e75 .
2020-10-28 22:46:26 +00:00
terence tsao
3b34954e75
Remove continue checks ( #7663 )
2020-10-28 13:04:28 -07:00
Preston Van Loon
ec5e59e212
remove unused and untested method ( #7662 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2020-10-28 12:03:30 -07:00
Shay Zluf
7d1a1643ee
Add validator datadir use ( #7660 )
...
* fix empty db prompt
* wording
* fix merge
* prompt only on datadir use
* remove move datadir function
* remove flag
* remove prompt text
* remove added prompt function
* gaz
2020-10-28 12:09:44 -05:00
Preston Van Loon
5f80754013
Revert "Remove Top Jaeger Span Offenders" ( #7657 )
...
This reverts commit ec8eab21ae .
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2020-10-28 06:07:14 +00:00
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 )
v1.0.0-beta.0
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