terence tsao
cf956c718d
Update to Spectest 1.1.3 ( #9786 )
...
* Update transition spec test setup
* Update WORKSPACE
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-18 18:13:40 +00:00
Raul Jordan
975f0ea1af
[Service Config Revamp] - Blockchain Initialization ( #9783 )
...
* viz
* unexport config
* builds
* viz
* viz
* register cfg
* fuzz
* blockchain opts
* deepsource
* rename flag opts
2021-10-18 17:48:05 +00:00
terence tsao
a80b1c252a
Refactor rpc proposer into smaller files ( #9796 )
...
* Refactor rpc proposer into smaller files
* Update BUILD.bazel
* Fix test
* Update BUILD.bazel
2021-10-18 11:35:32 -05:00
Preston Van Loon
1f51e59bfd
Bazel: minimal build config alias ( #9794 )
2021-10-18 14:22:57 +00:00
Nishant Das
bfcb113f78
Fix Doppelganger Protection ( #9748 )
...
* add fix
* fix tests
* Update beacon-chain/rpc/prysm/v1alpha1/validator/status.go
* fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-18 13:09:14 +00:00
terence tsao
20c7efda2c
Process slashings return error on unknown state ( #9778 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-18 12:40:47 +00:00
Radosław Kapka
f2990d8fdd
Return errors for unknown block/state versions ( #9781 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-18 12:18:49 +00:00
Nishant Das
d1f3050d20
Ignore G307 for Gosec ( #9790 )
2021-10-18 14:04:01 +02:00
Raul Jordan
4dbb5d6974
Add WebUI Security Headers ( #9775 )
2021-10-15 12:40:23 +02:00
Raul Jordan
59547aea66
Deregister Remote Slashing Protection Until Further Notice ( #9774 )
...
* avoid registering
* disable endpoints
* remote slasher protection register
* gaz
* fatal on external protection flag call
* radek comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-14 19:33:05 +00:00
Radosław Kapka
545424dd09
Fix epoch calculation when fetching sync committee duties ( #9767 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-14 18:52:26 +00:00
Nishant Das
508b18f1bd
Return Error For Batch Verifier ( #9766 )
...
* fix it
* make err check happy
* radek's review
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-13 23:52:22 +00:00
Radosław Kapka
e644e6b626
Remove special preparation of graffiti ( #9770 )
...
* add attestations to migration tests
* remove sepcial preparation of graffiti
* Revert "add attestations to migration tests"
This reverts commit adbe8cf4bf2fa9751ff40f85b97227e89207ef2b.
2021-10-13 15:32:15 +00:00
Radosław Kapka
280dc4ecf0
Register v1alpha2
endpoints in the gateway ( #9768 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-12 15:13:52 +00:00
terence tsao
7a825a79ae
E2e test: stricter participation check ( #9718 )
...
* Stricter participation check
* 0.99 is still better than 0.95...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-10-12 11:32:36 +00:00
Nishant Das
b81f5fc7a5
Handle Invalid Number Of Leaves ( #9761 )
...
* fix bad trie
* handle edge case
* radek's review
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-10-12 10:36:57 +00:00
Nishant Das
06c084ff52
Log out Gossip Handling Errors ( #9765 )
2021-10-12 07:44:47 +00:00
Preston Van Loon
76e06438e9
Update bazel version to 4.x ( #9763 )
...
* Update to bazel 4.0.0
* bazel 4.2.1
* Regenerate crosstool configs
* restore manual tags
* restore manual tags
2021-10-12 06:17:24 +00:00
Nishant Das
f8f037b63d
updateInterval ( #9764 )
2021-10-11 22:12:07 -05:00
terence tsao
f114a47b5b
Improve "synced block.." log ( #9760 )
2021-10-09 15:27:34 +02:00
Nishant Das
65d2df4609
Add in Stronger Length Checks ( #9758 )
...
* add changes
* radek's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-08 17:41:36 +00:00
Radosław Kapka
63349d863b
Do not return data for validators without sync duties ( #9756 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-08 15:20:40 +00:00
Nishant Das
e2a00d3e2e
Update to v1.1.2 version of the Spec ( #9755 )
2021-10-08 15:08:57 +02:00
terence tsao
271ee2ed32
Cleanup slot helpers into intended locations ( #9752 )
...
* Refactor slot time helpers to intended locations
* Gazelle
* Update beacon-chain/core/time/slot_epoch.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Update beacon-chain/core/time/slot_epoch_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
* Go fmt
* Update transition_fuzz_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-10-07 19:15:35 +00:00
Radosław Kapka
b5f0bd88b0
Add sync details to error messages ( #9750 )
2021-10-07 20:50:03 +02:00
terence tsao
e7085897ad
Use BLS signature length config value ( #9746 )
...
* Use `BeaconConfig().BLSSignatureLength`
* Update BUILD.bazel
* Fix build
* Update BUILD.bazel
2021-10-07 10:37:53 -05:00
Raul Jordan
d9b98e9913
Health Endpoints Not Registered in Validator gRPC Gateway Fix ( #9747 )
2021-10-06 19:07:29 +00:00
terence tsao
a9f9026c78
Minor cleanups ( #9743 )
...
* Minor cleanups
* Delete slasher client files
* Revert "Delete slasher client files"
This reverts commit 0c995a1d4a834ded97385e6e338fe630c81db26b.
* Update slasher_client.go
2021-10-06 13:23:40 -05:00
Nishant Das
b128d446f2
Bring Eth2FastAggregateVerify Inline With the Spec ( #9742 )
...
* fix
* tie it closer to the spec
2021-10-06 10:48:56 +08:00
Radosław Kapka
9aa50352b6
Allow fetching sync committee duties for current and next period's epochs ( #9728 )
2021-10-05 08:46:16 -07:00
Mohamed Zahoor
362dfa691a
GetBlock() - Simple optimisations ( #9541 )
...
* GetBlock() optimizations
* addressed preston's comments
* fix fmt
* added benchmarks
* fix deepsource
* merge fix
* remove unnesesary check
* fixed terence's comments
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2021-10-05 17:28:02 +08:00
Raul Jordan
843ed50e0a
Register Slashing Protection Client in Validator ( #9735 )
2021-10-05 00:41:10 +00:00
Preston Van Loon
da58b4e017
Bump github.com/libp2p/go-tcp-transport to v0.2.8 ( #9734 )
2021-10-04 23:53:22 +00:00
Raul Jordan
800f78e279
Web UI Fix for Prysm V2.0.0 ( #9732 )
2021-10-04 22:26:55 +00:00
terence tsao
644038ba61
eth2 api: use balance instead of effective balance ( #9722 )
...
* Use balance instead of effective balance
* Update test to reflect validator balance
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-04 20:57:40 +00:00
Nishant Das
865ef4e948
Pin Base Images ( #9727 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-04 18:55:56 +00:00
Håvard Anda Estensen
b793d6258f
Add Golangci-lint to GitHub Actions and add Deadcode linter ( #9597 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-10-04 13:06:21 +02:00
Raul Jordan
f7845afa57
Use Unique Slot Time Tickers for Slasher ( #9723 )
2021-10-03 07:49:01 +00:00
terence tsao
c21e43e4c5
Refactor: move functions beacon-chain/core/time
-> time/slots
( #9719 )
...
* Move necessary functions beacon-chain/core/time -> time/slots
* Fix fuzz
* Fix build
* Update slot_epoch.go
2021-10-01 15:17:57 -05:00
Raul Jordan
4f31ba6489
Changes to E2E for Optimized Slasher ( #9698 )
...
* remaining slasher e2e changes
* testing gaz
* slash e2e
* deepsource
* gaz
* viz
* revert wait group changes
* comment
* lock around reset cache
* add slashing reason
* revert changes
* is sync
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
2021-09-30 20:28:14 +00:00
terence tsao
2bc3f4bc6a
Update sync time error message ( #9713 )
...
* Update sync_committee.go
* Update beacon-chain/core/altair/sync_committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
* Fix slot calculation
* Go fmt
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 20:03:57 +00:00
Radosław Kapka
601493098b
Return error when request JSON contains unknown fields ( #9710 )
...
* Return error when request JSON contains unknown fields
* Update api/gateway/apimiddleware/process_request.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-09-30 19:42:20 +00:00
terence tsao
8219af46e4
Move slot epoch from core to time pkg ( #9714 )
...
* Move slot epoch from core to time pkg
* Fix fuzz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 19:00:14 +00:00
Raul Jordan
f5234634d6
Prevent Saving Empty Chunks to Disk ( #9707 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 18:29:40 +00:00
Raul Jordan
26978fcc50
Make Jaeger in E2E Sharding Aware ( #9711 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 17:35:05 +00:00
Nishant Das
7c67d381f4
Remove Peer Scorer From Dev ( #9712 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 16:51:13 +00:00
Nishant Das
a196c78bed
clean up ( #9709 )
2021-09-30 08:10:49 -07:00
Nishant Das
3c052d917f
Use Scoring Parameters To Enable Global Score ( #8794 )
...
* fix score parameters
* add check
* fix deadlock issues
* fix
* fix again
* gaz
* comment
* fix tests and victor's review
* gaz
* clean up
* fix tests
* fix tests
* gate behind flag
* add scorer to dev
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 03:39:53 +00:00
Raul Jordan
7dae66afc9
Highest Attestations Endpoint for Optimized Slasher ( #9706 )
...
* begin highest atts
* highest atts
* deep source
2021-09-29 21:33:28 -05:00
Radosław Kapka
62dc74af2f
Move head event's epoch transition to epoch start ( #9704 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-09-29 17:18:10 -05:00