terence tsao
18ba937ea6
Fix: use blobs by root for pending block queue (option B)
2023-08-25 11:24:54 -07:00
terence tsao
72a9c211a7
Fix: use blobs by root for pending block queue
2023-08-25 11:24:54 -07:00
kasey
8e2f145f64
only initialize kzg if it will be used ( #12803 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-25 08:56:31 -05:00
kasey
f88c3496b1
re-use metadata bucket, group db constants ( #12804 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 22:17:32 -05:00
kasey
e7329d60b6
Nishant's feedback, consistent tmp var ( #12805 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 21:57:51 -05:00
kasey
e166e5d765
Save blob last stage init sync ( #12764 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-08-24 18:23:14 -05:00
kasey
56a91dc8ba
binary search is the wrong tool for the job, derp ( #12757 )
...
* binary search is the wrong tool for the job, derp
* restore protection from array index panics
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 18:23:14 -05:00
Potuz
68829bb9ae
Blob channel ( #12753 )
...
* Add a new blob channel
* fix mock
* reset the channel
* keep a map of channels
* gazelle
* do not overwrite map
* remove pre-declaration
2023-08-24 18:23:14 -05:00
terencechain
7f0444153f
test: skip deneb e2e test with tracking ( #12751 )
...
* test: skip deneb e2e test with an issue
* Unskip more stuff
2023-08-24 18:23:14 -05:00
terencechain
64fb16e9d3
fix: validator returning the right # of blobs ( #12738 )
2023-08-24 18:23:14 -05:00
terencechain
7dc152b5f1
Update gossip_scoring_params.go ( #12732 )
2023-08-24 18:23:14 -05:00
terencechain
a011f78bd1
feat: save blobs to db for subscriber ( #12734 )
2023-08-24 18:23:14 -05:00
james-prysm
a63a65939e
fixing route handler and small cleanup items ( #12726 )
2023-08-24 18:23:14 -05:00
terencechain
47ebb593f2
Fix: payload attribute v3 return nil ( #12736 )
2023-08-24 18:23:14 -05:00
terencechain
7de7f4c7ea
feat: add validator blob signing ( #12730 )
2023-08-24 18:23:14 -05:00
terencechain
dc41651786
feat: log blob commitment count ( #12723 )
2023-08-24 18:23:14 -05:00
terencechain
8ea20e8ae3
feat: implement eip4788 ( #12570 )
2023-08-24 18:23:14 -05:00
terencechain
656def3354
test:beta.1 deneb tests ( #12680 )
2023-08-24 18:23:14 -05:00
Potuz
accc3473c0
Validate blobs feature ( #12574 )
2023-08-24 18:23:14 -05:00
james-prysm
60d1ea701c
renaming data to blobs in execution payload ( #12664 )
2023-08-24 18:23:14 -05:00
james-prysm
5595cdc083
implementing publishblockv2 for deneb ( #12662 )
...
fixing broken test (#12673 )
2023-08-24 18:23:14 -05:00
terencechain
ffe1f03725
Test: add deneb spec test version beta.0 ( #12610 )
2023-08-24 18:23:14 -05:00
kasey
639703027a
sync blobs in initial-sync ( #12522 )
2023-08-24 18:23:14 -05:00
Preston Van Loon
c9aeaf79b1
Deneb: Implement EIP-7044 ( #12577 )
2023-08-24 18:23:14 -05:00
terencechain
5915ee5cd5
feat: add builder override ( #12601 )
2023-08-24 18:23:14 -05:00
terencechain
c2d65826c3
feat: EIP7045 increase max att inclusion slot ( #12565 )
2023-08-24 18:23:14 -05:00
kasey
f2c16fffa0
support deneb in fullPayloadFromPayloadBody ( #12649 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 18:23:14 -05:00
james-prysm
bb0296fba8
adding ssz handling to produce block endpoint for deneb ( #12632 )
2023-08-24 18:23:14 -05:00
james-prysm
41623cef46
adding ssz capabilities for deneb publish block v1 ( #12622 )
2023-08-24 18:23:14 -05:00
terencechain
51443e7915
fix: use hexutil bytes for blobs bundle ( #12623 )
2023-08-24 18:23:14 -05:00
terencechain
c70edaa02f
fix: add blob batch flags to main/usage ( #12614 )
2023-08-24 18:23:14 -05:00
james-prysm
359bc97d70
migrating get blob from eip4844 and deneb-integration ( #12603 )
2023-08-24 18:23:14 -05:00
james-prysm
a2e6d7d839
migrating Beacon API code from eip4844 to deneb-integration ( #12568 )
2023-08-24 18:23:14 -05:00
terencechain
733ccbc86a
feat(deneb): proposer rpc to handle builder flow ( #12554 )
2023-08-24 18:23:14 -05:00
terencechain
7db042ef97
fix: devnet6 interop issues ( #12545 )
2023-08-24 18:23:14 -05:00
terencechain
116170620a
feat(prysmctl): request blobs ( #12544 )
2023-08-24 18:23:14 -05:00
kasey
eb92a99e14
ssz detection support for deneb ( #12537 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 18:23:14 -05:00
kasey
368338d693
Integrate generate genesis ( #12523 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 18:23:14 -05:00
kasey
87f5635fbf
BlobSidecarsByRoot ( #12420 )
...
* BlobSidecarsByRoot RPC handler
* BlobSidecarsByRange rpc handler (#12499 )
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-24 18:23:14 -05:00
james-prysm
98000a5107
introducing deneb changes and blobs to builder ( #12477 )
2023-08-24 18:23:14 -05:00
terencechain
263c4f0bb6
feat(config): update max blobs per block to 6 ( #12512 )
2023-08-24 18:23:14 -05:00
terencechain
023dcfe8fc
feat(blockchain): update payload attribute for deneb ( #12509 )
2023-08-24 18:23:14 -05:00
terencechain
5c5a0f2d0f
feat(rpc/validator): stream and use deneb block ( #12510 )
2023-08-24 18:23:14 -05:00
terencechain
0f78585076
Update ProposeBeaconBlock Prysm RPC for Deneb (Non builder) ( #12495 )
2023-08-24 18:23:14 -05:00
terencechain
b96d9eda9c
Add data gas used field to execution payload ( #12488 )
2023-08-24 18:23:14 -05:00
terencechain
5f6c2e1f4c
Proposer RPC: GetBlock for Deneb ( #12481 )
2023-08-24 13:00:54 -05:00
terencechain
8793682e29
Update block's commitment size ( #12470 )
2023-08-24 13:00:54 -05:00
terencechain
043ead8f1a
Deneb: implements engine API end points ( #12384 )
2023-08-24 13:00:54 -05:00
james-prysm
944a60d1c4
validator signing deneb ( #12449 )
...
* validator signing feature migrated from eip4844 branch, added unit tests
* Update proto/prysm/v1alpha1/beacon_block.proto
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-24 13:00:54 -05:00
terencechain
f822c5783a
Add Deneb upgrade function ( #12433 )
2023-08-24 13:00:54 -05:00
terencechain
aa010a5062
P2P: broadcast blob ( #12419 )
2023-08-24 13:00:54 -05:00
terencechain
6ab60976ae
Add Blob Gossip ( #12413 )
2023-08-24 13:00:54 -05:00
Radosław Kapka
eace2df09f
Deneb integration: Beacon API getStateV2 ( #12424 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Fix Migration Of State (#12423 )
2023-08-24 13:00:54 -05:00
terencechain
17c4338b76
Deneb DB methods ( #12379 )
2023-08-24 13:00:54 -05:00
terencechain
05c27c7cf4
Add Deneb state ( #12375 )
2023-08-24 13:00:54 -05:00
terencechain
6be8202d3b
Add deneb block to consensus types ( #12368 )
2023-08-24 12:52:18 -05:00
terencechain
52ebbd255c
Add deneb protobufs ( #12363 )
2023-08-24 12:52:18 -05:00
Preston Van Loon
5433502055
Add deneb config/params from deneb-integration ( #12783 )
...
Co-authored-by: Terence Tsao <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-23 20:07:25 +00:00
Radosław Kapka
f0d54254ed
HTTP implementation of voluntary exit pool endpoints ( #12777 )
...
* impl
* protos
* tests
* review
* test fix
2023-08-23 07:51:03 +00:00
james-prysm
da244c9e9a
adding register validator route ( #12776 )
2023-08-22 15:44:00 +00:00
Sammy Rosso
e49f1321b7
HTTP Beacon API: /eth/v1/beacon/blocks/{block_id}/root ( #12716 )
...
* Initial setup
* Fix all tests and handler func
* Cleanup
* Fix the tests
* Remove middleware endpoint
* Add endpoint
* Switch query param to path
* Fix e2e test
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek & James Reviews
* Check blockId length
* Add length check
* Fix
* Revert "Fix e2e test"
This reverts commit 6289c1de5c .
* use v1alpha1 server to get root
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-22 06:18:02 +00:00
Raul Jordan
5eb8b88073
Update Fuzz List Timeout Github Workflow ( #12768 )
2023-08-22 04:48:13 +00:00
james-prysm
b0fc368185
local-block-value-boost flag from float64 to uint64 [BREAKING CHANGE] ( #12765 )
2023-08-21 22:34:34 +00:00
Raul Jordan
777ca06b78
Add Github Go Fuzzing Workflow With Cron Schedule ( #12756 )
...
* add in github workflow for fuzzing that runs with cron
* every day
* go version
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-21 16:09:51 +00:00
james-prysm
4d520460e0
REST implementation of /eth/v1/validator/register_validator ( #12758 )
...
* migrating v2 to http native url
* removing old code
* gaz
* updating beacon api validator client code
* fixing tests
2023-08-21 15:42:43 +00:00
Potuz
27d8b1c358
add more descriptive log on FFG-LMD consistency ( #12763 )
...
* add more descriptive log on FFG-LMD consistency
* Update beacon-chain/blockchain/receive_attestation.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update beacon-chain/blockchain/receive_attestation.go
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-21 14:06:59 +00:00
terencechain
17500dcfca
Fix: download genesis log ( #12759 )
2023-08-20 14:46:40 -07:00
Radosław Kapka
0452fd02e8
HTTP Beacon API: /pool/attestations ( #12735 )
...
* attestations
* post
* tests
* Revert "Auxiliary commit to revert individual files from afede4d949a7519902be2f1e0c485306c4ccdea7"
This reverts commit 9de74879e0c41e43183da2fa7e63094cac030abe.
* remove test
* remove redundant return
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* review
* include index in broadcast log
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-18 14:29:40 +00:00
terencechain
09d761e1ab
fix(proposer): verify attestations without mutating state ( #12704 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-17 16:37:19 +00:00
Potuz
9a741c52d1
Remove quadratic loops when exiting ( #12737 )
...
* Remove quadratic loops when exiting
* unit test
* fix tests
* lint
* duplicated imports
* handle new error
* revert spurious unit test
* radek's review
* fix name
* use errors.Is
* fix error check
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-17 15:38:46 +00:00
Sammy Rosso
baed8da9c0
HTTP Beacon API: /eth/v1/validator/sync_committee_contribution ( #12698 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-08-17 12:01:24 +02:00
Matthew Obwaya
33410a0ec1
Remove uses of deprecated go_embed rules_go ( #12719 )
...
* Remove prysm_web_ui http_archive from WORKSPACE
* Remove go_embed_data_dependencies() from WORKSPACE
* Remove go_embed_data target from validator/web/BUILD.bazel
* Remove # gazelle:ignore site_data.go annotation from validator/web/BUILD.bazel
* Run bazel run //:gazelle
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-08-16 15:47:09 +00:00
Nishant Das
cda1797d4e
Remove Alpine Images From Prysm ( #12749 )
2023-08-16 14:01:09 +00:00
Potuz
e7f6048b8c
Use last optimistic status on batches ( #12741 )
...
* Use last optimistic status on batches
* more descriptive errors
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-16 01:40:36 +00:00
Potuz
418959565f
set optimistic status in head at init sync ( #12748 )
2023-08-16 00:47:56 +00:00
Raul Jordan
8229f3eb84
Prysm Web UI Release v2.0.4 ( #12746 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2023-08-15 21:11:44 +00:00
Nishant Das
4098d098aa
Shift Error Logs To Debug ( #12739 )
2023-08-15 14:44:54 +00:00
anukul
46c72798c7
HTTP Beacon API: /eth/v1/validator/attestation_data ( #12634 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-14 17:56:36 +03:00
Preston Van Loon
a5474200de
Update geth to 1.12.2 ( #12731 )
2023-08-14 17:48:11 +08:00
Preston Van Loon
a85b4445fc
Update bazel to 6.3.2 ( #12725 )
...
* Update bazel version to v6.3.2
* Disable legacy external runfile generation for CI
* Revert "Disable legacy external runfile generation for CI"
This reverts commit 1911f293d6 .
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-11 19:08:33 +00:00
Preston Van Loon
751dd847b8
Update rules go & gazelle ( #12721 )
...
* Update rules_go to v0.40.0
* Update gazelle to v0.26.0
* Update gazelle to v0.27.0
* Update gazelle to v0.28.0
* Update gazelle to v0.29.0
* Update gazelle to v0.30.0
* Update gazelle to v0.31.0
2023-08-11 16:39:35 +00:00
Preston Van Loon
aeb7a45864
Update geth to 1.12.1 ( #12718 )
...
* Update geth to 1.12.1
* Fix //cmd/validator/flags:go_default_test
* fix //beacon-chain/node:go_default_test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-11 10:45:42 +00:00
Radosław Kapka
e952fd802b
HTTP Beacon API: /eth/v1/validator/beacon_committee_subscriptions ( #12700 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* implementation
* tests
* test fixes
* review
* clear cache in validator tests
* add missing stuff
* compilation fix
* remove `required` from bool
* remove time fetcher from tests
* no need to convert
* add conversion
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-10 18:00:19 +00:00
Nishant Das
b511eef848
Update BLST to v0.3.11 ( #12717 )
...
* add changes
* Remove server.c exclusion in headers
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-08-10 22:51:19 +08:00
dependabot[bot]
7aa043892b
Bump github.com/libp2p/go-libp2p from 0.27.5 to 0.27.8 ( #12709 )
...
* Bump github.com/libp2p/go-libp2p from 0.27.5 to 0.27.8
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p ) from 0.27.5 to 0.27.8.
- [Release notes](https://github.com/libp2p/go-libp2p/releases )
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/CHANGELOG.md )
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.27.5...v0.27.8 )
---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* gazelle and remove libp2p patch. The patch is merged upstream as of this version
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-08-09 17:24:07 +00:00
Radosław Kapka
36be057a11
HTTP Beacon API: /eth/v1/node/syncing ( #12706 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-09 17:23:59 +02:00
Radosław Kapka
049e608c75
HTTP Beacon API: /eth/v1/validator/sync_committee_subscriptions ( #12689 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* review
* James' review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-08 22:54:04 +00:00
Preston Van Loon
4541598850
Update go to 1.20.7 ( #12707 )
2023-08-08 21:39:22 +00:00
Sammy Rosso
8c08854dd0
Fix prysmctl writing empty JSON/YAML files ( #12599 )
...
* Setup
* add in marshalable
* Cleanup
* Raul' review
* Remove yaml Marshaler
* minimal fixes
* same imports
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-08 15:20:41 +00:00
m3diumrare
d2ff995eb2
Fix reported effective balance for unknown/pending validators ( #12693 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-07 09:19:02 -05:00
anukul
56a0315dde
fix: set CoreService in beaconv1alpha1.Server ( #12702 )
2023-08-06 18:16:54 -07:00
anukul
634133fedc
use struct in beacon-chain/rpc/core to store dependencies ( #12701 )
2023-08-05 22:54:12 +02:00
terencechain
c1c1b7ecfa
Feat: aggregate parallel default ( #12699 )
2023-08-04 16:03:10 +00:00
Nishant Das
9a4670ec64
add changes ( #12697 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-08-04 22:05:47 +08:00
Radosław Kapka
a664a07303
Multi Value Slice ( #12616 )
...
* multi value slice
* extract helper function
* comments
* setup godoc fix
* value benchmarks
* use guid
* fix bug when deleting items
* remove callback and rename MultiValue
* godoc
* tiny change
* Nishant's review
* typos
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-04 12:42:54 +00:00
Potuz
dd14d5cef0
refactor slot tickers with intervals ( #12440 )
...
* refactor slot tickers with intervals
* GoDoc
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-03 20:55:16 -03:00
Radosław Kapka
3a09405bb7
HTTP Beacon API: /eth/v1/validator/aggregate_and_proofs ( #12686 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* review
* test fixes
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 22:24:23 +00:00
terencechain
cb59081887
Remove: span for convert to indexed attestation ( #12687 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 16:17:46 +00:00
Nishant Das
a820d4dcc8
Minor Optimization on InnerShuffleList ( #12690 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 06:56:07 +00:00
terencechain
dbc17cf2ca
Fix: use correct context for UpdateCommitteeCache ( #12691 )
2023-08-03 06:00:58 +00:00
terencechain
d38762772a
test: add execution payload operation tests ( #12685 )
...
* test: add execution payload operation tests
* thanks!
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Update testing/spectest/shared/bellatrix/operations/execution_payload.go
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-02 08:16:46 +00:00
Potuz
e5d1eb885d
Update caches blocking ( #12679 )
...
* update NSC together with epoch boundary caches
* block when updating caches
* reviews
* removal of very useful helper because the reviewers requested it :)
* use IsEpochEnd
2023-08-02 05:59:09 +00:00
terencechain
a9d7701081
test: add missing random and fork transition spec tests ( #12681 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-01 14:08:40 +00:00
Bharath Vedartham
33abe6eb90
add metric to check if validator is in next sync commitee ( #12650 )
...
* add metric to check if validator is in next sync commitee
* Update validator/client/validator.go
* Update validator/client/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2023-08-01 08:25:10 +00:00
terencechain
c342c9a14e
fix: update nil check for new validator ( #12677 )
2023-08-01 04:13:57 +00:00
Radosław Kapka
a9b003e1fe
HTTP Beacon API: /eth/v1/validator/contribution_and_proofs ( #12660 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-07-31 17:32:39 +00:00
Radosław Kapka
955175b7eb
Update server-side events dependency ( #12676 )
...
* Update server-side events dependency
* go sum
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-31 15:51:19 +00:00
Potuz
c17682940e
only handle epoch boundary on canonical blocks ( #12666 )
...
* only handle epoch boundary on canonical blocks
* do not fetch headstate
2023-07-31 12:07:09 -03:00
Nishant Das
db450f53a4
Fix Update Of Committee Cache ( #12668 )
...
* fix it
* sammy's comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-28 13:34:03 +00:00
terencechain
493905ee9e
feat: add state regren duration metric ( #12672 )
2023-07-27 19:33:25 +00:00
james-prysm
e449724034
Bugfix: proposer-settings edge case for activating validators ( #12671 )
2023-07-27 16:45:16 +00:00
terencechain
a44c209be0
feat: add metric for block gossip time ( #12670 )
2023-07-27 15:17:24 +00:00
terencechain
183e72b194
fix: update epoch + 1 ( #12667 )
2023-07-27 18:53:36 +08:00
Potuz
337c254161
update shuffling caches at epoch boundary ( #12661 )
...
* update shuffling caches at epoch boundary
* move span
* do not advance to a past slot
2023-07-26 18:46:18 +00:00
james-prysm
ec60cab2bf
Bugfix: Metrics adding fix pending validators balance ( #12665 )
2023-07-26 16:09:24 +00:00
Potuz
ded00495e7
Parallelize cl el validation ( #12590 )
...
* Parallelize EL and CL block validation
* fix by Nishant
2023-07-26 12:23:51 -03:00
Nishant Das
113172d8aa
Exit Initial Sync Early ( #12659 )
...
* add check
* fix test
2023-07-26 00:38:25 +00:00
Radosław Kapka
2b40c44879
Use the correct root in consensus validation ( #12657 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-25 12:04:08 +02:00
Radosław Kapka
fc193b09bf
HTTP Beacon API: /eth/v1/validator/aggregate_attestation ( #12643 )
...
* initial implementation
* it works
* tests
* extracted helper functions
* fix code
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-24 22:16:45 +00:00
Radosław Kapka
a0d53f5155
Register GetValidatorPerformance as POST ( #12658 )
2023-07-24 21:17:08 +00:00
terencechain
ff3d2bc69f
fix: add mainnet withdrawals and bls spec tests ( #12655 )
2023-07-24 14:13:02 +00:00
Nishant Das
dd403f830c
clean up logging ( #12653 )
2023-07-24 20:29:50 +08:00
Raul Jordan
e9c8e84618
Integrate Read-Only-Lock-on-Get LRU Cache for Public Keys ( #12646 )
...
* use new lru cache
* update build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-22 04:37:53 +00:00
james-prysm
9c250dd4c2
Builder gas limit fix default to 0 in some cases ( #12647 )
...
* adding fix for nethermind's findings on gaslimit =0 on some default setups
* adding in default gaslimit check
* fixing linting on complexity
* fixing cognitive complexity linting marker
* fixing unit test and bug with referencing
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-22 03:44:50 +00:00
Potuz
f97db3b738
Different parallel hashing ( #12639 )
...
* Paralellize hashing of large lists
* add unit test
* add file
* do not parallelize on low processor count
* revert minimal proc count
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-21 20:36:20 -04:00
Radosław Kapka
43378ae8d5
Use BlockProcessed event in Beacon API ( #12625 )
...
* Use `BlockProcessed` event in Beacon API
* log error
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:26:34 +00:00
Radosław Kapka
2217b45e16
Return historical roots in Capella state ( #12642 )
...
* Return historical roots in Capella state
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:00:05 +00:00
james-prysm
405cd6ed86
Publish blockv2 ssz ( #12636 )
...
* wip produce block v2 ssz
* adding functions for ssz processing
* fixing linting
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing review feedback
* fixing linting
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-20 16:26:40 +00:00
terencechain
ba9bbdd6b9
Style: minor cleanups to blockchain pkg ( #12640 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 10:17:35 +00:00
Nishant Das
945c76132c
Add Allocation Data To Benchmark ( #12641 )
...
* add more data
* terence's review
2023-07-20 08:49:17 +00:00
Radosław Kapka
056d3ff0cc
Fix GetValidatorPerformance endpoint ( #12638 )
2023-07-19 15:29:07 +00:00
Nishant Das
d4fd3c34de
Use GetPayloadBodies in our Engine Client ( #12630 )
...
* add it to our engine client
* lint
* add better debugging info
* temp debugging
* fix
* fix it
* pretty
* dumb bug
* Revert "pretty"
This reverts commit 6a6df3cc5f .
* Revert "fix it"
This reverts commit 73dc617bb0 .
* Revert "fix"
This reverts commit 3aecdaac6d .
* Revert "temp debugging"
This reverts commit ffcd2c61a0 .
* Revert "add better debugging info"
This reverts commit 96184e8567 .
* raul's comment
* regression test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-18 15:46:23 +00:00
Sammy Rosso
4ac4d00377
Implement GetValidatorPerformance beacon chain client ( #12581 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* Implement GetValidatorPerformance
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Update + add broken test
* Gaz
* fix
* Fix test
* Create const for endpoint
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-18 08:57:54 +00:00
Radosław Kapka
ec2fda7ad9
getSyncCommitteeRewards API endpoint (#12633 )
2023-07-18 10:31:15 +02:00
Preston Van Loon
292f4de099
Update hermetic_cc_toolchain ( #12631 )
2023-07-17 14:50:45 +00:00
terencechain
145a485b75
fix(pcli): use state trie for HTR duration ( #12629 )
2023-07-15 20:39:58 -07:00
terencechain
7e474b7a30
fix: benchmark deserialize without clone and init trie ( #12626 )
...
* fix: benchmark deserialize without clone
* remove tree initialization
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-15 12:35:58 +00:00
Nishant Das
af0ee9bd16
use read-only validators ( #12628 )
2023-07-15 00:34:45 -07:00
Radosław Kapka
456ba7c498
Fix comments when receiving block ( #12624 )
2023-07-14 10:30:02 +00:00
Potuz
cd8847c53b
Add deserialization time in pcli benchmark ( #12620 )
2023-07-13 12:19:10 +00:00
Kaushal Kumar Singh
1894a124ea
Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes ( #12586 )
...
* Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes
* Updated unit test
2023-07-13 10:43:17 +00:00
Preston Van Loon
490bd22b97
Update go version to 1.20.6 ( #12617 )
2023-07-12 19:55:33 +00:00
terencechain
f23e720a16
fix: add local boost flag to main/usage ( #12615 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-12 12:15:25 +00:00
Raul Jordan
402799a584
Threadsafe LRU With Non-Blocking Reads for Concurrent Readers ( #12476 )
...
* add nonblocking simple lru
* method
* add in missing tests, fix panic
2023-07-12 17:57:52 +08:00
james-prysm
0266609bf6
bugfix : Eth-Consensus-Version header on response header ( #12600 )
...
* adding in custom header
* adding in parsing for middleware
* fixing casing
* add handling on error as well
* changing how error is handled for header
* changing how error is handled
* fixing casing
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing unit tests and review comment
* making some constants consistent in 1 file
* fixing missed blinded blocks
* fixing constants in custom handler tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-11 13:27:23 -05:00
Potuz
58df1f1ba5
lock before saving the poststate to db ( #12612 )
2023-07-11 16:10:32 +00:00
Simon
cec32cb996
Append Dynamic Addinng Trusted Peer Apis ( #12531 )
...
* Append Dynamic Addinng Trusted Peer Apis
* Append unit tests for Dynamic Addinng Trusted Peer Apis
* Update beacon-chain/p2p/peers/peerdata/store.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/status.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function;
* Update beacon-chain/rpc/prysm/node/server.go
* Update beacon-chain/rpc/prysm/node/server.go
* fix go lint problem
* p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer().
p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status.
p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers.
* use readlock for GetTrustedPeers and IsTrustedPeers
---------
Co-authored-by: simon <sunminghui2@huawei.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-11 09:26:08 +00:00
Nishant Das
d56a530c86
Copy Bytes Alternatively ( #12608 )
...
* copy bytes alternatively
* test
2023-07-10 19:47:29 +08:00
Nishant Das
0a68d2d302
Fix Context Cancellation ( #12604 )
2023-07-08 08:50:04 +00:00
minh-bq
25ebd335cb
Fix bls signature batch unit test ( #12602 )
...
We randomly observe this failure when running unit test
go test -test.v -run=^TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
=== RUN TestSignatureBatch_AggregateBatch
=== RUN TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
signature_batch_test.go:643: AggregateBatch() Descriptions got = [test signature bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature], want [bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature test signature]
--- FAIL: TestSignatureBatch_AggregateBatch (0.02s)
--- FAIL: TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages (0.02s)
The problem is that the signature sort forgets to swap the description when a
swap occurs. This commit adds the description swap when swap occurs.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-07-07 14:26:02 -05:00
Sammy Rosso
6a0db800b3
GetValidatorPerformance http endpoint ( #12557 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Add correct error code
* Fix error code in test
* Adding errors
* Fix errors
* Fix default GRPC error
* Change http errors to core ones
* Use error status without helper
* Fix
* Capitalize GRPC error messages
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-07 14:49:44 +00:00
Nishant Das
085f90a4f1
Prune Pending Deposits on Finalization ( #12598 )
...
* prune them
* Update beacon-chain/blockchain/process_block_helpers.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-07 11:20:14 +08:00
dependabot[bot]
ecb26e9885
Bump google.golang.org/grpc from 1.40.0 to 1.53.0 ( #12595 )
...
* Bump google.golang.org/grpc from 1.40.0 to 1.53.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.40.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.40.0...v1.53.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Run gazelle and fix new gRPC API
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-07-06 20:11:43 +00:00
james-prysm
7eb0091936
Checkpoint sync ux ( #12584 )
...
* small ux improvement for checkpoint sync
* adding small log for ux update
* gaz
2023-07-06 16:46:55 +00:00
terencechain
f8408b9ec1
feat: add metric for ReceiveBlock ( #12597 )
2023-07-06 02:57:55 -07:00
Preston Van Loon
d6d5139d68
Clarify sync committee message validation ( #12594 )
...
* Clarify sync committee validation and error message
* fix test
2023-07-05 19:20:21 +00:00
terencechain
2e0e29ecbe
fix: prune invalid blocks during initial sync ( #12591 )
2023-07-05 08:33:33 -07:00
Potuz
e9b5e52ee2
Move consensus and execution validation outside of onBlock ( #12589 )
...
* Move consensus and execution validation outside of onBlock
* reviews
* fix unit test
* revert version change
* fix tests
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 21:12:21 +08:00
Nishant Das
2a4441762e
Handle Epoch Boundary Misses ( #12579 )
...
* add changes
* fix tests
* fix edge case
* fix logging
2023-07-05 09:23:51 +00:00
Nishant Das
401fccc723
Log Finalized Deposit Insertion ( #12593 )
...
* add log
* update key
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 08:07:38 +00:00
Radosław Kapka
c80f88fc07
Rename payloadHash to lastValidHash in setOptimisticToInvalid ( #12592 )
2023-07-04 17:03:45 +00:00
Kevin Wood
faa0a2c4cf
Correct log level for 'Could not send a chunked response' ( #12562 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-02 22:58:12 +00:00
Nishant Das
c45cb7e188
Optimize Validator Roots Computation ( #12585 )
...
* add changes
* change it
2023-07-01 02:23:25 +00:00
0xalex88
0b10263dd5
Increase validator client startup proposer settings deadline ( #12533 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-30 21:37:39 +00:00
Anukul Sangwan
3bc808352f
run ineffassign for all code ( #12578 )
...
* run `ineffassign` for all code
* fix reported ineffassign errors
* remove redundant changes
* fix remaining ineffassign errors
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-06-29 15:38:26 +00:00
james-prysm
d0c740f477
Registration Cache used by default and other UX changes for Proposer settings ( #12456 )
...
* WIP
* WIP
* adding in migration function
* updating mock validator and gaz
* adding descriptive logs
* fixing mocking
* fixing tests
* fixing mock
* adding changes to handle enable builder settings
* fixing tests and edge case
* reduce cognative complexity of function
* further reducing cognative complexity on function
* WIP
* fixing unit test on migration
* adding more tests
* gaz and fix unit test
* fixing deepsource issues
* fixing more deesource issues missed previously
* removing unused reciever name
* WIP fix to migration logic
* fixing loging info
* reverting migration logic, converting logic to address issues discussed on slack, adding unit tests
* adding test for builder setting only not saved to db
* addressing comment
* fixing flag
* removing accidently missed deprecated flags
* rolling back mock on pr
* fixing fmt linting
* updating comments based on feedback
* Update config/features/flags.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* fixing based on feedback on PR
* Update config/validator/service/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/client/runner.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/db/kv/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* adding additional logs to clear up some steps based on feedback
* fixing log
* deepsource
* adding comments based on review feedback
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-29 02:49:21 +00:00
Preston Van Loon
cbe67f1970
Update protobuf and protobuf deps ( #12569 )
...
* Update protobuf and protobuf deps
* gazelle
* enforce c++14
* bump to c++17 since practically all modern compilers support it
* update protobuf again to resolve mac issues, bump c++20
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-28 14:50:43 +00:00
Potuz
5bb482e5d6
Remove forkchoice call from notify new payload ( #12560 )
...
* Remove forkchoice call from notify new payload
* add unit test
2023-06-28 13:38:24 +00:00
terencechain
83494c5b23
fix: use diff context to update proposer cache background ( #12571 )
2023-06-27 20:31:54 +00:00
terencechain
a10ffa9c0e
Cache next epoch proposers at epoch boundary ( #12484 )
...
* Cache next epoch proposers at epoch boundary
* Fix new lines
* Use UpdateProposerIndicesInCache
* dont set state slot
* Update beacon_committee.go
* dont set state slot
* genesis epoch check
* Rm check
* fix: rm logging ctx
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* feat: move update to background
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-27 14:41:24 +00:00
Radosław Kapka
e545b57f26
Deflake cloners_test.go ( #12566 )
2023-06-26 15:43:00 +00:00
Preston Van Loon
c026b9e897
Set blst_modern=true to be the bazel default build ( #12564 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 15:06:33 +00:00
Preston Van Loon
a19044051f
Add hermetic_cc_toolchain for a hermetic cc toolchain ( #12135 )
...
* Add bazel-zig-cc for a hermetic cc toolchain
* gazelle
* Remove llvm
* remove wl
* Add new URLs for renamed repo
* gazelle
* Update to v2.0.0-rc1
* bump to rc2
* Some PR feedback
* use v2.0.0 from rc2
* Disable hermetic builds for mac and windows.
* bump bazel version, add darwin hack
* fix
* Add the no-op emtpy cc toolchain code
* typo and additional copy
* update protobuf and fix vaticle warning
* Revert "update protobuf and fix vaticle warning"
This reverts commit 7bb4b6b564 .
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 14:31:40 +00:00
Potuz
1ebef16196
use the incoming payload status instead of calling forkchoice ( #12559 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 18:09:02 +00:00
terencechain
8af634a6a0
feat: aggregate atts using fixed pool of go routines ( #12553 )
...
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-22 17:48:42 +00:00
Potuz
884ba4959a
Remove unneded helper ( #12558 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 16:54:52 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
Sammy Rosso
20f4d21b83
Keymanager API: Add validator voluntary exit endpoint ( #12299 )
...
* Initial setup
* Fix + Cleanup
* Add query
* Fix
* Add epoch
* James' review part 1
* James' review part 2
* James' review part 3
* Radek' review
* Gazelle
* Fix cycle
* Start unit test
* fixing part of the test
* Mostly fix test
* Fix tests
* Cleanup
* Handle error
* Remove times
* Fix all tests
* Fix accidental deletion
* Unmarshal epoch
* Add custom_type
* Small fix
* Fix epoch
* Lint fix
* Add test + fix empty query panic
* Add comment
* Fix regex
* Add correct error message
* Change current epoch to use slot
* Return error if incorrect epoch passed
* Remove redundant type conversion
* Fix tests
* gaz
* Remove nodeClient + pass slot
* Remove slot from parameters
* Fix tests
* Fix test attempt 2
* Fix test attempt 2
* Remove nodeClient from ProposeExit
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:06:16 -05:00
Bryce T
c018981951
Add expected withdrawals API ( #12519 )
...
* add structs for expected-withdrawals-api
* add server handler
* add tests
* add bazel file
* register api in service
* remove get prefix for endpoint
* fix review comments
* Update beacon-chain/rpc/eth/builder/handlers.go
* use goimports sorting type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:36:47 +00:00
Radosław Kapka
b92226bedb
getAttestationRewards API endpoint (#12480 )
...
* handler
* very much work in progress
* remove Polish
* thinking
* working but differs from LH
* remove old stuff
* review from Potuz
* validator performance beacon server
* Revert "validator performance beacon server"
This reverts commit 42464cc6d3 .
* reuse precompute calculations
* todos
* production quality
* add json tags to AttestationRewards
* Potuz's review
* extract vars
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-21 13:16:53 +00:00
Potuz
57f97feb84
Track optimistic status on head ( #12552 )
2023-06-20 08:59:48 -07:00
Sanghee Choi
2bf0560dc7
fix typo (beacon-chain/node/node.go) ( #12551 )
2023-06-20 08:32:34 +00:00
Radosław Kapka
a40f903f76
Fix TestFieldTrie_NativeState_fieldConvertersNative ( #12550 )
2023-06-19 13:49:12 +00:00
Sanghee Choi
ba55ae8cea
fix typo (CONTRIBUTING.md) ( #12548 )
2023-06-18 19:24:19 -07:00
Potuz
27aac105d7
disable nil payloadid log on relayers flags ( #12465 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-16 17:01:57 +00:00
terencechain
115d565f49
fix: late block task wait for initial sync ( #12526 )
...
* fix: late block task wait for initial sync
* fix: remove wait for clock
2023-06-16 13:47:19 +00:00
Potuz
019e0b56e2
Do not validate merge transition block after Capella ( #12459 )
2023-06-16 13:11:07 +00:00
Nishant Das
0efb038984
Fix Fuzz Target For ExecutionPayload ( #12541 )
2023-06-16 12:41:28 +00:00
Nishant Das
63d81144e9
Fix Uint256 Json Parsing ( #12540 )
...
* add stronger checks
* radek's review
2023-06-16 09:43:20 +00:00
james-prysm
6edbfa3128
multiple validator status - optimization ( #12487 )
...
* adding optmization
* addressing comments
* adding a test and fixing change in assignments.go
* making some changes based on review of the code
* removing irrelevant test
* changing formatting
2023-06-15 17:20:00 -05:00
Nishant Das
194b3b1c5e
Ensure File Does Not Exist ( #12536 )
...
* error out
* gaz
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-15 21:41:46 +00:00
james-prysm
996ec67229
changing default on bad validators ( #12535 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-15 16:40:59 +00:00
Nishant Das
c7b2c011d8
fix parsing ( #12534 )
2023-06-15 11:12:39 -04:00
james-prysm
d15122fae2
Reopenning fix for keystore field name change to align with EIP2335 ( #12530 )
...
* adding changes
* fixing deepsource
2023-06-14 15:48:30 -05:00
Potuz
3e17dbb532
log the right blocknumber ( #12529 )
2023-06-14 19:55:33 +00:00
Nishant Das
a75e78ddb4
Ignore Late Message Logs ( #12525 )
2023-06-14 10:37:39 +00:00
Nishant Das
1862422db9
Remove Defer In ProposeGenericBlock ( #12524 )
2023-06-14 05:25:52 +00:00
james-prysm
152d21059e
adding additional comments and safe copies to protos ( #12518 )
2023-06-13 10:31:29 -05:00
terencechain
2b410893a0
optimization: epoch boundary uses next slot cache ( #12515 )
...
* optimization: epoch boundary uses next slot cache
* test: fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 17:13:49 +00:00
Potuz
826267310e
benchmark cold hashing of capella beaconstates ( #12516 )
...
* benchmark cold hashing of capella beaconstates
* use since
2023-06-12 16:54:43 +00:00
Nishant Das
d5057cfb42
Add the Ability for Prysm To Handle Trusted Peers ( #12492 )
...
* add all changes
* add to peers to watch
* add tests
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-12 14:47:52 +00:00
james-prysm
8d01cf2ec1
change update duties to handle all validators exited check ( #12505 )
...
* wip have update duties handle all validators updated
* removing function and adding tests
* removing unnessesary test
* fixing unit test
* gaz
* removing number on wait group
* trying lower threshold to reduce timeout
* testing removal of test to resolve timeout on buildkite
* gaz
* removing test that is breaking buildkite on timeouts, will need to return to revaluate difference between buildkite and local mock
* addressing feedback
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 14:27:52 +00:00
Potuz
e4e315da94
log validation time for blocks ( #12514 )
2023-06-12 22:06:57 +08:00
terencechain
0a4e42545e
Use next slot cache for sync committee ( #12287 )
...
* Use next slot cache for sync committee
* RWMutex
* change mutex for last cached state
* feat: change mutex
* test: add db
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 04:30:06 +00:00
kasey
6fa2d768b5
Checkpoint sync: get block using state.latest_block_header.slot ( #12447 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-11 03:00:38 +00:00
Nishant Das
0f228896b0
Add Patch For Libp2p ( #12507 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-11 01:59:18 +00:00
terencechain
6896b41963
optimization(proposer rpc): move htr to after broadcast ( #12504 )
2023-06-09 06:32:29 -07:00
Nishant Das
3bf6abe27c
Ignore Phase0 Blocks For Monitor ( #12503 )
2023-06-09 05:00:36 +00:00
Nishant Das
c1391f0de3
Always Favour Yamux for Multiplexing ( #12502 )
2023-06-08 04:02:46 +00:00
james-prysm
6672d1499a
prysmctl: output proposer settings ( #12181 )
...
* wip proposer settings
* WIP validator client APIs
* adding proposer settings output
* adding unit tests
* fixing linting
* fixing deepsource issues
* fixing e2e
* fixing deep source issue
* updating naming to not stutter
* updating bazel
* fixing linting error
* reverting comment
* adding builder settings
* gaz
* Update validator/client/validator.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* adding comments
* adding some tests
* gaz
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing feedback
* fixing unit test
* addressign comments
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-06 17:03:30 +00:00
Nishant Das
33cf52831c
Update Libp2p to v0.27.5 ( #12486 )
...
* add deps
* update to v0.27.5 and handle panic
2023-06-06 08:41:15 +08:00
terencechain
d543e9be00
Update spec tests to v1.4.0-alpha.1 ( #12489 )
2023-06-03 11:17:13 +00:00
Nishant Das
0669050ffa
Add Appropriate Size for the Attestation Queue ( #12485 )
...
* add tag
* fix off by 1
2023-06-02 11:33:28 +00:00
zghh
ceff0c2024
Fix the bug that return 500 in /eth/v1/node/peers interface ( #12483 )
...
* Fix the bug that return 500 in /eth/v1/node/peers interface
* Update node.go
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-06-02 03:27:17 +00:00
Radosław Kapka
c32b581e8e
Add broadcast_validation to block publishing ( #12432 )
...
* day 1
* day 2
* day 2+
* day 3
* day 4
* making bazel happy
* PublishBlindedBlockV2
* remove file
* use lock in insertSeenProposerIndex
* remove EquivocationChecker interface
* update deps.bzl
* remove middleware json tags
* go mod tidy
* remove redundant return statements
* validate in handler
* improvements
* extract common code
* remove import
* sync test fix
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-06-01 11:22:49 +00:00
terencechain
e516a2004f
Update next slot cache correctly under late task ( #12462 )
2023-05-31 08:50:37 -07:00
terencechain
cb65d8af96
Proposer RPC: make setExecutionData better ( #12466 )
2023-05-31 06:06:32 -07:00
Nishant Das
70152bf476
Copy All Field Tries For Late Blocks ( #12461 )
...
* add new thing
* only have it for late blocks
* comments
* change to lock
* add test
* Update beacon-chain/state/state-native/state_test.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-05-30 09:57:20 +00:00
Radosław Kapka
8aa688729d
Cleanup of ProposerPayloadIDsCache ( #12474 )
...
* Cleanup of `ProposerPayloadIDsCache`
* one more comment
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-05-29 16:10:28 +00:00
Preston Van Loon
1ffc92999f
p2p: Check peer threshold is met before giving up on ctx deadline ( #12446 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-28 13:24:59 +00:00
terencechain
2dcef85f97
Add spec test for v1.4.0-alpha.0 ( #12460 )
...
* Fix spec test
* Fix sha
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-25 14:05:43 +00:00
Nishant Das
52da7b3de6
Release Lock Before Panicking ( #12464 )
2023-05-25 06:42:21 -07:00
terencechain
be16b64535
Remove SubmitBlindBlock context timeout ( #12453 )
2023-05-24 14:19:23 +00:00
terencechain
f4d3939b62
Add logs for build block times ( #12452 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-24 13:37:26 +00:00
Nishant Das
245d8a29e0
Optimize Zerohash Comparisons In Forkchoice ( #12458 )
2023-05-24 09:58:02 +00:00
james-prysm
666188dfea
Improve validator import logs ( #12429 )
...
* adding small ux improvement
* gaz
* rolling back dir test changes
* Update validator/accounts/accounts_import.go
* adding review suggestion
* missed else part of statement
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-05-23 15:41:41 -05:00
Preston Van Loon
cfa64ae013
Restore disable-peer-scorer flag ( #12386 )
...
* Revert "Make Peer Scorer Permanent Default (#12138 )"
This reverts commit 4d28d69fd9 .
* make peer scoring flag warning scary
2023-05-23 13:53:02 +00:00
Potuz
cd0f814f2e
fixed erroneous panic ( #12450 )
2023-05-23 11:12:31 +00:00
Radosław Kapka
abc81e6dde
Merge all block unblinding code into a single unblinder struct ( #12240 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-05-23 11:38:52 +02:00
terencechain
6b26183e73
Add missing config yamls for domains ( #12442 )
...
* Add missing config yamls for domains
* Fix GetSpec test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 18:02:41 +00:00
Preston Van Loon
7fe935e94d
Fix metric name from PR #12430 ( #12445 )
...
* Fix metric name from PR #12430
* @potuz can't spell 'unknown'
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 17:43:21 +00:00
Potuz
e0e7c71eb5
Fix sandwich attack on honest reorgs ( #12418 )
...
* Fix sandwich attack on honest reorgs
* fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 17:23:20 +00:00
Potuz
c80019bd0b
remove trivial helper ( #12443 )
2023-05-22 15:59:16 +00:00
james-prysm
8dfb92c605
reverting expiration logic on validator while using --enable-registration-cache ( #12436 )
...
* reverting expiration logic
* gaz
2023-05-22 14:54:09 +00:00
Potuz
9d192a3608
Remove unused function ( #12439 )
...
* Remove unused function
* gazelle
2023-05-22 11:09:08 -03:00
Nishant Das
51bde7a845
disable it ( #12438 )
2023-05-22 19:18:13 +08:00
kasey
385a317902
Revert initsync revert ( #12431 )
...
* Revert "Revert "BeaconBlocksByRange and BlobSidecarsByRange consistency (#123… (#12426 )"
This reverts commit ddc1e48e05 .
* fix metrics bug, add batch.next tests
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-19 16:59:13 +00:00
Potuz
b84dd40ba9
Use forkchoice to validate sync messages faster ( #12430 )
...
* Use forkchoice to validate sync messages faster
* add metric
2023-05-19 14:47:39 +00:00
kasey
aeaa72fdc2
fix deadlock between monitor service and init-sync ( #12427 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-18 18:35:06 +00:00
kasey
ddc1e48e05
Revert "BeaconBlocksByRange and BlobSidecarsByRange consistency (#123… ( #12426 )
...
This reverts commit 73e4bdccbb .
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-18 18:01:26 +00:00
Nishant Das
f91159337b
Fix Migration Of State ( #12423 )
2023-05-18 13:18:56 +00:00
Potuz
537236e1c9
Add aggregation metrics ( #12417 )
2023-05-17 12:18:59 -07:00
kasey
73e4bdccbb
BeaconBlocksByRange and BlobSidecarsByRange consistency ( #12383 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-17 12:16:10 +00:00
Potuz
f54bd64bdd
Default aggregation ticker times ( #12412 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-16 19:38:44 +00:00
james-prysm
d907cae595
persistent validator settings in validator client ( #12354 )
...
* WIP
* improving proposer settings store
* WIP persistent validator settings
* WIP persistent validator settings
* changing visibility level
* fixing some deepsource issues
* fixing more deepsource issues
* fixing json marshalling
* fix linting
* fixing tests
* fixing more tests
* fixing more tests
* fixing more tests
* fixing linting
* WIP fixing unit tests
* fixing remaining db tests
* converting json to protobuf
* fixing e2e
* k8s yaml library is used directly
* fixing linting
* fixing broken unit test
* reverting changes on e2e
* fixing linting
* fixing deepsource issue
* resolving some internal comments
* resolving some comments and adding more tests
* adding more unit tests
* gaz
* fixing flaking test
* fixing unit test contamination
* fixing deepsource issue
* resolving review item
* gaz
2023-05-16 14:08:49 -05:00
Potuz
be23773924
Don't use max cover on unaggregated atts nor check subgroup of validated signatures ( #12350 )
...
* Don't use max cover on unnaggregated atts
* Do not validate signature on the attestation package
* separate nil error checks
* fix unit tests
2023-05-16 17:06:26 +00:00
terencechain
29f6de1e96
Flip build block parallel feature flag ( #12408 )
2023-05-16 08:43:15 -07:00
Potuz
955a21fea4
revert revert of f6764fe62b ( #12399 )
2023-05-16 11:50:02 +00:00
Preston Van Loon
b4f1fea029
CI: fix docker image tagging ( #12407 )
2023-05-16 02:10:23 +00:00
kasey
f1b88d005d
fix broken slasher service init ( #12405 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-15 17:00:29 -05:00
Preston Van Loon
ee612d958a
Update discord invite ( #12403 )
2023-05-15 13:54:19 +00:00
Nishant Das
09e22538f9
Support Capella Blocks for Tool ( #12402 )
...
* fix it
* fix it
2023-05-15 17:59:02 +08:00
terencechain
3b9e974a45
Add epoch and root to not a checkpt in forkchoice log ( #12400 )
...
* Add epoch number and root in not a checkpt in forkchoice log
* Update beacon-chain/blockchain/process_attestation_helpers.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Fix test
* Fix typo
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-14 06:02:36 +00:00
Potuz
ad749a40b6
Save to checkpoint cache if the nsc hits ( #12398 )
...
* Save to checkpoint cache if the nsc hits
Also move the head check before the checkpoint cache check
* add unit test
2023-05-13 09:54:33 -03:00
terencechain
9b13454457
Metrics: Invert too late and too early att received count ( #12392 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 19:45:43 +00:00
Potuz
b9917807d8
Ignore some untimely attestations ( #12387 )
...
* Ignore some untimely attestations
* correct child slot check
* consider tips as viable for checkpoints
* deal with canonical blocks
* forkchoice unit tests
* blockchain readonly beacon state
* Ignore some untimely attestations
* correct child slot check
* consider tips as viable for checkpoints
* deal with canonical blocks
* forkchoice unit tests
* blockchain readonly beacon state
* Fix AttestationTargetState mock
* Fix ineffectual assignment lint
* Fix blockchain tests
* Fix build
* Add Nil check
* add comment on lock
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 16:55:33 +00:00
Raul Jordan
e5c9387cd9
Update Github Actions Go Version ( #12391 )
...
* update github actions
* use quotes or it is go 1.2
lol
* Update gosec
* Update gosec
* Update go lint
* fix gosec violations
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 15:51:20 +00:00
Preston Van Loon
2c3b3b802a
Revert "Add a new slot ticker and use it on attestation aggregation" ( #12390 )
...
This reverts commit f6764fe62b .
2023-05-12 14:49:37 +00:00
Simon
3ef3e1d13b
fix-subnets-oom ( #12388 )
...
fix-subnets-oom, close iterator after using it
2023-05-12 07:52:17 -05:00
Nick Sullivan
5c00fcb84f
Fix numerous spelling error and typos in the log messages, comments, and documentation. ( #12385 )
...
* Minor typos and spelling fixes (comments, logs, & docs only, no code changes)
* Fix seplling in log message
* Additional spelling tweaks based on review from @prestonvanloon
2023-05-11 20:45:43 +00:00
Nishant Das
aef22bf54e
Add In Support For Builder in E2E ( #12343 )
...
* fix it up
* add gaz
* add changes in
* finally runs
* fix it
* add progress
* add capella support
* save progress
* remove debug logs
* cleanup
* remove log
* fix flag
* remove unused lock
* gaz
* change
* fix
* lint
* james review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-05-11 11:10:29 -05:00
Potuz
f6764fe62b
Add a new slot ticker and use it on attestation aggregation ( #12377 )
...
* Add slot ticker with intervals
* add flags for aggregation duration
* misspelling
* hide flags
* fix flags and default durations
* lint
* wait for initial sync
* deep source
* add log
* Preston's review
* fix error message
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-10 12:48:51 +00:00
Preston Van Loon
07db0dc448
CI: Add support for buildbuddy uploads ( #12378 )
...
* Add build metadata
* Add buildbuddy flags
* more metadata
* fix latest tag
* fix branch
* revert branch change
* touch a file to trigger build
* remove unknown command
* fix script
* Update latest_version_tag.sh
2023-05-10 12:30:40 +00:00
Preston Van Loon
4b4e213a24
stategen: Pre-populate bls pubkey cache as part of stategen's Resume function ( #11482 )
...
* Pre-populate bls pubkey cache as part of state gen's Resume function. This adds some helpers and a benchmark to blst
* Do it async
* fix missing import
* lint
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
2023-05-10 10:44:15 +00:00
kasey
7d9f36985e
Fix initialization race ( #12374 )
...
* block all the sync startup code on init signal
* don't need chainStarted if everything blocks
* set empty clock by default to work around panics
* remove unused clock, zero-value for init-sync
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-10 04:09:15 +00:00
james-prysm
98f8ca4e34
reverting version check on bid header ( #12376 )
...
* adding reverting change
* adding additional tests and checks
* removing comment
* updating based on review suggestions
* fixing deepsource issues
* attempting to resolve dependencies
* removing dependency
* accidently flipped if statement with deepsource fix
* fixing unit test
2023-05-10 08:45:09 +08:00
james-prysm
535b38395e
migrating code from PR#12343 ( #12371 )
2023-05-08 09:33:26 -05:00
terencechain
4bd7e8aefd
WeiToGwei copy input big.int (#12370 )
2023-05-07 15:15:08 +00:00
Raul Jordan
6f383f272a
Do Not Panic on Broadcasting Nil Object ( #12369 )
2023-05-07 05:00:30 +00:00
terencechain
dbb8279fe6
Ran update-go-pbs.sh ( #12359 )
...
* Ran update-go-pbs.sh
* Fix import
2023-05-05 17:44:51 +00:00
Nishant Das
b6625554dd
fix build ( #12358 )
2023-05-05 08:32:56 -05:00
Radosław Kapka
bd833e1c12
Use v1alpha1 server in block production ( #12336 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-05-04 19:52:41 +02:00
kasey
918129cf36
Replace statefeed Initialize ( #12285 )
...
* refactor initialization to blocking startup method
* require genesisSetter in blockchain, fix tests
* work-around gazelle weirdness
* fix dep gazelle ignores
* only call SetGenesis once
* fix typo
* validator test setup and fix to return right error
* move waitForChainStart to Start
* wire up sync Service.genesisWaiter
* fix p2p genesisWaiter plumbing
* remove extra clock type, integrate into genesis
and rename
* use time.Now when no Nower is specified
* remove unused ClockSetter
* simplify rpc context checking
* fix typo
* use clock everywhere in sync; [32]byte val root
* don't use DeepEqual to compare [32]byte and []byte
* don't use clock in init sync, not wired up yet
* use clock waiter in blockchain as well
* use cancelable contexts in tests with goroutines
* missed a reference to WithClockSetter
* Update beacon-chain/startup/genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/blockchain/service_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* more clear docs
* doc for NewClock
* move clock typedef to more logical file name
* adding documentation
* gaz
* fixes for capella
* reducing test raciness
* fix races in committee cache tests
* lint
* add tests on Duration slot math helper
* startup package test coverage
* fix bad merge
* set non-zero genesis time in tests that call Start
* happy deepsource, happy me-epsource
* replace Synced event with channel
* remove unused error
* remove accidental wip commit
* gaz!
* remove unused event constants
* remove sync statefeed subscription to fix deadlock
* remove state notifier
* fix build
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com >
2023-05-03 04:34:01 +00:00
terencechain
5b8084b829
Proposer builds block in parallel. (Consensus vs Execution) ( #12297 )
...
* Proposer builds block in parallel. Cosensus vs Execution
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Use feature flag
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-05-01 14:37:26 +00:00
james-prysm
83416f31a5
Unregister validator - fix behind feature flag ( #12316 )
...
* adding changes to blocks
* trying out expiration
* adding implementation, have WIP for tests
* adding unit tests for cache
* fixing bazel complaints
* fix linting
* adding safe check for unint type
* changing approach to safety check
* adding cache to bazel to test fixing build
* reverting bazel change and adding flag to usage
* implementing interface on mock to fix build error
* fixing unit tests
* fixing unit test
* fixing unit tests
* fixing linting
* fixing more unit tests
* fixing produce blinded block tests
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* resolving review comments
* fixing cache
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* fixing time logic
* adding context to trace
* fix bazel lint
* fixing context dependency
* fix linting
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing review comments
* fixing deepsource issues
* improving the default settings
* fixing bazel
* removing irrelevant unit test
* updating name
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-28 21:27:47 +00:00
Sammy Rosso
d382abe198
InsertFinalizedDeposits: return an error ( #12342 )
...
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-28 20:59:09 +00:00
terencechain
8481a3e6ec
Beacon-api: save atts to pool ( #12345 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 22:47:03 +02:00
james-prysm
f9f40975c5
Validator registration filter non active keys before submission ( #12322 )
...
* adding filter for validator registration
* adding new filter logic based on validator status
* make sure to check status each time
* WIP unit testing
* fixing unit tests
* adding ux improvement
* addressing nishant's comments
* cleanup for already slice error
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-27 13:10:18 -05:00
Potuz
b56f3e70df
log correctly the head changed when it actually changes ( #12324 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 17:13:58 +00:00
terencechain
ce0616b88e
Add verify slot tolerance test ( #12344 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 15:53:28 +00:00
Preston Van Loon
7dffee1c66
Update to go1.20 ( #12333 )
...
* Update to go1.20
* Update gohashtree
* fix build tags for bytesutil and add nilness exclusion
* more broad nilness exclusion
* Reset nogo config
* Update golang.org/x/tools
* update rules_go to 0.39.0
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 15:41:57 +00:00
kasey
cec631d760
Fixing flaky validator tests ( #12339 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 13:05:13 +00:00
kasey
ba9a744552
Keymanager mock cleanup ( #12341 )
...
* add callback for deterministic key fetch ordering
* provide a nicer way to control key ordering
* more concise test setup = less confusion
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-04-27 05:25:17 +00:00
kasey
f962d13407
Fix committee test race ( #12338 )
...
* fix races in committee cache tests
* lint
* gratuitous defer ClearCache if ClearCache
* log warning to avoid failed block processing
* gaz
* add Clear to cache stubs
* fix Clear mistakes
* last fake cache fix
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-04-27 00:50:04 +00:00
Radosław Kapka
34b6c8f333
Use mock v1alpha1 server in Beacon API's validator functions ( #12319 )
2023-04-26 18:59:29 +02:00
terencechain
73fea51398
Use next slot cache for payload attribute ( #12286 )
2023-04-25 16:13:24 -07:00
terencechain
fa7a2bd445
Move update next slot cache earlier ( #12321 )
...
* Move next slot cache earlier
* update next slot cache if it's head
2023-04-25 21:03:54 +00:00
Preston Van Loon
3894d60282
blockchain: add more spans to analyze block production timing ( #12332 )
...
* blockchain: add more spans to analyze block production timing
* There is a reason that we do not use the incoming context for forkchoice updates
2023-04-25 15:45:08 +00:00
Radosław Kapka
328e6fb074
Move some errors to separate consensus-types package ( #12329 )
...
* move `ErrNilObjectWrapped` to separate package
* build fix
* move not supported
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-25 15:07:24 +00:00
Radosław Kapka
9e3598334d
Avoid double state copy in latestAncestor ( #12326 )
...
* Avoid double state copy in `latestAncestor`
* remove trailing newline
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-25 14:12:56 +00:00
Radosław Kapka
ebccdfadb5
Remove unused argument from field index ( #12327 )
...
* Remove unused argument from field index
* bzl
2023-04-25 13:03:55 +00:00
Cyyber Ttechno
efdda168c5
Corrected err return for GenesisState while calling db.View ( #12325 )
2023-04-25 02:57:07 +00:00
terencechain
08d6eccfb3
Change native execution value to Gwei Uint64 ( #12291 )
...
* Default value to uint64
* Fix spectest
* Fix tests
* Fix tests
* Fix tests
* Fix test
* Fix test
* Fix build
* Potuz feedback
* Add test
* Fix test
* Fix test
2023-04-22 00:44:28 +00:00
Nishant Das
97a32e1b72
Fix Status Checks For Double Deposits ( #12318 )
...
* fix status
* fix test
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-21 12:08:55 +00:00
Radosław Kapka
b7ef762701
Return errors from ProduceBlindedBlock ( #12309 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-21 11:41:43 +02:00
dependabot[bot]
c9e333723e
Bump k8s.io/client-go from 0.18.3 to 0.20.0 ( #11972 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.18.3 to 0.20.0.
- [Release notes](https://github.com/kubernetes/client-go/releases )
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.18.3...v0.20.0 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-20 17:41:04 +00:00
Potuz
300a827027
Use same signature for unrealized justified hash and justified hash ( #12314 )
...
* Use same signature for unrealized justified hash and justified hash
* fix build
2023-04-20 15:59:12 +00:00
Nishant Das
6374cc0118
Add Exceptions For Transaction Fuzzer ( #12313 )
...
* fix it
* comment
2023-04-20 14:42:51 +00:00
Preston Van Loon
9f886da1de
db: Deduplicate saveCheckpoint functionality ( #12304 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-20 12:13:21 +00:00
james-prysm
7e7a2a2959
improve the blinded block error ( #12310 )
2023-04-19 18:27:00 -05:00
james-prysm
b0bf402469
version check to blinded block ( #12305 )
2023-04-19 10:55:36 -05:00
james-prysm
a090751c8c
removing phrasing on not being able to withdraw ( #12306 )
2023-04-19 11:46:27 +08:00
Justin Traglia
4c916403e9
Enable dupword linter & fix findings ( #12271 )
...
* Enable dupword linter & fix findings
* Correct an incorrect fix
* Add nolint comment
* Add another nolint comment
* Revert unintended change to bazel version
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-18 22:01:27 +00:00
Justin Traglia
b6181f8d1a
Enable nilerr linter & fix findings ( #12270 )
...
* Enable nilerr linter & fix findings
* Deal with other findings
* Fix another finding that I missed somehow
* Fix another another issue
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update tests to expect error
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-18 20:53:16 +00:00
Preston Van Loon
00001c8628
builder: add more tracing data for builder code paths ( #12302 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-18 19:20:42 +00:00
Justin Traglia
8428a79971
Enable whitespace linter & fix findings ( #12273 )
...
* Enable whitespace linter & fix findings
* Fix new finding
* fix new violation
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-04-18 18:58:27 +00:00
terencechain
03f63f294b
Update spec test to v1.3 ( #12300 )
2023-04-18 16:10:55 +00:00
Preston Van Loon
f4681fde19
windows: Fix build after PR 12293 ( #12296 )
2023-04-17 20:43:40 +00:00
Preston Van Loon
0c7292b85b
prysmctl: Add support for writing signed validator exits to disk ( #12262 )
...
* prysmctl: Add support for writing signed validator exits to disk
* Add dir suffix
* Add test to ensure no broadcast call was made
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-17 18:01:13 +00:00
james-prysm
10b438e2c8
Keymanager fixes for bad file writes ( #12284 )
...
* WIP changes for keymanager
* WIP fix
* WIP needs unit tests
* fixing order
* adding unit test
* fixing linter
* updating unit tests and creating more reusable functions
* making accountStore copy method part of struct
* Update validator/keymanager/local/delete_test.go
* Update validator/keymanager/local/delete.go
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing suggestion of not reinitializing from reading the file but instead update the information based on memory on hand
* Update validator/accounts/wallet_create.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* adding changes based on suggestions
* making logs more consistent
* fixing linting
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-17 12:08:27 -05:00
Nishant Das
e2386cfb11
Fix Attester Slashing Validation In Gossip ( #12295 )
...
* fix slashing checks
* fix to make it more performant
* gaz
* fix up
* potuz's comment
* potuz's comment
* fix cache
* change index in test for better case
* gaz
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2023-04-17 15:35:38 +00:00
Radosław Kapka
898cb0b512
Deflake TestWaitForActivation_AccountsChanged ( #12282 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-04-17 15:04:42 +00:00
Sammy Rosso
6944d22ce3
Add support for engine_exchangeCapabilities ( #12224 )
...
* Add call to engine_exchangeCapabilities
* Fix unused import
* Cleanup + tests
* Warning only when needed
* Add Radek' feedback
2023-04-17 12:55:22 +00:00
Nishant Das
1eb00866ea
Add License For Vendored Dependency ( #12294 )
2023-04-17 08:16:47 +00:00
Nishant Das
4862d57b13
Fix Broken Dependency ( #12293 )
...
* vendor in library
* comment
* lint
* lint
2023-04-17 12:22:34 +08:00
Potuz
191b0c4652
Correctly use Gwei to compare builder bid value ( #12290 )
...
* Correctly use Gwei to compare builder bid value
* Minimal 1gwei for TestProduceBlindedBlock
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-04-16 16:47:51 +08:00
kasey
c09977d8a8
support modifying genesis.json for capella ( #12283 )
...
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-04-14 20:32:40 +00:00
Nishant Das
52d72c989e
Check that Builder Is Configured ( #12279 )
...
* add configured check
* tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-14 10:21:46 +00:00
Justin Traglia
9f7711e74a
Enable misspell linter & fix findings ( #12272 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-14 10:03:11 +00:00
Nishant Das
f376427add
fix panic ( #12277 )
2023-04-13 22:42:57 -07:00
kasey
ff1b03ab13
prysmctl using the same genesis func as e2e ( #12268 )
...
* prysmctl using the same genesis func as e2e
* add whitespace to genesis.json for readability
* fix typo in fork name
* don't require validator count if deposits given
* add gosec exception
* the other nosec :(
* appease deepsource
* fix comments on renamed public value/func
---------
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-04-13 17:19:06 +00:00
Potuz
5fdd4e9148
Add prepare-all-payloads flag ( #12260 )
...
* Add prepare-all-payloads flag
* add unit tests
* do not use the nsc
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-13 14:47:13 +00:00
Patrice Vignola
80e26143eb
Add REST API endpoint for beacon chain client's GetChainHead ( #12245 )
...
* Add REST API endpoint for beacon chain client's GetChainHead
* Remove unused parameters
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-13 11:42:59 +00:00
Nishant Das
75338dd83d
Fix User Agent In Builder Client ( #12264 )
2023-04-13 03:12:51 +00:00
terencechain
99eebe9bac
Fix capella unblind block with bls field ( #12263 )
2023-04-12 18:47:34 -07:00
keithchew
6b1efff4e8
allow setting GOMAXPROCS from environment variable ( #12256 )
...
* allow setting GOMAXPROCS from environment variable
* remove unused import
2023-04-10 23:28:48 -04:00
Preston Van Loon
763e9e3361
Update go to version 1.19.8 ( #12238 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-10 19:03:24 +00:00
Nishant Das
37182168e3
Fix Deadlock in StreamChainHead ( #12250 )
...
* fix it possibly
* buffer it more
* fix test
2023-04-07 15:41:31 -05:00
terencechain
0325741318
Add orphaned operations to the appropriate pools in saveOrphanedOps() and mark included slashings in prunePostBlockOperationPools(). ( #12249 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-06 16:26:01 -05:00
Preston Van Loon
150e8aa14d
Remove unused beacon-chain/server binary ( #12241 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-06 20:56:55 +00:00
kasey
f4307a902c
build tag to exclude mainnet genesis from prysmctl ( #12244 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-06 19:45:35 +00:00
james-prysm
d257ef1742
Builder: fix nil panic edgecase ( #12236 )
...
* adding fix for buildervalue nil
* fixing linting
* changing based on review comment
* editing based on suggestions
* fixing unit test
* fixing linting
* fall back to local
* fix linting
* updating based on slack feedback
2023-04-06 14:19:51 -05:00
Nishant Das
aad7aa79d4
Fix Next State Mismatch ( #12247 )
...
* fix mismatch
* add regression test
2023-04-06 17:52:15 +08:00
terencechain
2eb2f87913
Default to local payload should set block to not blind ( #12243 )
2023-04-05 23:29:41 +00:00
Patrice Vignola
9214364c5e
Add REST API endpoint for beacon chain client's ListValidators ( #12228 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-05 13:00:49 +02:00
Potuz
fb65421678
refactor next slot cache ( #12233 )
...
* refactor next slot cache
* fix test
* rename function
* fix spectests
* remove TODO comments
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-04-04 16:04:00 +00:00
terencechain
35e3eeddf9
Add flag to boost local block value ( #12227 )
...
* Add builder bid fraction to compare with local block value and use builder bid if (bid * fraction) > local block value
* Prioritize local block construction over relay/builder block construction using a boost value for local block construction
* Refactor builder and local block value calculation to use percentage comparison
* Add a test for local with boost
* Use uint64
* Fix log
2023-04-04 14:58:56 +00:00
Sammy Rosso
2618a114e5
Testnet: override Eth1Data for genesisState from input JSON ( #12231 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-03 15:13:51 +00:00
Radosław Kapka
aac47640b4
Fix broadcast of slashings ( #12230 )
...
* Fix broadcast of slashings
* tests
2023-04-03 14:57:59 +00:00
Nishant Das
17cfc60bdd
Enable Static Peer ID ( #12220 )
...
* static peer id
* kasey's review
2023-04-01 00:00:11 +00:00
Radosław Kapka
8d001d49d4
Unskip block tests ( #12222 )
2023-03-31 15:45:42 +00:00
Nishant Das
5ecebbe15a
Recover State Summary Correctly ( #12214 )
...
* fix it
* add zerohash checks
* preston's review
2023-03-30 09:09:36 -05:00
james-prysm
5ae7e17ada
E2E: improve beacon api logging ( #12211 )
2023-03-30 02:51:04 +00:00
terencechain
17488028a6
Use justified hash as safe block hash when passing attribute ( #12196 )
...
* With attribute, use justified hash as safe block hash
* Use UnrealizedJustifiedPayloadBlockHash
* Cleanups
* Add test to forkchoice
* Block proposal
* Fix mock
* Fix test
* Fix rest of the tests
* Potuz feedback
* Fix test
* Use unrealized justified hash for regular fcu
2023-03-29 23:38:36 +00:00
james-prysm
163f65f8a3
E2E: updating web3signer dependency ( #12207 )
...
* updating dependency
* missed updating a number
2023-03-29 20:32:34 +00:00
Potuz
6ebe5ea8b2
Faster and cached square root ( #12191 )
...
* Faster and cached square root
* deal with 0
* Rename function
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-29 16:23:16 -03:00
Radosław Kapka
5ea0417df2
Improve voluntary exit confirmation prompt ( #12205 )
2023-03-29 14:17:21 +00:00
Patrice Vignola
61fed336e1
Add REST API endpoint for node client's GetSyncStatus ( #12189 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-03-29 13:38:31 +00:00
Nishant Das
fed6a351cc
Update Dependencies ( #12204 )
...
* update
* update
2023-03-29 13:04:47 +00:00
Radosław Kapka
98949d8075
Block rewards API endpoint ( #12020 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-28 18:44:41 +02:00
Nishant Das
5cbbd26df4
Fallback in Update Head On Error ( #12199 )
...
* return if head call fails
* potuz's feedback
* potuz's feedback
2023-03-28 23:06:44 +08:00
Patrice Vignola
83ccb15e66
Add REST API endpoint for node client's GetGenesis ( #12168 )
...
* Add REST API endpoint for node client's GetGenesis
* Remove unused parameter
* Fix test name
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-28 11:36:41 +00:00
james-prysm
f5bfb8e9eb
revert protobuf depreciation - ValidatorPerformanceResponse ( #12192 )
...
* accidently deprecated protobuf message
* accidently checked in blob changes
2023-03-27 13:39:21 -05:00
terencechain
b00f7f4592
Update the badges to latest version ( #12145 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-03-24 18:02:53 +00:00
Nishant Das
191e603e28
Fix Bad Merge in V4 ( #12183 )
2023-03-24 14:05:31 +00:00
Nishant Das
76c729f9fa
Add Pubsub Metrics Tracer ( #12178 )
...
* add tracer
* gaz
* preston's review
* preston's review
2023-03-24 12:36:10 +08:00
Potuz
797cc360c7
Isolate forkchoice to blockchain package ( #12174 )
...
* Isolate Forkchoice to blockchain package
* Nishant's feedback
* Terence's feedback
* Nishant saving the day
2023-03-22 09:12:54 +08:00
terencechain
79da486508
Add locks to forkchoice spec tests ( #12165 )
...
* Add locks to forkchoice spec testS
* Fix
* Rm forkchoice store getter
* Rm useless lock
2023-03-21 18:39:40 +00:00
terencechain
5bb1491d8f
Remove blob protos ( #12173 )
...
* Remove old protobufs
* Rm generated files
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-21 18:08:05 +00:00
Patrice Vignola
c0ee781638
Remove unused validator endpoints from validator REST API ( #12167 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-21 16:52:42 +00:00
shana
4d5827c527
Fix payload attributes json ( #12169 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-21 13:36:18 +00:00
Nishant Das
88f03967dd
Apply Goimports to Generated Files ( #12170 )
...
* gofmt
* build
2023-03-21 11:12:23 +00:00
Potuz
fb65287ba2
Remove unused methods from interface ( #12164 )
2023-03-20 15:36:33 -05:00
Radosław Kapka
0cb46eb29a
Do not HTR the state when checking for optimistic mode ( #12143 )
...
* initial impl
* review feedback
* fix tests
* review feedback
* some improvements
* tests and small improvements
* gzl
* one more review
* fix test
* fix other test
* get the roots instead of hashing them
* fix comment
* fix justified case
* fix all tests
* misc
* gzl
* fix broken tests
* use isOptimisticForRoot once we have the blockroot
* Fix is_not_finalized_when_head_is_optimistic but reviewing the logic first
* Fix is_not_finalized_when_head_is_optimistic
* better root tests
* move optimistic check before parsing root
* check for last validated checkpoint
* add right check for finalized
* fix finalized tests
* removed impossible condition
* fix TestGetSyncCommitteeDuties
* Use Ancestor from chaininfo
* fix test
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-03-20 17:04:40 -03:00
Potuz
abe9e7fa7e
mainnet capella epoch ( #12144 )
...
* mainnet capella epoch
* Update spec test to v1.3.0-rc5
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-20 19:18:58 +00:00
Potuz
3536669a70
lock forkchoice on calls to Ancestor ( #12162 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-20 15:51:42 -03:00
Patrice Vignola
7c49277e83
Add REST API stubs for beacon chain, node and slasher clients ( #12094 )
...
* WIP
* WIP
* Remove duplicate mock
* WIP
* Revert "WIP"
This reverts commit a8010057fe .
* Fix build break
* Remove unused variable
* Fix build break
* Rename validator_mock to validatormock
* Fix failing test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-20 16:32:32 +00:00
terencechain
6480d5a0fd
Send missing slot event at the correct place ( #12160 )
2023-03-19 16:25:58 -07:00
Potuz
d1c45b44be
Call FCU at 4 seconds if we haven't updated head ( #12159 )
2023-03-19 00:21:52 +00:00
Nishant Das
2a1c626707
Add Flags To Dev Mode ( #12152 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-17 23:01:23 +00:00
james-prysm
67595d576c
fixing SSE payloads ( #12154 )
...
* fixing typo on casing
* WIP get missed slot
* missed in commit
* reverting changes onfeedback
* reverting bazel
* using the current or head slots for events
* fixing linting
* use emitSlot
* fixing time and preRando change
* updating based on feedback
* fixing linting
* clarifying variable
* removing useless if statement
* fixing function to use the current slot+1
* updating based on feedback
* fixing unit tests
* missed dependency injection
* fixing linting
2023-03-17 14:25:36 -05:00
terencechain
d17996f8b0
Update to V4 🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
terencechain
7d82a0510f
Fix typos from bls pool metric PR ( #12155 )
2023-03-17 16:00:07 +00:00
Nishant Das
3072b17329
Fully Deprecate Batch Aggregation Flag ( #12151 )
...
* fix evaluator
* fmt
* config
2023-03-17 12:09:28 +00:00
Nishant Das
e58b66f76d
Fully Deprecate Vectorized HTR Flag ( #12148 )
...
* cleanup
* gaz
* fix tests
* remove unused hasher
* gaz
* fix last one
* fix tests
* fmt
2023-03-17 11:41:02 +00:00
Nishant Das
a937d78711
Remove Disable Flag For Doubly Linked Tree ( #12141 )
...
* deprecate
* remove this as the feature never worked
* fix
2023-03-17 11:08:05 +00:00
Nishant Das
5243ca7d64
Deprecate Reorg Flag Correctly ( #12147 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-17 10:26:58 +00:00
Nishant Das
04b0a84de1
Disable E2E Run For Slasher ( #12150 )
...
* fix evaluator
* fix tests
2023-03-17 10:08:56 +00:00
Potuz
5beb5e8912
Invert reorg of late blocks flag ( #12146 )
...
* Invert reorg of late blocks flag
* add flag to beacon node
2023-03-16 22:44:24 -03:00
Potuz
99997fa2e3
forkchoice changes ( #12126 )
...
* forkchoice changes
* gazelle
* remove best justified from forkchoice dump
* keep protobufs and update comment
* remove phase0 tests
* bumb spectests version
* missing sha
* Fix sha256 for spec
* rpc tests
* Mark field 3 as reserved so it will never be used it again
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-03-16 14:27:30 -03:00
Nishant Das
5ea6e32d6c
Remove Deprecated HTTP Provider Flag ( #12140 )
...
* remove deprecated http provider flag
* test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-16 12:15:02 +00:00
Nishant Das
ab407809f0
Remove Deprecated Flags ( #12139 )
2023-03-16 11:54:02 +00:00
Nishant Das
4d28d69fd9
Make Peer Scorer Permanent Default ( #12138 )
...
* add changes
* gaz
* fix
2023-03-16 18:52:49 +08:00
Patrice Vignola
3802761088
Fix the TestEndToEnd_Slasher_MinimalConfig test ( #12116 )
...
* WIP
* WIP
* WIP
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-15 19:15:46 +00:00
terencechain
2669c93375
Add bls pool metric ( #12133 )
...
* Add metric gauge for bls to exec pool count
* Fix
* Fix
* Gazelle
2023-03-15 14:12:21 +00:00
Patrice Vignola
ce32453c7b
Remove unused beacon chain altair mocks ( #12095 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-15 13:12:34 +00:00
Nishant Das
ee8cb8bd6f
Update Pubsub Library ( #12132 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-15 12:51:42 +00:00
Sammy Rosso
be4ef54482
Prysmctl add eth1Data to genesis state ( #12125 )
...
* Add Eth1Data to genesis state
* James' review
* Nishant' review
2023-03-15 20:31:57 +08:00
james-prysm
0c025ab719
prysmctl: fix withdrawals fork checking logic ( #12130 )
...
* coded based on suggestions from slack
* fixing linting
* removing unused flags and space
* small improvement to log
2023-03-15 12:32:11 +08:00
james-prysm
b180a7de81
Prysm V4: SSE api adding payload_attributes ( #12102 )
2023-03-14 19:04:31 -07:00
terencechain
5c234c8c68
Mark GetChainHead deprecated ( #12128 )
...
* Mark GetChainHead deprecated
* Add deprecation notice to protobuf definition
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon_chain.pb.go
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-14 21:06:34 +00:00
james-prysm
f92d492e33
use headblock for prunePostBlockOperationPools, remove duplicate markInclusionBLStoExecutionChange calls ( #12085 )
...
* removing duplicate function
* moved markInclusion for bls to use headblock instead of processed block
* updating based on internal feedback
* addressing some comments
* addressing feedback from slack
* fixing conflict
* making changes based on suggestions on slack
* reverting a change
* making chases based on potuz's comments
* removing one additional block copy
* clarifying comments
2023-03-14 15:23:11 -05:00
int88
a926028e45
fix error message in TestStateSummary_CanDelete ( #12123 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-03-14 18:17:32 +00:00
Sammy Rosso
49f0c44dfe
Add getpayloadbodies ( #11973 )
...
* el payload bodies code
* Add getPayloadBodies
* Add error 38004
* Add unmarshal
* Add ExecutionPayloadBodyV1 to proto
* Add EnableCapellaEngineMethods flag
* Small fixes
* Add proto files
* gazelle
* passing tests
* compile
* Add remaining tests
* fix tests
* Cleanup
* Fix gazelle
* Remove comments
* Rename the flag + add missing description
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-14 15:52:16 +00:00
Sammy Rosso
8aec170f9b
Eip4881: Tests ( #11754 )
2023-03-14 08:29:48 -07:00
Nishant Das
cc764c346b
Run Altair Fork Transition ( #12124 )
2023-03-14 13:59:26 +00:00
james-prysm
7d5d30ac94
validator startup deadline bug ( #12049 )
...
* trying fix for validator startup deadline
* updating deadline duration to be set by params
* adding a runner test
* trying nishant's suggestion
* editing based on review feedback
* reverting a change
* fixing epoch deadline
* reverting aliasing
2023-03-14 12:52:56 +08:00
Preston Van Loon
f6eb42b761
Update bazel to 6.1.0 ( #12121 )
...
* Update references for cc toolchain after removal of @bazel_tools//cpp/cc_toolchain_config.bzl in 1727361563
* Update to bazel 6.1.0
* Update cross-toolchain configs
2023-03-13 23:17:26 +00:00
Preston Van Loon
39fe29d8f4
Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar ( #12120 )
...
* Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar
* gazelle on workspace
2023-03-13 20:17:12 +00:00
Preston Van Loon
81fbfceea8
Update rules_go to v0.38.1 and go_version to 1.19.7 ( #12055 )
...
* Update rules_go to v0.38.1
* Bump go version
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-13 19:22:37 +00:00
Preston Van Loon
a0ff5ff792
Only build non-test targets in hack/update-go-pbs.sh ( #12101 )
...
* Only build non-test targets in hack/update-go-pbs.sh
* run ./hack/update-go-pbs.sh
* Add ability to pass config to bazel
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 17:49:34 +00:00
Potuz
4528ea8d0d
Gate GetProposerHead behind the feature flag ( #12110 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 17:20:01 +00:00
terencechain
00b9e484e5
Cleanups from eip4844 branch ( #12109 )
...
* Minor cleanups from eip4844 branch
* Add back handler
* Fix gazelle
* More fixes
* More fixes
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 16:46:27 +00:00
Preston Van Loon
5eaa152589
Bazel: fix remote cache uploads ( #12108 )
2023-03-10 00:24:37 +00:00
Potuz
6d3ff65635
increase attempted reorgs at the right spot ( #12106 )
2023-03-09 15:06:46 +00:00
Marius van der Wijden
83a294c1a5
go.mod: set a non-zero version for tx-fuzz ( #12098 )
...
* go.mod: set a non-zero version for tx-fuzz
* go.mod: use upstream tx-fuzz instead of fork
* run gazelle
* fix tests
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-03-09 09:23:45 +00:00
james-prysm
753e285fb6
Prysm V4: Remove Prysm Remote Signer ( #11895 )
...
* removing all prysm remote signer code
* fixing unit tests
* resolving more build issues
* resolving deepsource complaint
* fixing lint
* trying to fix bazel library
* trying testonly true
* removing assert and require from non test settings
* fixing bazel and tests
* removing more unused files related to remote signer
* fixing linting
* reverting some changes
* reverting a change that broke some code
* removing typo
* fixing unit test
* fixing mnemonic information
2023-03-08 21:21:12 -06:00
Potuz
525d3b05a6
Late block reorgs metrics and logs ( #12097 )
...
* Late block reorgs metrics and logs
* tests
* mixed thresholds
* use threshold variables
* use infof
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-09 01:51:50 +00:00
Nishant Das
4f38ba38b7
Update Libp2p ( #12096 )
...
* update deps
* add preston's fix
* fix build
* gaz
* test fixes
2023-03-08 23:52:51 +08:00
Potuz
eb0b5a6146
Do not call repeated times FCU ( #12091 )
...
* Do not call repeated times FCU
* cleanup
* only log if prune attestations fail
2023-03-08 09:36:46 -03:00
Preston Van Loon
4356cbc352
Update cross compile toolchains ( #12069 )
...
* Regenerate cross-toolchain configs
* Remove some extra whitespaces
* Run gazelle and add that note to the README
* Format numbered lists better in markdown
* gcloud docker command is deprecated, just use docker
* Add comment about docker credentials for gcr.io
* Update dockerfile, some remote executor config work
* gazelle
* Remove commented lines
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-07 20:09:46 +00:00
kasey
0893821e35
Disable conditional go 1.20 code until module is also at 1.20 ( #12084 )
...
* disable conditional go 1.20 code until we upgrade
* bazel decided this was unreachable and removed it!
---------
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-03-07 16:25:35 +00:00
Bret
c3346fefa7
Fix log messages ( #12086 )
...
These two log messages were appending a `d` to the hash. When compared to the other hash, they matched up until the `d`
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-03-07 07:16:39 +00:00
Nishant Das
d639a26bbe
Fix E2E Flakes ( #12074 )
...
* fix flakes
* make it longer
* make it less to prevent triggering of other issues
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-07 04:15:51 +00:00
Potuz
bb95d951cc
Use Epoch boundary cache to retrieve balances ( #12083 )
...
* Use Epoch boundary cache to retrieve balances
* save boundary states before inserting to forkchoice
* move up last block save
* remove boundary checks on balances
* fix ordering
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-06 21:42:47 +00:00
terencechain
78d49fda13
Minor cleanup to forkchoice pkg ( #12078 )
...
* Minor cleanup to forkchoice pkg
* Rm implementation
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-06 17:01:36 +00:00
Nishant Das
3aaba7c065
Remove Feature Flag From Prater ( #12082 )
2023-03-06 09:56:53 +00:00
terencechain
b8a1bcdfe3
Circuit breaker: lower max builder epoch missed slots to 5 ( #12076 )
...
* Circuit breaker: lower max builder epoch missed slots to 5
* Change equality to >=
* Fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-05 19:10:41 +00:00
Potuz
93514de00f
Proposer head v5 ( #12075 )
...
* Use ShouldOverrideFCU in regular sync
* fix build
* fix tests
* add feature flag gate in updatehead
* fix rpc tests
* fix grcp tests
* deepsource
* add locks and reuse isNewProposer
* flip flag
* Fix ticker for late blocks
* implement get_proposer_head in GetBeaconBlock
* fix unit tests
2023-03-04 20:19:23 -03:00
terencechain
86a883aa19
Add capella fork epoch for Goerli ( #12073 )
...
* Add capella fork epoch for Goerli
* update pr
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
2023-03-04 09:43:20 +00:00
Preston Van Loon
c000e8fde5
Raise the max grpc message size to a very large value by default ( #12072 )
...
* Raise the max grpc message size to a very large value by default
* unused import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 19:04:58 +00:00
dependabot[bot]
75e5887f07
Bump golang.org/x/net from 0.6.0 to 0.7.0 ( #12063 )
...
* Bump golang.org/x/net from 0.6.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
* gazelle
* go mod tidy
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 17:37:16 +00:00
Radosław Kapka
4ca3c5b058
Add slot to proposal error logs ( #12071 )
...
* Add slot to proposal error logs
* remove one field
2023-03-02 16:33:39 +00:00
Radosław Kapka
25d06d41be
Fix type name in field_trie_helpers error message ( #12070 )
...
(cherry picked from commit bc9330c329 )
2023-03-02 14:33:22 +00:00
Potuz
0a87210514
Forkchoice external locks v2 ( #12036 )
...
* write locks
* fix forkchoice tests
* blockchain locks
* lock on IsOptimistic
* use forkchoice instead of chaininfo within savehead
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* don't write lock wrappers
* fix validateBeaconBlock
* Terence's review and more missing locks
* add lock for InForkChoice
* lock head on fillMissingBlockPayload
* fix lock on IsOptimisticForRoot
* fix lock in fillMissingBlockPayloadId
* extra comments
* lock proposerBoost on spectests
* nishant's review
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-02 09:10:52 -03:00
Nishant Das
196798eacc
Update Deps For Capella ( #12067 )
...
* update
* gzl
* Using zstd workaround from @tals, per github.com/bazelbuild/rules_go/issues/3411
* gaz
* hacky patch
---------
Co-authored-by: rkapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 03:31:41 +00:00
Radosław Kapka
17fe935343
Deprecate --interop-genesis-state ( #12008 )
...
* Deprecaste `--interop-genesis-state`
* better pattern
* fix errors
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-01 19:39:17 +00:00
Radosław Kapka
ac4483417d
Redesign voluntary exits pool ( #11898 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-01 17:44:00 +01:00
Potuz
0d3fb0a32b
lock head on fillMissingBlockPayload ( #12068 )
2023-03-01 13:09:10 +00:00
Nishant Das
3d337b07e1
Remove Ropsten Testnet Config ( #12058 )
...
* remove support for ropsten testnet
* add deprecated flag for ropsten
---------
Co-authored-by: P <1674920+peterbitfly@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-03-01 13:26:32 +08:00
Raul Jordan
11b90e1f63
Store Blinded Beacon Blocks by Default for New Prysm Databases ( #11591 )
...
* fresh database checks
* gaz
* fix up tests
* fix test
* build
* bellatrix pass tests
* fix flags
* gaz
* fix up rpc test
* gaz
* building
* refactor, remove boolean blindness
* kv blocks
* fix up ensure coverage
* e2e default
* add missing case
* nishant feedback:
* log
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-01 00:07:23 +00:00
Preston Van Loon
3c73bac798
Update protoc-gen-go-cast to suppress tool output ( #12062 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-28 23:04:22 +00:00
Preston Van Loon
91fee5db17
Update distroless base images ( #12061 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-28 22:50:37 +00:00
Preston Van Loon
155b0c161e
Bazel: cleanup .bazelrc file ( #12059 )
...
* Reorganize bazelrc and intro new flags
* move cross compilation toolchain into its own bazelrc
* Restore build_tests_only
2023-02-28 21:36:43 +00:00
Nishant Das
a7010d817d
Fix Scenario Test Failures ( #12056 )
...
* fix scenario failures
* fix up
* continue fixing
2023-02-28 23:21:15 +08:00
james-prysm
c0dd233a1c
E2E: beacon api post attester duties ( #11899 )
...
* adding new post request util and attester duties test
* adding in status checks
* fixing error
* increasing size of request
* fixing gofmt
2023-02-28 13:35:02 +08:00
Preston Van Loon
c391fad258
Update rules docker to v0.25.0 ( #12054 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-02-27 23:46:10 +00:00
Radosław Kapka
e92b546a36
Return proposer reward from ProcessSyncAggregate ( #12047 )
2023-02-27 19:04:23 +01:00
Patrice Vignola
765345ac3a
Remove the gRPC fallback client from the validator REST API ( #12051 )
2023-02-27 12:46:34 +00:00
Potuz
ec13d52f03
Remove VerifyFinalizedBlkDescendant ( #12046 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* fix validateBeaconBlock
2023-02-25 13:39:13 -03:00
Manu NALEPA
08ebc99bc3
Add (lack of) REST implementation for GetFeeRecipientByPubKey ( #11991 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-02-24 21:43:52 +00:00
james-prysm
8918e8c274
prysmctl: check capella fork for blstoexecutionchange ( #12039 )
...
* adding in a check for current fork to disable submission prior
* fixing linting
* fixing error return
* updating error contains in test
* fixing unit test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-24 16:28:32 +00:00
Patrice Vignola
0e4185b40c
Remove the StreamDuties endpoint ( #12044 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-24 15:56:31 +00:00
Nishant Das
383edb3553
Fix Validator Participation Evaluator ( #12045 )
...
* fix bug
* remove proto changes
2023-02-24 10:39:06 +00:00
james-prysm
40589905bc
Prysm V4: Web3signer changes for capella ( #12001 )
...
* adding in changes for capella
* fixing metrics
* updating the web3signer version
2023-02-24 06:21:39 +00:00
Potuz
ae76240f83
Use forkchoice HasNode to check if a block is consistent with finality ( #12040 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
2023-02-23 21:21:34 +00:00
Radosław Kapka
096cf7b8c1
Test invalid change inclusion in blstoexec pool ( #12037 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 17:18:37 +00:00
james-prysm
7c3027801b
Prysm v4 - mark old endpoints for deprecation ( #11997 )
...
* updating some protos
* updating proto endpoints
* updating generated code
* fixing linting
* updating protos
* updating based on feedback. also removing unused storage protos
* adding in deprecation notice on the server functions
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/debug.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/v1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing feedback
* rewording comment
* updating comments
---------
Co-authored-by: Preston Van Loon <preston@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>
2023-02-23 16:32:03 +00:00
Raul Jordan
8f6d5ff075
Web-ui-version-v2.0.3-commit ( #12038 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2023-02-23 10:11:42 -06:00
james-prysm
c379c9ea47
Prysm V4 - Deprecate web UI endpoints ( #12025 )
...
* wip adding deprecation to web api endpoints
* wip adding more deprecation notices
* adding in a few more deprecation markers
* updating order of comments
2023-02-23 15:24:06 +00:00
Radosław Kapka
75e8f85ba5
Handle EL offline/unavailable in getSyncingStatus ( #12031 )
...
* Handle EL offline/unavailable in `getSyncingStatus`
* fix type
* better name
* test fix
2023-02-23 12:09:56 +00:00
Nishant Das
8d82ca08ab
Allow Testing Of Withdrawals On E2E Mainnet ( #12027 )
2023-02-23 12:04:53 +01:00
Radosław Kapka
29f645f0cc
Add Eth-Consensus-Version header to SubmitBlindedBlock ( #12029 )
...
* Add `Eth-Consensus-Version` header to `SubmitBlindedBlock`
* bring back function
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:42:05 +00:00
Radosław Kapka
15016555f5
Remove SubmitBlindedBlockCapella ( #12030 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:06:52 +00:00
Potuz
98d2d5f324
implement get_proposer_head ( #12022 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 16:40:01 +00:00
Nishant Das
a4579398cb
Add Clarifying Comments for Withdrawal Functions ( #12028 )
2023-02-22 11:00:36 +00:00
Pedro Gomes
094ff877f6
Fix NPE, ensure the listener is available ( #11946 )
...
* Fix NPE, ensure the listener is available
* Added test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-22 06:53:09 +00:00
terencechain
9ccfe17227
Check unblinded payload root before proposal ( #12026 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 02:28:59 +00:00
Manuel Caspari
bf25b34ac1
Fix error handling when using BatchCall ( #11960 )
...
* fix error handling when using BatchCall
* fix typo
* simplify code
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-22 01:42:43 +00:00
terencechain
da69af9b6e
Fix first bellatrix block when using mev-boost ( #12019 )
...
* Update head before block proposal
* Fix first bellatrix block when using mev-boost
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 00:42:51 +00:00
terencechain
3c8f5deb66
Add v1.3.0-rc.3 spec tests ( #12024 )
...
* Add v1.3.0-rc.3 spec tests
* Replace 4844 with deneb
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-21 23:01:32 +00:00
Potuz
dc5cf88243
Do not check signatures when packing BLS changes ( #12021 )
...
* Do not check signatures when packing BLS changes
* gaz
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-02-21 22:18:54 +00:00
terencechain
0c52064d90
Engine API: fix blockValue endianness conversion ( #12018 )
2023-02-21 13:42:32 -08:00
Preston Van Loon
032f9b7450
Update general spectest tar.gz SHA value ( #12023 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-02-21 15:45:20 +00:00
Potuz
166f7119ec
Implement should_override_forkchoice_update ( #11981 )
...
* Implement should_override_forchoice_update
* add tests
* remove unused exported function
* go mod tidy
* fix go mod
* Fix go mod tidy
* Fix context import
* mod tidy
* fix test
* Terence's review
* fix test
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-02-18 07:37:03 -03:00
Potuz
b687d29d02
Forkchoice interface cleanup ( #12010 )
...
* remove AllTipsAreInvalid
* rename InsertOptimisticChain
* remove proposer boost interface
* remove HasParent
2023-02-17 17:36:52 +00:00
terencechain
2839f2c124
Proposer compare withdrawal roots ( #11977 )
...
* Proposer use highest value payload vs header
* Default to interface for changes
* Clean up
* Clean up
* Clean up
* Capella condition
* Proposer compare withdrawal roots
* Add unit test
* Fix test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:20:12 +00:00
Potuz
3d0ecdff3f
Fix forkchoice endpoint path ( #11986 )
...
* fix endpoint path
* update protos
* fix double import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 13:45:25 +00:00
terencechain
481d24cb1b
Update head before block proposal ( #11992 )
...
* Update head before block proposal
* Move before opt sync
* Fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 08:41:26 +00:00
Nishant Das
7d7c91c17f
Fix Failing E2E Runs ( #11993 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 08:08:54 +00:00
terencechain
a6dd561b9d
Process blind withdrawals ( #11995 )
...
* Update head before block proposal
* fix e2e runs
* Can process blind withdrwals
* Rm bad change
* Should be in process payload header
* Version check
* Compare roots
* Typo
* Remove redundant checks
* Add tests
* Rm errors
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:49:30 +08:00
Potuz
c7f0a94b19
Remove state balance cache ( #11964 )
...
* Remove state balance cache
* remove unused metrics
* add missing balance update
* add comment about locks
* update balance only when updataing the justified checkpoint on unrealization
* update checkpoint balances at launch
* fix unit tests
* fix remaining test
* review
* fix build file
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-15 14:19:46 +00:00
terencechain
f49720209e
Utilize head only state on rpc endpoints ( #11950 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-02-14 19:57:11 +00:00
Nishant Das
2d03c233b8
Add Support For Multiclient E2E in Capella ( #11989 )
...
* add support for it
* fix it up
2023-02-14 13:05:54 -06:00
Dhruv Bodani
bc643f8872
Add REST implementation for SubmitAggregateSelectionProof ( #11980 )
...
* add implementation of submit aggregate selection proof
* add tests
* handle head optimistic case
* fix imports
* address deepsource errors
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-14 11:25:21 +00:00
Potuz
fa4c9beb13
Only pack attestations and deposits if no err ( #11987 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-14 06:12:59 +00:00
Nishant Das
449d767294
Fix Bandwith Limiter Panic ( #11988 )
2023-02-14 05:44:20 +00:00
Manu NALEPA
93298dfc56
Fix #11948 and reduces call to GetFeeRecipientByPubKey only in ListFeeRecipientByPubkey in nothing is defined in VC ( #11970 )
...
* Fix #11948 and reduces call to `GetFeeRecipientByPubKey` only in `ListFeeRecipientByPubkey` in nothing is defined in VC
* Fix typo
2023-02-14 04:53:54 +00:00
Patrice Vignola
791110f795
Add REST implementation for Validator's StreamBlocksAltair ( #11974 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-13 14:22:11 +01:00
Nishant Das
63186c8b0f
Fix Batch Requesting Of Headers ( #11982 )
...
* fix bug
* remove
2023-02-11 01:38:13 +00:00
terencechain
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08:00
Sammy Rosso
81b29ea2d8
Update produce block funcs to support Capella ( #11959 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2023-02-10 17:20:38 +01:00
terencechain
71b4468be6
Add Capella fork epoch for Sepolia ( #11979 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-10 10:46:39 +00:00
Nishant Das
76ed634f73
Capella E2E ( #11951 )
...
* save changes
* fix build
* fix build
* fix signatures
* fix
* fix
* finally fix it
* mainnet
* deps
* make it 10
* back to phase0
* fix build
* gofmt
* etherbase
* rm logs
* build
* james review
* fix yaml
* Update testing/endtoend/evaluators/fork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-10 14:19:15 +08:00
Dhruv Bodani
5092738be6
add REST implementation for GetSyncSubcommitteeIndex ( #11971 )
...
* add implementation for GetSyncSubcommitteeIndex
* fix goimports
* update error parsing for validator sync committee index
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
* fix imports
---------
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-09 10:03:32 +00:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
terencechain
e1f7c52e6b
Add and use SignedBeaconBlockWriteOnly ( #11968 )
2023-02-08 08:39:14 -08:00
Potuz
0d6e8718fd
Aditya's PR 18 ( #11945 )
...
* Aditya's PR 18
This PR implements PR18. There is still a missing piece which is
consistency of head with finalized checkpoint. I will think on ways to
enforce this.
* prune finalized incompatible
* don't check finalization on viable for head
* unit tests fixes
* gazelle
* remove finalized epoch from viableForHead
* remove finalized epoch from leadsToViableHead
* use non-slashed indices
* function rename
* lint fixes
* lint fixes
* lint fixes
2023-02-05 09:40:07 -03:00
a
4f6cb3209d
Generic map ( #11953 )
...
* generic-map
* add tx bench
* fix keys
* rename functions to hopfully make static lint hapy
* reduce a line :)
* remove generic map
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-02 17:59:51 +00:00
Radosław Kapka
dc4440abe7
Small cleanup ( #11963 )
2023-02-02 17:24:09 +00:00
terencechain
23c4cc0249
Prune canonical attestations when head changes ( #11771 )
...
* Only prune canonical attestations
* Feedback from potuz
* Merge conflict
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 16:53:01 +00:00
terencechain
9e15316351
Enhance block arrival delay metrics by adding a gauge ( #11897 )
...
* Enhance block arrival delay metrics
* Remove histograms
* Revert histogram
* Rm new line
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-02 15:43:25 +00:00
Potuz
0d01debe9a
reuse code from stategen in the justified balance cache ( #11961 )
...
* add balance cache tests to testsuite
* reuse code from stategen in the justified balance cache
* remove state getters from the balance cache
* fix unit tests
* rebase on 11962
* unused error
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 14:53:08 +00:00
Potuz
1b11a9672a
add balance cache tests to testsuite ( #11962 )
2023-02-02 13:41:44 +00:00
Nishant Das
5e89dac9f0
pin it ( #11958 )
2023-02-02 06:55:15 -03:00
Potuz
2579242669
modify slice in place ( #11956 )
...
* modify slice in place
* unit test
* comment explaning function
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-02-02 00:01:46 +00:00
terencechain
529d48d0c5
Capella: use builder ( #11906 )
2023-02-01 08:24:51 -08:00
Raul Jordan
b8bbeae740
Introduce Thread Safe Map Data Structure ( #11940 )
...
* fix thread safety issue
* gazelle
* push up benchmarks
* rev
* rem keys method
* shallow copy
* fxi
2023-02-01 14:32:01 +00:00
terencechain
59cb9f0dd7
Use head state only for bls messages broadcast ( #11949 )
...
* Use head state only for bls messages broadcast
* Fix build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-01 06:01:10 +00:00
Radosław Kapka
b10e59a144
Add finalized flag to API responses ( #11947 )
...
* server code
(cherry picked from commit fc68e6e78f2a84c66cd6c4db2a482cccdaf487d5)
* tests
* middleware
* more tests
* fix one more test
2023-01-31 17:58:16 -06:00
terencechain
c070283bf1
Call FCU with attribute on non head block ( #11919 )
...
* Call FCU with attribute on non head block
* Fix condition
* Filer save head
* Refactor
* Rm
* Add tests
* Fix race test
* Potuz feedback
* Reorder r != currentHeadRoot
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 19:17:16 +00:00
Nishant Das
3f67818a65
Utilize Read Only Head State ( #11932 )
2023-01-31 10:41:53 -08:00
Manu NALEPA
847835534d
Validator client: Add missing endpoint.DeleteRequest - Fixes #11943 ( #11944 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-31 18:01:51 +00:00
Potuz
c2194c57b7
Rate limit broadcasting of BLS changes at the fork and at RPC endpoint ( #11936 )
2023-01-31 09:31:22 -08:00
int88
bd83018e76
delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap ( #11813 )
...
* delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap
* regresstion test
* add different payload node
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-31 10:53:29 +00:00
terencechain
39114e6817
Use copied head state for metrics reporting ( #11933 )
...
* Use copied head state
* Move metrics to the end
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 10:07:27 +00:00
terencechain
67a9701e06
Add spec tests v1.3.0 rc.2 ( #11929 )
...
* Update test
* Fix shas
* Fix shas
* Use hotfix path for spectests
* Gazelle
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 09:42:09 +00:00
Nishant Das
5dc7741b30
Revert Bazel Hash Change ( #11941 )
2023-01-31 09:17:14 +00:00
james-prysm
53a135adbd
update-go-pbs.sh: fixing script for mac users & updating bazel dependency ( #11937 )
...
* fixing script for mac users
* updating checksum for bazel tool
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 01:17:12 +00:00
Raul Jordan
950d0c0282
Update Bazel Grail Toolchain SHA and Protect Digest Map with Lock ( #11939 )
...
* lock digest map
* imports
* toolchain update
2023-01-30 22:40:48 +00:00
Nishant Das
e8c25effb0
Cache Fork Digest Computation ( #11931 )
2023-01-29 16:07:50 +00:00
Potuz
cc454bb42c
Cycle the BLS changes pool when falling below a threshold ( #11873 )
...
* Cycle the BLS changes pool when falling below a threshold
* move cycle logic within pool
* set threshold at 2000
* fix conflict
* more fixes
---------
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-28 14:42:03 +00:00
Sammy Rosso
9529c73ff1
EIP-4881: Spec implementation ( #11720 )
...
* Initial spec rewrite
* Finish adding merkle tree implementation
* Last bits
* Move reverse function
* Add comments
* Add deposit tree snapshot
* Add deposit tree
* Add comments + cleanup
* Fixes
* Add missing errors
* Small fixes
* Add unhandled error
* Cleanup
* Fix unsafe file.Close
* Add missing comments
* Small fixes
* Address some of deepSource' compaints
* Add depositCount check
* Add finalizedDeposit check
* Replace pointer magic with copy()
* Add test for slice reversal
* add back bytes method
* Add package level description
* Remove zerohash gen and add additional checks
* Add additional comments
* Small lint fixes
* Forgot an error
* Small fixes
* Move Uint64ToBytesLittleEndian32 + test
* Fix uint subtraction issue
* Move mixInLength below error handling
* Fix
* Fix deposit root
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 17:35:25 +00:00
terencechain
eca129d8ff
Better log for block that never became head ( #11917 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:58:43 -05:00
terencechain
53a4939da4
Use correct attribute if there's a payload ID cache miss ( #11918 )
...
* Use correct attribute if there's a payload ID cache miss
* Test
* Default case unknown state version
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:13:47 +00:00
Manu NALEPA
efc1e06c6b
Validator client beacon api non functional fixes ( #11915 )
...
* Validator Client Beacon API: Use Go idiomatic error handling
* Validator Client Beacon API: Use `buildURL`
`buildURL` sort params by keys.
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-27 10:44:23 +00:00
james-prysm
07210d7360
prysmctl: withdrawal ux improvement ( #11909 )
...
* adjusting submit bls to not early exit function in partial success
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-27 09:57:36 +00:00
Sammy Rosso
9136d30121
Return error when using unsupported mnemonic language ( #11805 )
...
* Return error when using unsupported mnemonic language
* Fix failing tests
* More test fixes
* Add MnemonicLanguage to CreateWalletRequest
* Add MnemonicLanguage to remaining tests
* Add language to error
* Add missing (.)
* Set default language + fix renumbered fields
* Replace hardcoded language with default var
* default set
* gaz
* fix proto field setting
* fix up
* Remove WithMnemonicLanguage from tests
* Remove WithMnemonicLanguage from tests
* Fix conflicting information failure
* Gazelle + remove hardcoded english values
* fix
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-26 23:44:38 +00:00
Potuz
56907bb2c6
Randomize bls changes at fork ( #11923 )
...
* Rate Limit broadcasting of BLS changes
* Rate limit BLS changes broadcasting
* random
* linting
* mock test
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-26 23:13:28 +00:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Radosław Kapka
a296a0c783
Update builder code to Capella ( #11904 )
2023-01-26 14:07:44 +01:00
Guillaume Ballet
c6338e3a31
beacon-chain, config: get consensus values from beacon config ( #11798 )
...
* beacon-chain, config: get consensus values from beacon config
* review feedback
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-25 10:42:03 +00:00
terencechain
0a4b0a68d3
Clean up unused code ( #11900 )
...
* Clean up unused code
* More unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-25 10:09:14 +00:00
james-prysm
f9dd462338
PrepareBeaconProposer: bug fix ( #11912 )
...
* fixing bug and adding unit test
* reverting small change
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 22:47:26 +00:00
Potuz
943eb93a57
save genesis state to hot cache and do not look it up from disk ( #11911 )
...
* do not lookup genesis state from disk
* make sure genesis state is saved
* fix tests
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
2023-01-24 23:14:50 +01:00
Potuz
9619170df1
Return error structures from bls changes endpoint ( #11908 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 15:58:43 +00:00
james-prysm
4da0abace7
validator exit test ( #11910 )
...
* adding exit test
* fixing deep source errors
2023-01-24 15:26:58 +00:00
Patrice Vignola
d919f800e3
Add REST implementation for Validator's GetDuties ( #11893 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Address PR comments
* Remove duplicate import
* Fix build break
* WIP
* WIP
* WIP
* Add valid test case for getDutiesForEpoch
* Add failure tests for getDuties
* Revert test change
* Address PR comments
* Address PR comments
Co-authored-by: Emmanuel NALEPA <emmanuel.nalepa@kiln.fi >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-24 14:33:29 +00:00
james-prysm
38f095d556
prysmctl: changeblstoexecutionaddress ( withdrawals) ( #11790 )
...
* adding unit test for withdrawal
* updating to handle api changes
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* updating based on feedback
* rewording prints
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* add error handling when status not ok
* addressing some of the feedback, adding new tests
* adding unit test with error return
* adjusting based on review comments
* addressing more comments and fixing unit test
* updating prompts
* migrating some functions to api/client
* removing unused function
* adding review feedback
* removing unused functions
* migrating command, old command under accounts still exist
* reverting tos.go
* fixing bazel lint
* fixing build
* resolving unused parameter caught by deepsource
* fixing unit tests
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* adding in website
* addressing review comment
* adding new verify only flag
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing comments
* fixing unit test
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* adjusting object for new provided format
* adding omit empty
* fixing unit test, and linting
* adjusting based on cli changes
* fixing test data and metadata property
* addressing backwards compatability
* reverting based on review comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 10:05:55 +00:00
Potuz
04010d45c8
Do not check headstate being Capella for BLS changes on gossip ( #11902 )
...
* Do not check headstate being Capella for BLS changes on gossip
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 00:11:26 +00:00
Radosław Kapka
1a048a2f2a
Refactor BLS change pool ( #11894 )
...
* Refactor BLS change pool
* update mock's signature
* do not return error from `MarkIncluded`
* fix tests
* fix mock's signature
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-23 14:11:45 +00:00
terencechain
3df2dedbb2
Exit properly with terminal block hash ( #11892 )
2023-01-23 14:27:36 +01:00
Potuz
2fee906d25
Use LIFO instead of FIFO when packing BLS changes ( #11896 )
2023-01-20 16:30:42 +00:00
Sammy Rosso
9f44d6e452
Add flag for custom slasher database directory ( #11890 )
...
* Add slasher database directory flag
* Fix up some beacon chain flag uses
* fmt
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 21:52:53 +00:00
Patrice Vignola
55f311eb73
Add REST implementation for Validator's SubscribeCommitteeSubnets ( #11804 )
...
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Remove duplicate import
* Fix build break
* Address PR comments
* Remove file committed by mistake
* Fix broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-18 21:21:07 +00:00
Manu NALEPA
0f90bacac9
Add REST implementation for CheckDoppelGanger ( #11835 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* Address PR comments
* Add REST implementation for `CheckDoppelGanger`
* Use context
* Fix comments
* Fix PR comments
* Fix PR comments
* remove blank lines
* Fix comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-18 16:13:45 +00:00
Radosław Kapka
30974039f3
Small adjustments to Beacon API ( #11874 )
...
* better `fillDBTestBlocks`
* error when submitting unknown block type
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-18 12:15:25 +00:00
int88
3392ecb3e1
fix TestVotes_CanFindHead ( #11821 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-18 10:54:44 +00:00
Nishant Das
fa2b64f702
Remove Unused Block Setter ( #11889 )
...
* remove methods
* remove mock
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 08:56:44 +00:00
omahs
6f5e35f08a
Fix: typos ( #11885 )
...
* Fix: typo
Fix: typo
* Fix: typos
Fix: typos
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-18 15:21:58 +08:00
terencechain
79d6ce45ad
Add capella's marshal and unmarshal ( #11879 )
...
* Add capella's marshal and unmarshal
* skip test
* Fix TestJsonMarshalUnmarshal/execution_payload_Capella
* Fixing test
* Skip http test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 23:44:59 +00:00
terencechain
73cd7df679
Add capella fork version for Sepolia testnet ( #11888 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:51:01 +00:00
Nishant Das
d084d5a979
Add Disable Staking Contract Check Flag ( #11886 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:00:30 +00:00
Sammy Rosso
db6b1c15c4
Add additional tests to bytesutil ( #11877 )
...
* Add missing tests from bytes.go and integers.go
* Fix failing test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-01-17 17:54:43 +00:00
Dhruv Bodani
7c9bff489e
Add REST implementation for GetSyncCommitteeContribution ( #11875 )
...
* add REST implementation for GetSyncCommitteeContribution
* fix imports
* Update validator/client/beacon-api/sync_committee.go
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-17 16:43:22 +00:00
Nishant Das
1fca73d761
Delete interop.Dockerfile ( #11887 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 15:09:32 +00:00
Potuz
fbafbdd62c
Stream blocks capella ( #11883 )
...
* capella blocks stream
* add unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 12:17:18 +00:00
Potuz
75d98cf9af
Do not log an overflow computing Capella's slot start ( #11884 )
...
* Do not log an overflow computing Capella's slot start
* nishant's review
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-17 10:59:51 +00:00
Radosław Kapka
96401e734e
Implement bls_to_execution_change API event ( #11865 )
...
* Implement `bls_to_execution_change` API event
(cherry picked from commit 1c8a2c580b3664e1238380138dc65c30e238cb11)
(cherry picked from commit aabcaac619 )
* missing event code
(cherry picked from commit daa4fd2b72 )
* Update beacon-chain/core/feed/operation/events.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-17 09:45:20 +00:00
terencechain
5480d607ac
Change withdrawal amount unmarshal to uint64 (gwei) ( #11866 )
...
* Change withdrawal amount unmarshal to uint64 (gwei)
* Init server
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2023-01-16 21:25:16 +00:00
terencechain
38f0a81526
Clarify circuit breaker logs ( #11876 )
...
* Clarify circuit breaker logs
* Revert bad changes
* Fix test
2023-01-16 17:49:23 +00:00
Potuz
ad680d3417
Move broadcast of BLS changes to the forkwatcher ( #11878 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 15:00:11 +00:00
Potuz
047cae5e8b
Sign BLS_TO_EXECUTION_CHANGES with GENESIS_FORK_VERSION ( #11870 )
...
* Sign BLS_TO_EXECUTION_CHANGES with GENESIS_FORK_VERSION
* update spectests
* extra blank line
* fix consensus_specs_sha
* get rid of LightClients tests
* fix unit tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 14:29:33 +00:00
terencechain
179252faea
Address historical summaries feedback ( #11864 )
...
* Address historical summaries feedback
* Fix build
* Fix test
* Move historicalSummaries
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 12:44:40 +00:00
Potuz
f93b82ee89
broadcast bls changes at the fork ( #11872 )
2023-01-16 11:51:03 +00:00
int88
508e1ad005
optimize and fix bug of attestations related code ( #11869 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-16 02:19:46 +00:00
terencechain
1b2d917389
New prysm get block RPC ( #11834 )
2023-01-13 15:45:17 -08:00
kasey
eb6b811071
Remove ShardingForkVersion/Epoch from config ( #11868 )
...
* remove ShardingForkVersion/Epoch from config
* update magic value counting config params
* skip the sharding params, which we disavow
we wanted to remove these upstream and may well do some day but right
now it's too big of a mess to untangle.
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-13 17:11:33 +00:00
kasey
cf71dbdf97
"Fail" in logs makes FAIL in e2e hard to find ( #11867 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-01-13 13:03:30 +01:00
kasey
9328e9af1f
Capella State Detection ( #11862 )
...
* capella state version detection bug fix
* add capella to yaml "template"
* changes for capella state detection
* lint
* don't set capella fork version == altair!!!
* less brittle test for fork schedule rpc
* fix assertions that use wrong field name
* don't test capella/sharding fv against upstream
* hat tip Terence for sanity check
* Update config/params/loader_test.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-13 04:04:37 +00:00
terencechain
4762fd71de
Add historical summaries to beacon api state ( #11863 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-12 17:06:23 +00:00
Nishant Das
769daffb73
Fix State Fetcher ( #11820 )
...
* fix fetcher
* kasey's review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-12 10:00:12 +00:00
Radosław Kapka
16e6e0de6c
Replace FutureForkStub with specific interfaces ( #11861 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-12 00:42:35 +00:00
Nishant Das
396fc3dc7e
Fix Waiting For Bandwidth Issue While Syncing ( #11853 )
...
* fix bugs
* fix up
* comment
* raul's review
* comment
* finally fix it
2023-01-12 00:07:09 +00:00
terencechain
7fa3ebfaa8
Add historical summaries to state and processing ( #11842 )
...
* Add historical summaries to state and processing
* Process historical roots test
* Passing spec tests
* Fix shas and tests
* Fix mainnet spectest sha
* Fix tests
* Update beacon-chain/core/epoch/epoch_processing.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/core/epoch/epoch_processing_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/prysm/v1alpha1/beacon_state.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/hasher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek's feedback
* Getters error
* Dont return
* Fix else
* Fix tests
* Fix test
* Rm white space
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-11 22:20:15 +00:00
Patrice Vignola
81b9eceb50
Add Capella support for Validator's REST API ProposeBeaconBlock and GetBeaconBlock endpoints ( #11848 )
...
* Add Capella support for Validator's REST API ProposeBeaconBlock and GetBeaconBlock endpoints
* Fix
* Fix
* Add context to capella tests
* Update validator/client/beacon-api/beacon_block_proto_helpers.go
* Update validator/client/beacon-api/beacon_block_proto_helpers.go
* Update validator/client/beacon-api/beacon_block_proto_helpers_test.go
* Update validator/client/beacon-api/beacon_block_proto_helpers_test.go
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-11 16:55:09 +00:00
Radosław Kapka
505ff6ea3d
Replay state to current slot in StateBySlot ( #11858 )
2023-01-11 14:53:06 +01:00
Nishant Das
2b5125c7bc
Check If Validator Is In Sync Committee ( #11860 )
2023-01-11 10:19:31 +00:00
Preston Van Loon
1e3a55c6a6
Refactor bytesutil, add support for go1.20 slice to array conversions ( #11838 )
...
* Refactor bytes.go and bytes_test.go to smaller files, introduce go1.17 and go1.20 style of array copy
* rename bytes_go17.go to reflect that it works on any version 1.19 and below
* fix PadTo when len is exactly the size
* Add go1.20 style conversions
* Forgot another int method
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-10 16:41:01 +00:00
Dhruv Bodani
116f3ac265
Add REST implementation for validator's ProposeAttestation ( #11800 )
...
* Add REST implementation for validator's ProposeAttestation
* handle nil attestation
* update propose attestation with context
* fix lint
* add remaining nil testcases
* Update validator/client/beacon-api/propose_attestation_test.go
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
* fix BUILD.bazel
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-10 16:21:29 +00:00
Jacob Shufro
bbe003720c
add custom headers to DomainData requests ( #11767 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-10 00:20:45 +00:00
Patrice Vignola
e957edcb12
Add REST implementation for Validator's SubmitSignedContributionAndProof ( #11812 )
...
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Add context
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 22:54:52 +00:00
Dhruv Bodani
684022fa69
Add REST implementation for validator's SubmitSignedAggregateSelectionProof ( #11826 )
...
* add REST endpoint for SubmitSignedAggregateSelectionProof
* fix linter action
* update with context
* fix context import
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 21:18:42 +00:00
Dhruv Bodani
a7a64632b1
fix TestEndToEnd_MinimalConfig_ValidatorRESTApi test ( #11856 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 21:45:37 +01:00
Dhruv Bodani
c89ab764e3
Add REST implementation for validator's GetSyncMessageBlockRoot ( #11824 )
...
* add REST implementation for GetSyncMessageBlockRoot
* improve sync_message_block_root_test.go to handle errors
* include context
* fix unit tests
2023-01-09 19:35:33 +00:00
Manu NALEPA
375a76d6c9
Add REST implementation for SubmitSyncMessage ( #11827 )
...
* Add REST implementation for `SubmitSyncMessage`
* Use context
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 17:05:18 +00:00
terencechain
bad7c6a94e
Better reconstruct error msg while EL client is syncing ( #11851 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-09 15:09:45 +00:00
Potuz
bdc3a6ef11
Capella coverage and json structs ( #11854 )
...
* Capella coverage and json structs
* use SetupTestConfig
2023-01-09 14:47:40 +00:00
Manu NALEPA
4c9a0bf772
Add REST implementation for SubmitValidatorRegistrations ( #11816 )
...
* Add REST implementation for `SubmitValidatorRegistrations`
* Remove unused context
* Use context
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 19:46:09 +00:00
kasey
1c27b21b5a
Prevent pollution between scenario tests ( #11850 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-06 07:49:42 +00:00
Potuz
c1f00923c1
Implement bls_to_execution_changes beacon endpoint ( #11845 )
...
* Initial implementation
* fix withrawal unit tests
* add custom hooks api middleware test
* unit tests for endpoint
* update screwed proto file
* double import
* Raul review
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 05:17:33 +00:00
Dhruv Bodani
700f5fee8c
Add context to beacon API REST implementation ( #11847 )
...
* add context to beacon APIs
* add TODO to merge GET and POST methods
* fix linter action
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 03:32:13 +00:00
Potuz
66b6177ed3
Log forkchoice weights on reorgs ( #11849 )
2023-01-05 20:06:40 -03:00
Raul Jordan
0b0373f2fd
Remove Lock from Checkpoint Cache as LRU is Already Thread-Safe ( #11846 )
...
* lru cache in prysm is already thread safe
* rem import
2023-01-05 16:00:11 +00:00
Nishant Das
b481c91453
Shift Multiclient E2E to Post-Submit ( #11811 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-01-05 02:39:28 +00:00
Manu NALEPA
e1408deb40
Add REST implementation for MultipleValidatorStatus ( #11786 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-04 23:15:23 +00:00
Potuz
51601716dc
Rename proposer_exists ( #11844 )
2023-01-04 14:09:40 +00:00
terencechain
0e77a89208
Better version checks for future proof ( #11825 )
...
* Better version checks for future proof
* Revert changes for blob
* Use if else
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-04 03:47:20 +00:00
terencechain
6715f10ffc
Add canUseBuilder helper method ( #11829 )
...
* Add canUseBuilder helper method
* Fix build
* Go fmt
* Check circuit breaker first
2023-01-03 12:46:08 +08:00
terencechain
2906196786
Add test utility helper to generate valid bls-to-exec ( #11836 )
...
* Add test util helper to generate bls-to-exec
* Gazelle
2023-01-03 00:34:15 +00:00
Potuz
ff82d9ee8c
Add back BLS changes from orphaned blocks ( #11822 )
...
* Add back BLS changes from orphaned blocks
* Add full test
* add missing file
* remove duplicate imports
* Update beacon-chain/blockchain/head.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-01 18:22:01 +00:00
int88
42450fb24e
fix trace name of function ExecuteStateTransitionNoVerifyAnySig ( #11828 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-31 12:14:26 +00:00
terencechain
b6060d5a49
Track head slot through head block ( #11833 )
...
* Track head slot through head block
* Update beacon-chain/blockchain/head.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-29 22:23:56 +00:00
terencechain
cf6617933d
Fix BUILD.bazel for v1alpha1 rpcs ( #11830 )
...
* Fix build.bazel for v1alpha1 rpcs
* Revert common_deps
2022-12-28 21:38:28 +00:00
terencechain
4e28192541
Proposer RPC: helpers to get exits and slashings ( #11808 )
...
* Proposer RPC: helpers to get exits and slashings
* add test
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-12-23 05:50:14 +00:00
Nishant Das
4aa075abac
Use Single Log File in E2E ( #11810 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-23 03:43:00 +00:00
kasey
c1563e40bd
attempt to fix WaitForTextInFile log corruption ( #11819 )
...
* attempt to fix WaitForTextInFile log corruption
* restore Seek, just in case!
* lint
* handle file close error in all cases with a log
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-12-23 01:08:32 +00:00
terencechain
dac555a57c
Allow proposer duties one epoch in advance part 2 ( #11818 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-12-22 23:00:36 +01:00
Potuz
4d549f572c
Check BLS_TO_EXECUTION_CHANGE as if they were from Capella ( #11762 )
...
In the event we receive a BLS_TO_EXECUTION_CHANGE and our head state is
before Capella, verify it's signature with the Capella fork version.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-12-22 14:09:24 -03:00
Patrice Vignola
83f48350b2
Fix a bunch of deepsource warnings ( #11814 )
2022-12-22 09:20:10 +00:00
kasey
77a9dca9eb
Cleaner genesis state population ( #11809 )
...
* e2e using dynamic configs; runtime bellatrix setup
* starts from phase0 but fee recipient eval fails
* lower TTD to cross before bellatrix epoch in e2e
* fix debug printf
* fix it
* dynamic ttd and more robust fee_recipient eval
* let multiplication set ttd=0 if bellatrix epoch=0
* refactoring fee recipient test after cognit errors
* lint
* appease deepsource
* deep sourcin
* gazelle
* missed a usage of this when refactoring
* refactoring premine genesis to work for all forks
previous set of functions was a copypasta mess
* gaz post-merge
* gaz
* resolve merge artifact and pr feedback
* back out some unneeded changes
* appease deepsource
* move premine-state next to similar utils
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-12-22 05:38:51 +00:00
Nishant Das
9f1c6b2d18
Fix Multiclient E2E ( #11803 )
...
* fix multiclient e2e
* parallelize keystore generation
* fix config startup
* fix GetAggregateAttestation
* regression test
* kasey's review
* fix test
* gaz
* fix tests
* deep source
2022-12-22 02:48:46 +00:00
Radosław Kapka
0c997ede0f
Query duties - epoch changes ( #11806 )
...
* Allow fetching next epoch attester duties
* better formatting
* fix tests
* use param
2022-12-21 16:28:16 +00:00
Radosław Kapka
2dc56878cd
Implement getPoolBLSToExecutionChanges API endpoint ( #11801 )
...
* Implement `getPoolBLSToExecutionChanges` API endpoint
* fix
(cherry picked from commit d602c94b7b )
* unify with Capella
* newline
2022-12-21 13:01:04 +00:00
kasey
d916827fb9
E2E from Phase0 or Bellatrix ( #11802 )
...
* e2e using dynamic configs; runtime bellatrix setup
* starts from phase0 but fee recipient eval fails
* lower TTD to cross before bellatrix epoch in e2e
* fix debug printf
* fix it
* dynamic ttd and more robust fee_recipient eval
* let multiplication set ttd=0 if bellatrix epoch=0
* refactoring fee recipient test after cognit errors
* lint
* appease deepsource
* deep sourcin
* gazelle
* missed a usage of this when refactoring
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-12-21 04:43:29 +00:00
Ye Ding
e43152102e
Identify invalid signature within batch verification ( #11582 ) ( #11741 )
...
* Identify invalid signature within batch verification (#11582 )
* Fix issues found by linter
* Make deepsource happy
* Add signature description enums
* Make descriptions a mandatory field
* More readable error message of invalid signatures
* Add 'enable-verbose-sig-verification' option
* Fix format
* Move descriptions to package signing
* Add more validation and test cases
* Fix build failure
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-12-20 18:41:47 +08:00
Nishant Das
90d5f6097c
lock state ( #11796 )
2022-12-20 15:39:35 +08:00
james-prysm
ce125b763c
Improve validator set change event readability and error handling ( #11797 )
2022-12-19 22:12:09 +01:00
Patrice Vignola
3ff5895548
Add REST implementation for Validator's ProposeExit ( #11785 )
...
* Add REST implementation for Validator's GetBeaconBlock
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-19 12:58:52 +00:00
Patrice Vignola
4eb4cd9756
Add REST implementation for Validator's PrepareBeaconProposer ( #11784 )
...
* Add REST implementation for Validator's PrepareBeaconProposer
* Change fee recipients
* Handle error in a better way
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-19 12:23:54 +00:00
terencechain
81b049ea02
Remove copy for block setters ( #11795 )
2022-12-19 10:54:25 +00:00
Radosław Kapka
a2fc57cb03
Improve tests for ProduceBlockV2 ( #11789 )
...
* Improve tests for `ProduceBlockV2`
* Revert "Auxiliary commit to revert individual files from 31c606198bdc91bac798b7a446d04d5cce86dad7"
This reverts commit d8b264457168f8f5e03d0473288a56606e38ab39.
2022-12-16 20:54:38 +00:00
Radosław Kapka
b63f649d89
Add finalized metadata field to API block fetching ( #11788 )
2022-12-16 18:21:08 +01:00
Ye Ding
e627d3c6a4
Fix command to fetch latest stable version ( #11782 ) ( #11787 )
2022-12-16 16:13:54 +00:00
Potuz
856102cba8
Implement bound on expected withdrawals ( #11760 )
...
* Implement bound on expected withdrawals
This PR implements https://github.com/ethereum/consensus-specs/pull/3095
* Terence's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update spectests
* fix minimal preset
* Clear committee cache during header tests to ensure active validators ain't leaking
* Rm debug log
* Rm bad init
* Update consensus spec sha
* Fix bad tests and remove redundant casting
* Fix build
* MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP typo
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 06:45:26 +00:00
terencechain
8ff6f7768f
Sync committee head state cache for Capella ( #11773 )
...
* Handle capella
* Handle capella
* Error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:42:43 +00:00
terencechain
295cc5e4f0
Engine API: new/get_payload for Capella ( #11775 )
...
* Engine API: new/get_payload for Capella
* Fix build
* Use switch for payload type check
* Fix bad tests
* Rm redundant arg
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:25:22 +00:00
Radosław Kapka
8a2c7e4269
Add finalized metadata field to API responses ( #11783 )
...
* in progress
* grpc working
* middleware
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:04:40 +00:00
Radosław Kapka
cb02a6897d
Update block Beacon APIs to Capella ( #11706 )
...
* proto+ssz
* refactor GetBlindedBlockSSZ
(cherry picked from commit 97483c339f99b0d96bd81846a979383ffd2b0cda)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
(cherry picked from commit 9e4e82d2c5 )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* add Capella version
(cherry picked from commit 5d6fd0bbe663e5dd16df5b2e773f68982bbcd24e)
(cherry picked from commit 82f6ddb693 )
* support SSZ lol
(cherry picked from commit 52bc2c8d617ac3e1254c493fa053cdce4a1ebd63)
(cherry picked from commit d7d70bc25b )
* update withdrawals proto
* refactor and test GetBlockV2
(cherry picked from commit c1d4eaa79d )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* refactor and test GetSSZBlockV2
(cherry picked from commit fbc4e73d31 )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* test other functions
(cherry picked from commit 31d4a4cd11 )
* move stuff to blinded_blocks.go
(cherry picked from commit 0a9e1658dd )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* fix migration code
* add Capella to SubmitBlock
* custom hooks
* missing structs
* fix tests
* fix tests
* review
* fix build issues
* replace ioutil with io
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 23:42:07 +00:00
Patrice Vignola
e843cafe7d
Add REST implementation for Validator's GetBeaconBlock ( #11772 )
...
* WIP
* WIP
* WIP
* Remove unused parameter
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-15 22:34:05 +00:00
Radosław Kapka
1c5b0596c7
More user-friendly message in ErrUndefinedExecutionEngineError ( #11777 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 07:46:17 +00:00
David Theodore
159228b34f
SparseMerkleTrie depth fix & regression tests ( #11778 )
2022-12-15 06:50:12 +00:00
Radosław Kapka
1fbb3f3e51
Reconstruct full Capella block ( #11732 )
...
* Merge branch 'reconstruct-capella-block' into capella
(cherry picked from commit b0601580ef )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
# proto/engine/v1/json_marshal_unmarshal.go
* remove unneeded test
* rename methods
* add doc to interface
* deepsource
(cherry picked from commit 903cab75ee )
# Conflicts:
# beacon-chain/execution/testing/mock_engine_client.go
* bzl
* fix failing tests
* single ExecutionBlockByHash function
* fix engine mock
* deepsource
* reorder checks
* single execution block type
* update tests
* update doc
* bytes test
* remove toWithdrawalJSON
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 13:42:48 +00:00
Manu NALEPA
9c21809c50
Add REST implementation for ValidatorStatus ( #11757 )
...
* Add REST implementation for `ValidatorStatus`
* Fix review comments
2022-12-14 12:58:36 +00:00
terencechain
62ffed7861
Add capella cases for RPC calls ( #11759 )
...
* Add capella cases for rpc calls
* Use if else
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 05:08:54 +00:00
Victor
bdf063819c
Fixed comments of the template ( #11652 )
...
The comments of the template were not inside the braces and appeared when creating a new Issue.
Thanks
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-12-14 02:49:19 +00:00
Radosław Kapka
9efc89f993
Correct duties calculation for old slots ( #11723 )
...
* initial code
* update proposalDependentRoot
* convert method to function
* decouple tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-12-14 00:33:30 +00:00
Preston Van Loon
5ed52b1e44
Validator: Add trace span information for AttestationRecord save requests ( #11742 )
...
* Add additional span information when saving attestation records
* Remove keymanager.sign span. It's very noisy and not a helpful data point.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 00:06:32 +00:00
kasey
2e49fdb3d2
Start chain from bellatrix state ( #11746 )
...
* WIP trying to start from bellatrix state
* env var to control log path with unique paths
due to flaky test re-run behavior, logs from a failed test run are
overwritten by subsequent retries. This makes it difficult to retrieve
logs after the first failed run. It also takes some squinting through
output to find the location of the log file in the first place. This
flag enables logs to be placed in an arbitrary path. Note that bazel
sandboxing generally will force this path to be in the /tmp tree.
* WIP - grabbing changes from rm-pre-genesis branch
* combine bellatrix state w/ rm-pre-genesis branch
* WIP
* use encoding/detect for genesis state bytes
* WIP more fixes towards start from bellatrix
* remove debug wrapping
* WIP
* multiple bugfixes
* fix fork ordering bug and bellatrix genesis blocks
* send deposits, spam tx to advance, fix miner alloc
* WIP
* WIP mess
* WIP
* Print process ID information for purposes of attaching a debugger
* bugs: genesis body_root and deposit index mismatch
* fix voting period start, skip altair check
* add changes
* make it better
* rm startup FCU, rm logs
* cleanup import grouping&ordering
* restore FCU log, get rid of tmp var
* rm newline
* restore newline
* restore wrapped error
* rm newline
* removing boot node version override
this doesn't seem to matter?
* add issue number to todo comment
* rm commented code
* rm vmdebug geth flag
* unexport values only used with genesis test pkg
and add comments where missing from exported values.
* adding comments to special cases for testnets
* migrate comments from PR to actual code :)
* rm unused test param
* mark e2e spawns exempt from gosec warning
* Fix DeepSource errors in `proposer_bellatrix.go` (#11739 )
* Fix DeepSource errors in
* Omit receiver name
* Address PR comments
* Remove unused variable
* Fix more DeepSource errors
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Remove `Test_IsExecutionEnabledCapella` (#11752 )
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Add REST implementation for Validator's `ProposeBeaconBlock` (#11731 )
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fix validator client (#11755 )
* fix validator client
(cherry picked from commit deb138959a )
* Use signed changes in middleware block
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* API `finalized` metadata field - update protos (#11749 )
* API `finalized` metadata field - update protos
* change nums
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* log breaks unit tests that don't do full arg setup
easiest to just remove it for now
* restore prior behavior of phase0 block for altair
* update unit tests to account for special case
* loosen condition for fork version to match config
we don't know which fork version genesis will start from, so we
shouldn't force it to be a phase0 genesis.
* skip until we can mod configs at runtime
* NewGenesisBlockForState computes state root itself
* rm noisy log
* this log would be noisy in mainnet
* fix format specifier, []byte -> string
* core.Genesis UnmarshalJson has a value receiver :)
* no longer needs to be exported
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 07:13:49 +08:00
Preston Van Loon
a01d08b857
Add --stamp to release builds ( #11768 )
2022-12-13 21:33:51 +00:00
Preston Van Loon
fbe0672fc4
state: Improve replay state logs metadata ( #11763 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-13 18:46:51 +00:00
Potuz
a15ec49844
Do not remove attestations twice ( #11764 )
2022-12-13 14:43:42 -03:00
int88
a268255ab1
fix mismatch of code and comment ( #11761 )
2022-12-13 15:57:52 +00:00
james-prysm
043079dafe
Adding exit codes to cli commands ( #11735 )
...
* adding exit codes to cmd
* adding in fatal logs to other cli actions
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-13 12:13:33 +00:00
terencechain
3fcdd58872
Add block setters for consensus type ( #11751 )
...
* Add block getters
* Rm changes
* Rm changes
* Revert "Rm changes"
This reverts commit 1ae5db79da .
* Fix tests
* Set graffiti right place
* Potuz feedback
* Update consensus-types/blocks/setters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek feedback
* Fix comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-13 00:03:36 +00:00
Radosław Kapka
0798092ca8
API finalized metadata field - update protos ( #11749 )
...
* API `finalized` metadata field - update protos
* change nums
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-12 16:59:27 +00:00
Radosław Kapka
fb981d29e8
fix validator client ( #11755 )
...
* fix validator client
(cherry picked from commit deb138959a )
* Use signed changes in middleware block
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-12-12 15:49:02 +00:00
Patrice Vignola
fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock ( #11731 )
...
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-12 10:39:51 +00:00
terencechain
09619c388f
Remove Test_IsExecutionEnabledCapella ( #11752 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-11 22:59:12 +00:00
Patrice Vignola
1531313603
Fix DeepSource errors in proposer_bellatrix.go ( #11739 )
...
* Fix DeepSource errors in
* Omit receiver name
* Address PR comments
* Remove unused variable
* Fix more DeepSource errors
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-10 10:27:07 +00:00
Potuz
babfc66c5b
Check BLS changes when requesting from pool ( #11718 )
...
* Check BLS changes when requesting from pool
* Terence's suggestions
* Radek's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-12-09 14:41:45 +00:00
terencechain
cb9b5e8f6e
Use payload attribute type for engine-API ( #11719 )
...
* Add payload attribute type
* Gazelle
* Fix test
* Use new payload attribute type
* Fix test
* Fix test
* Update beacon-chain/execution/engine_client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Feedbacks
* Fix suggestion
* Update argument, fix test
* Return emptyAttri instead of nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-08 21:39:45 +00:00
james-prysm
145eb5a8e4
add m1 chip info ( #11736 )
2022-12-08 15:20:32 -06:00
Preston Van Loon
7510f584cb
beacondb: Remove cache look up and lock request from boltdb transaction for state summaries ( #11745 )
...
* Remove cache look up from bolt transaction
* remove bogus line, oops
* Remove independent cache lookup entirely and just use HasStateSummary
* Rm newline
2022-12-08 19:32:04 +00:00
Patrice Vignola
dbeb3ee886
Onboard validator's Beacon REST API usage to e2e tests ( #11704 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Onboard validator's Beacon REST API usage to e2e tests
* Remove unused variables
* Remove use_beacon_api tags
* Fix DeepSource errors
* Revert unneeded changes
* Revert evaluator changes
* Revert import reordering
* Address PR comments
* Remove all REST API e2e tests except minimal one
* Fix validator pointing to inexisting beacon node port
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-08 14:38:56 +00:00
Preston Van Loon
ca2618110f
e2e: Print process IDs for debugging. ( #11734 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-08 04:48:16 +00:00
Nishant Das
642c399b9d
Add Back Cross Client Option ( #11738 )
...
* add changes
* remove env var
* fix
2022-12-07 22:20:35 -06:00
Manu NALEPA
6eee539425
Add REST implementation for Validator's WaitForActivation (Ethereum Protocol Fellowship) ( #11671 )
...
* Implement REST `WaitForActivation`
* Activation: Factorize tests
* Fix PR comments
* `missingPubKeys`: Replace map by slice (no need to have a map here)
* Fix typo
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-07 19:20:11 +00:00
james-prysm
bd82eb873c
Fix to Post Submit E2E ( #11733 )
2022-12-07 18:19:44 +01:00
Nishant Das
62455b7bcb
Fix Lint and Minor Bugs in E2E ( #11730 )
2022-12-07 05:31:53 +00:00
Preston Van Loon
3d6d0a12dd
Update go to 1.19.4 ( #11727 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-06 21:20:25 +00:00
Patrice Vignola
05148dbc8f
Fix DeepSource errors in the Validator's REST API ( #11726 )
2022-12-06 20:31:56 +00:00
james-prysm
19af1d2bb0
E2E: beacon APIs Part 1 ( #11306 )
...
* adding compare beacon block test
* fixing bazel
* fixing evaluator import
* fixing imports
* changing package name
* fixing bazel
* adding logic to check for checking epoch
* fixing linting
* adding check for attester duties
* handle both blockv1 and blockv2
* making middleware objects public instead
* adding test for block attestations
* fixing typo
* adding blockroot test
* adding test for attestations
* fixing type value
* fixing test
* adding in node endpoints
* fixing bazel
* updating web3signer
* printing beacon blocks on request
* fixing struct
* temp log
* forgot string cast
* adding comparison function
* fixing bazel and evaulators, WIP
* fixing bazel
* changing how to minify json
* trying multiclient
* fixing port problem
* reverting evaluator and making test only for mainnet scenario testing
* removing test data
* fixing linting unused functions
git push
* changed to reflect
* adding in ssz comparison
* fixing tests
* fixing conflict
* fixing tests
* making v2 the standard
* adding better error logging
* fixing type
* adding lighthouse settings and fixing some deepsource items
* testing adding delay to evaluator
* testing without peers check
* changing target peers to try to fix lighthouse peer connections
* temp removing other tests
* fix lint issue
* adding peers connect back in
* adding in state version
* fixing bazel
* fixing path error
* testing changes to state
* fix unmarshal
* simplifying beacon api e2e execution
* fixing missed assertian checks
* improve logging and debugging issue
* trying to fix unmarshal
* still breaking more test edits
* removing fork to test unmarshal
* fixing pathing
* resolving error
* fixing beacon_api
* merging in debug api to beacon_api test
* fixing lint and temp commenting out endpoint
* adding in custom comparison function
* fixing custom evaluator
* adding test for block header data
* fixing header evaluation
* add node apis
* fixing linting,adding tests
* fixing bazel and temp removing unused functions
* fixing deepsource and linting issues
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing review
* resolving more review comments
* fixing linting
* removing ssz return value as it's large and possibly not needed
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing more review comments
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing linting and review iteems
* fixing cognit complexity issue
* fixing linting
* fix log printout
* test build kite only with crossclient
* switching out evaluator to depositedvalidatorsareactive
* removed wrong evaluator switching correct one
* removing skip based on review comments
* fixing pathing issue
* test without participation at epoch
* testing without special lighthouse logic in evaluator
* reducing expected participation when multiclient
* fixing imports
* reducing epochs to see if less flaky
* testing with other tests added back in
* reducing epochs ran further
* testing only cross client again
* testing multi run again
* test reverted scenario for tests
* testing with cross client
* removing commented out function
* testing without peers connect
* adding optimization based on suggestions
* removed the wrong peers connect
* accidently commited something I shouldn't have
* fixing lighthouse flag
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-06 16:01:17 +00:00
Nishant Das
faf16f9e56
Allow Nodes Running Via VPNs To Make Successful Dials ( #11599 )
...
* fix it
* fix dialer for now
* fix build
* fix test
* fix to v0.24.0
* fix gaz
* fix build
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-06 14:54:45 +00:00
Manu NALEPA
0a5c65e29c
Add REST implementation for Validator's ValidatorIndex ( #11712 )
...
* Add GetAttestationData
* Add tests
* Add many more tests and refactor
* Fix logic
* Address PR comments
* Address PR comments
* Add jsonRestHandler and decouple http logic from rest of the code
* Add buildURL tests
* Remove handlers_test.go
* Improve tests
* Implement `ValidatorIndex` of `beaconApiValidatorClient` using Beacon API
* Implement getStateValidators
* `validatorIndex`: Use `getStateValidators`
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com >
2022-12-06 12:27:26 +00:00
Radosław Kapka
7dc966bb3b
Update state Beacon APIs to Capella ( #11708 )
...
* proto
(cherry picked from commit 24f45e021061782ab4d6c101a95368310aad67b6)
* implementation
(cherry picked from commit bbfa22c2053e8176fc004b13ba9c8d62cc3bd352)
# Conflicts:
# beacon-chain/rpc/apimiddleware/structs.go
* fix compilation error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-06 00:36:23 +00:00
Radosław Kapka
51d35f36f0
Disallow computing committee assignments for old slots ( #11722 )
2022-12-05 23:37:08 +01:00
Patrice Vignola
943a0556e9
Add REST implementation for Validator's DomainData ( #11711 )
...
* Add REST implementation for Validator's DomainData
* Add missing dependency
* Fix getForkVersion logic
* Remove unused helpers
* Fix deepsource error
* Fix deepsource error
* Address PR comments
* Remove outdated comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-05 10:27:41 +00:00
terencechain
f7cecf9f8a
Add payload attribute type ( #11710 )
...
* Add payload attribute type
* Gazelle
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-02 18:23:47 +00:00
Nishant Das
8be73a52b1
Add State Check For BLS Execution Change Messages ( #11716 )
2022-12-02 11:13:21 +00:00
Potuz
bebceb3bfa
Handle BLS to execution changes included in blocks ( #11713 )
...
* Handle BLS to execution changes included in blocks
* log
* review
2022-12-02 14:04:45 +08:00
Mart1i1n
d541010bf1
Fix Typo ( #11670 )
...
* Update ffg_update_test.go
Fix some alignment typos.
* Update justification_finalization.go
Fix typo.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-11-30 22:25:55 +00:00
terencechain
8cb07e0c2b
Spec test: capella and update to v1.3.0-alpha.1 ( #11683 )
2022-11-30 12:08:04 -08:00
Preston Van Loon
aa2bf0c9c4
Spectests: ensure test directories are not empty ( #11709 )
...
* Add an assertion that test folders are not empty
* more assertions
* only run sync tests on bellatrix or later
2022-11-30 17:32:10 +00:00
Ye Ding
e49d8f2162
Fix a race condition during initialization ( #11444 ) ( #11698 )
...
* Fix a race condition during initialization (#11444 )
* Fix tests
* Add more test cases
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-29 18:24:50 +00:00
shana
c6ed4e2089
Do not omit json fields if empty in builder client ( #11673 )
...
* Do not omit json fields if empty in builder client
* fix tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-11-29 12:12:13 +00:00
int88
0ad902e47d
fix help message of metric doublylinkedtree_node_count ( #11705 )
2022-11-29 11:29:48 +00:00
Preston Van Loon
4f4775f9f9
bazel: Update rules_go and remove extra repos in WORKSPACE ( #11703 )
...
* Update rule_go to latest release, remove fuzzit stuff
* Delete another thing
2022-11-28 23:00:11 +00:00
terencechain
679e6bc54a
Cont FCU if get payload attribute fails ( #11693 )
...
* Cont FCU if get payload attribute fails
* Fix err position
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2022-11-28 19:42:32 +00:00
Radosław Kapka
c7a3cf8563
GetForkChoice API endpoint (#11680 )
...
* proto
* middleware
* change structure
* fix all issues
* test
* validity field
2022-11-28 19:17:53 +00:00
Radosław Kapka
6c3b75f908
Upgrade getBlindedBlock API endpoint to Capella ( #11687 )
...
* proto
(cherry picked from commit 7101910e0fab5a5572795115679fd6f8d8c8379b)
* GetBlindedBlock
(cherry picked from commit e5c269ddf7b0c9e04f72ed28982a82de56fcac55)
* middleware
(cherry picked from commit 1719ce5967b0f74786c596cc921f7256e6b224f3)
* refactor
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* update error message
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-11-28 18:17:05 +00:00
Patrice Vignola
f276c5d006
Make the validator REST API's WaitForChainStart blocking ( #11695 )
2022-11-28 11:58:04 +01:00
Potuz
29953cb734
Refactor Sync Committee Rewards ( #11696 )
2022-11-27 11:06:32 -08:00
Nishant Das
a23a5052bc
Add Gossip Handler For BLS To Execution Changes ( #11690 )
2022-11-26 11:07:05 -08:00
Potuz
f9e0d4b13a
Batch capella signatures with the rest of the block ( #11689 )
2022-11-25 09:45:36 +08:00
Potuz
0aaee51973
Process bls changes ( #11684 )
...
* Implement ProcessBLSToExecutionChanges
* Batch process signatures
* gaz
* Change runtime behavior
* Terence's review
2022-11-24 19:36:12 +00:00
terencechain
a0c0706224
Add Capella state changes ( #11688 )
...
* Add Capella state changes
* Use params.configs
2022-11-24 14:54:55 -03:00
Potuz
a525fad0ea
Add upgrade to Capella to statereplay ( #11686 )
2022-11-24 14:58:05 +00:00
Patrice Vignola
7ab5851c54
Add a gRPC fallback mode to the validator Beacon REST API ( #11679 )
...
* Add a gRPC fallback mode to the validator Beacon REST API
* Remove --beacon_api_grpc_fallback flag
* Add missing bazel dependency
* Reorder dependency per gazelle check
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-24 11:09:07 +00:00
Patrice Vignola
e231cfd59d
Onboard validator's beacon REST API tests to CI ( #11682 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-24 11:50:13 +01:00
kasey
0a41b957dc
env var to control log path with unique paths ( #11681 )
...
due to flaky test re-run behavior, logs from a failed test run are
overwritten by subsequent retries. This makes it difficult to retrieve
logs after the first failed run. It also takes some squinting through
output to find the location of the log file in the first place. This
flag enables logs to be placed in an arbitrary path. Note that bazel
sandboxing generally will force this path to be in the /tmp tree.
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-11-23 22:56:40 +00:00
Radosław Kapka
f2399e21e1
GetLiveness API endpoint (#11617 )
...
* proto
* initial version
* middleware + tests
* change request structure
* fix all issues
* review feedback
* simplify out-of-range check
2022-11-23 18:23:22 +00:00
kasey
395e49972e
prysmctl support generating non-phase0 genesis.ssz ( #11677 )
...
* support generating non-phase0 genesis.ssz
* make default (Value) work for EnumValue + lint
* remove messy punctuation
* Ran gazelle for @kasey
* Fix deps viz
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-11-23 14:22:24 +00:00
Radosław Kapka
ee099d3f03
Operations pool for BLS-to-execution-changes ( #11631 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-22 18:34:14 +01:00
terencechain
e2ffaf983a
Add minimal withdrawal size ( #11658 )
...
* Add selector with minimal withdrawal size
* @potuz's feedback, Add PayloadAttribruteV2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-22 16:05:37 +00:00
Patrice Vignola
0d4b98cd0a
Add REST implementation for Validator's WaitForChainStart ( #11654 )
...
* Add REST implementation for Validator's WaitForChainStart
* Add missing error mapping
* Add missing bazel dependency
* Add missing tests
* Address PR comments
* Replace EventErrorJson with DefaultErrorJson
* Add tests for WaitForChainStart
* Refactor tests
* Address PR comments
* Add gazelle:build_tag use_beacon_api comment in BUILD.bazel
* Address PR comments
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-22 12:12:55 +00:00
Andrew Davis
fe1281dc1a
fix(beacon-chain/rpc): correct block root for block events ( #11666 )
2022-11-22 10:26:56 +00:00
james-prysm
9761bd0753
correctly assign arm64 arch for Apple M1 ( #11675 )
...
* fixing typo
* removing if statement, not needed anymore
2022-11-21 23:11:02 +00:00
Manu NALEPA
0bcddb3009
Update mockgen ( #11615 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-21 17:26:27 +01:00
terencechain
ee9da3aded
Fill missing payload ID should exit early if block has seen ( #11669 )
...
* Fill missing payload ID should exit early if block has seen
* Move metric inc to top
* Fix test
2022-11-21 10:34:40 -05:00
kasey
d58d3f2c57
E2E deposit testing overhaul ( #11667 )
...
* rewrite/refactor deposit testing code
keep track of sent deposits so that they can be compared in detail with
the validator set retreived from the API.
* fix bugs in evaluator and retry
* lint + deepsource appeasement
* typo s/Sprintf/Printf/
* gosec, more like nosec
* fix gosec number - 204->304
* type switch to get signed block from container
* improve comments
* centralizing constants and adding comments
* lock around Depositor to avoid future races
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-11-19 03:40:32 +00:00
Preston Van Loon
4b033f4cc7
Update go to 1.19.3 ( #11630 )
...
* Update go to 1.19.3
* Update other items to 1.19
* Update golangci-lint to latest release
* Run gofmt -s with go1.19
* Huge gofmt changes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-18 19:12:19 +00:00
terencechain
07d0a00f88
Add capella slashing parameters ( #11660 )
...
* Add capella slashing parameters
* Add capella to epoch precompute
* Revert "Add capella to epoch precompute"
This reverts commit 61a5f3d2bd .
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-17 17:03:53 +00:00
Nishant Das
08d63a0cd0
Remove Geth Bindings From Prysm ( #11586 )
...
* check in changes
* gaz
* preston's review
* comment
* fix up
* remove test
* gaz
* preston's review
* fix it
2022-11-17 17:16:19 +08:00
kasey
f02ad8a68b
disable geth nat traversal ( #11664 )
...
Co-authored-by: kasey <kasey@users.noreply.github.com >
2022-11-16 00:14:42 +08:00
Potuz
466fd359a2
Fix expected_withdrawals ( #11662 )
2022-11-14 21:33:40 -05:00
terencechain
b5f8e69b6b
Add capella to epoch precompute ( #11661 )
2022-11-14 10:05:58 -05:00
terencechain
cf466702df
Capella: validator log withdrawals ( #11657 )
...
* Capella: validator log withdrawals
* Capella: validator log withdrawals
2022-11-13 02:26:49 +00:00
Potuz
de73baa4a7
Update 3068 ( #11656 )
...
* rename last_withdrawal_validator_index
* Update Capella methods to Specs #3068
* Add missing renames
* rename minimal state
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:38:21 +00:00
Potuz
d4a3b74bc6
capella payload changes ( #11647 )
...
* capella payload transition changes
* fix leak
* add back setters_payload from capella
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:19:51 +00:00
Potuz
216cdd9361
Use finalized hash if payloadID cache misses ( #11653 )
2022-11-12 17:58:14 +00:00
Potuz
68c3e939b8
Fix withdrawalRoot hasher ( #11655 )
2022-11-12 09:00:53 -08:00
terencechain
bf7e17db8f
Fix get RANDAO endpoint for underflow ( #11650 )
...
* Fix get randao end point for underflow
* Fix test
2022-11-11 17:58:25 +00:00
Patrice Vignola
ead9a83d8d
Add customizable endpoints for the validator's REST API ( #11633 )
...
* WIP
* Refactor to use iface.ValidatorClient instead of ethpb.BeaconNodeValidatorClient
* Add mocks for iface.ValidatorClient
* Fix mocks
* Update update-mockgen.sh
* Fix warnings
* Fix config_setting syntax
* Use custom build settings
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Fix endpoint address and reduce timeout
* Revert most e2e changes
* Use e2e.TestParams.Ports.PrysmBeaconNodeGatewayPort
* Fix BeaconRESTApiProviderFlag port
* Revert e2e changes
2022-11-11 17:33:48 +00:00
Nishant Das
2fef03414d
Fix ENR Serialization ( #11648 )
...
* fix it
* fix test
2022-11-10 12:03:55 +00:00
Potuz
7b63d5c08c
Operations in Capella are as in Bellatrix ( #11646 )
...
* Operations in Capella are as in Bellatrix
* add unit test
2022-11-10 02:04:03 +00:00
Potuz
af6d5e9149
don't change again unecessarily ( #11645 )
...
* don't change again unecessarily
* remove blinded blocks from gossip
2022-11-09 23:59:10 +00:00
terencechain
d0d7021c1d
Add Capella p2p changes ( #11644 )
2022-11-09 15:11:46 -08:00
Potuz
4db1a02763
Implement upgrade to capella ( #11642 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-09 16:48:23 +01:00
Mart1i1n
69d7f7f6ca
Update ffg_update_test.go ( #11639 )
...
Fix some alignment typos.
2022-11-09 12:27:17 +00:00
Inphi
4e342b8802
Fix prysmctl generate-genesis yaml output file ( #11635 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-08 14:36:58 +00:00
Nishant Das
02566de74c
Copy Bytes Safely When Accessing Withdrawals ( #11638 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-08 13:40:25 +00:00
Potuz
90ecd23d41
implement process_withdrawals ( #11634 )
...
* implement process_withdrawals
* change errors to error.go
* gazelle
* James' review
* use bytes.Equal instead
* Radek's review
* Radek's review #2
* fix test
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-08 10:15:26 -03:00
int88
4d68211ad4
fix error message of subscriber ( #11622 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-07 16:44:38 +00:00
terencechain
19f6d3bef6
Capella: Add DB changes ( #11624 )
...
* Add Capella DB changes
* Add tests
2022-11-07 15:26:27 +00:00
Potuz
37108e6ed8
Implement get_expected_withdrawals ( #11618 )
...
* Implement get_expected_withdrawals
* Fix config test and export method
* Radek's review
* start from a different index in a test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-07 14:11:16 +00:00
Patrice Vignola
d33af46c90
Add support for building a Beacon API validator client versus a gRPC one ( #11612 )
2022-11-07 11:29:27 +01:00
Radosław Kapka
53d4659654
GetRandao Beacon API endpoint (#11609 )
...
* `GetRandao` Beacon API endpoint
* test optimistic execution
* review
* change epoch in test
2022-11-05 23:04:58 +00:00
terencechain
09e117370a
Flatten blob to an array ( #11614 )
...
* Flatten blob to an array
* Rename data back to blob
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2022-11-04 15:03:25 +00:00
Radosław Kapka
8ade8afb73
Remove SSZ tags from beacon state ( #11613 )
...
* Remove SSZ tags from beacon state
* tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-04 11:08:57 +00:00
Inphi
872021f10d
Remove unneeded protoarray tests ( #11607 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-04 09:39:52 +00:00
Potuz
bb09295072
Remove withdrawal Queue ( #11610 )
2022-11-03 16:55:44 +00:00
terencechain
e4b2b1ea7d
Unlock pending block queue if insertion errors ( #11600 )
...
* Unlock pending queue if insertion errors
* @saolyn's feedback
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-02 18:26:27 +00:00
terencechain
ead329e610
Implement [][] to [][48] helper ( #11606 )
2022-11-02 18:04:40 +00:00
int88
a0c5669511
RLock() for readonly operation ( #11603 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-02 16:22:42 +00:00
terencechain
0fd5253915
Remove unused protobuf imports ( #11602 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-02 13:46:23 +00:00
terencechain
86e855d499
Rename blob.blob to blob.data ( #11601 )
2022-11-02 14:21:03 +01:00
Sammy Rosso
001ae30a59
EIP-4881: Add merkle tree interface ( #11597 )
...
* Add merkle tree interface
* Run gazelle
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-11-01 23:31:32 +00:00
terencechain
d1f0e5dd55
Run ./hack/update-go-pbs.sh ( #11598 )
2022-11-01 23:08:52 +00:00
terencechain
2142b13a41
Add 4844 containers to protobuf ( #11596 )
2022-10-31 12:11:40 -07:00
Radosław Kapka
ffac232d89
Capella beacon block ( #11566 )
...
* in progress
* done, no tests yet
* fix ToBlinded()
* Revert "Auxiliary commit to revert individual files from 2e356b6f5b15d409ac15e825c744528591c13739"
This reverts commit 081ab74e88fb7d0e3f6a81e00fe5e89483b41f90.
* tests
* fix tests
* one more fix
* and one more
* review
* fix proto_test
* another fix
* do not return error when nil object is wrapped
* allow nil payload in body.Proto()
* correctly assert error
* nil checks in body.Execution()
* simplify PR
* Revert "Auxiliary commit to revert individual files from 5736c1f22f2d2f309b9303c13d0fb6b1679c6ecb"
This reverts commit 1ff3a4c864923f5c180aa015aa087a2814498b42.
* fix slice sizes in cloner tests
* better payload tests
* review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-31 17:58:30 +00:00
int88
26b46301d2
some minor fixes ( #11593 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-30 02:54:15 +00:00
Mark Ridgwell
fdf913aed9
corrected method name in comment ( #11594 )
2022-10-28 12:17:56 -04:00
terencechain
9435d10652
Add more buckets for block arrival latency histogram ( #11589 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-27 15:43:41 +00:00
Radosław Kapka
8fa481cb93
Flag to exit validators without confirmation prompt ( #11588 )
2022-10-27 17:24:41 +02:00
terencechain
26087d7b2d
Add unknown roots in error msgs ( #11585 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-27 10:38:07 -04:00
Nishant Das
5a3a01090a
Increase Block Burst Factor For E2E ( #11583 )
...
* test
* set higher block burst factor
* add back space
* remove space
2022-10-27 03:06:52 +00:00
Preston Van Loon
55690de685
bazel: Check in 5.3.0 cross compile clang toolchain ( #11577 )
...
* Check in 5.3.0 generated clang cross-toolchain
* Remove tools/cross-toolchain/configs/clang/bazel_5.0.0
* Add manual tags and run gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-27 02:48:23 +00:00
kasey
007c776d8a
tool to search db for a key prefix ( #11417 )
...
* tool to query db by a key prefix
* cleanup
* lint and fmt
* db/kv public visibility
We've discussed before that Bazel visibility constraints don't
accomplish much in go, so I'm phasing them out in places where they get
in the way.
* derp
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-26 21:28:02 +00:00
Sammy Rosso
a15e0797e4
Support non english mnemonics for wallet creation ( #11543 )
...
* add option to log rejected gossip message
* add bip39 supported mnemonic languages
* Revert "add option to log rejected gossip message"
This reverts commit 9a3d4486f6 .
* Add mnemonic language flag
* Update go.mod
* Simplify language mapping
* Add test for setBip39Lang
* Update go.mod
* Improve language matching
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Run gazelle + fix maligned struct
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-26 21:04:00 +00:00
int88
1572c530b5
some minor fixes ( #11572 )
...
* some minor fixes
* minor fix
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-26 20:44:24 +00:00
Preston Van Loon
652303522f
bazel: remove --stamp for builds ( #11578 )
2022-10-26 20:13:02 +00:00
Sammy Rosso
39a7988e9e
Add error if chain-config-file used concurrently with network ( #10863 )
...
* Add error if chain-config-file used with network
If the chain-config-file flag is used concurrently with the network
flag then error and exit.
Related to #10822 .
* Add config file name to error message with `fmt`
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Add unit test for hasNetworkFlag
* Add list of network flags to features
* Fix imports
* Run gazelle
* retrigger checks
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-25 10:48:25 +00:00
james-prysm
648ab9f2c2
revert moving validator-exit command ( #11575 )
2022-10-25 03:52:30 +00:00
terencechain
43a0b4bb16
Retrieve proposer existence in cache with correct parameter ( #11567 )
2022-10-24 13:20:41 -05:00
int88
57d7207554
fix typo and log error ( #11565 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-10-23 22:01:44 +00:00
Potuz
b7b5b28c5a
Fix locks in Capella setters ( #11569 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-22 23:10:45 +00:00
terencechain
968dc5d1e8
Beacon api: get duties prune payload id cache ( #11568 )
...
* Beacon api: get duties prune payload id cache
* Fix complains and bad test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-22 22:43:57 +00:00
terencechain
c24016f006
Add validator index with Withdrawal pb ( #11563 )
...
* Add validator index with Withdrawal pb
* Update BUILD.bazel
* Fix test
* Better tests
2022-10-22 20:54:50 +00:00
Nishant Das
661cbc45ae
Vendor Leaky Bucket Implementation ( #11560 )
...
* add changes
* fix tests
* change to minute
* remove dep
* remove
* fix tests
* add test for period
* improve
* linter
* build files
* ci
* make it stricter
* fix tests
* fix
* Update beacon-chain/sync/rate_limiter.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-20 16:40:13 -05:00
Nishant Das
4bd4d6392d
Reduce Block Burst Factor ( #11546 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-20 14:20:47 +00:00
Radosław Kapka
5f4c26875b
Remove ValidatorCapella protobuf ( #11562 )
2022-10-19 17:56:50 +00:00
Radosław Kapka
6aab2b2b8d
/eth/v1/beacon/blinded_blocks/{block_id} API endpoint (#11538 )
...
* proto + stub
* Add execution_optimistic to SSZ response
* implementation
* proto fix
* api middleware
* tests
* more tests
* switch from Errorf to Error
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-19 15:08:30 +00:00
Radosław Kapka
b7a878d011
Resolve remaining native state tasks ( #11561 )
...
* remove ToProto and ToProtoUnsafe wrappers
* TestAppendBeyondIndicesLimit
* change type of genesisValidatorsRoot
* fuzz tests
* check type assertion
2022-10-19 10:37:45 -04:00
Raul Jordan
2ae9f1be9e
Prysm Web UI Release v2.0.2 ( #11559 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2022-10-19 03:11:22 +00:00
Radosław Kapka
98b9c9e6c9
Handle unaggregated attestation event ( #11558 )
2022-10-18 10:34:25 -04:00
james-prysm
df694aad71
prysmctl: validator exit ( #11515 )
...
* moving voluntary exit command to prysmctl
* fixing linting
* fixing imports
* removing unused import:
* refactoring and adding a new unit test
* rolling back some changes
* fixing parameters
* fixing tests
* adding to main prysm ctl
* refactoring how wallet function works and ux to validator exit
* adding interop support
* fixing bazel build
* fixing if statement
* fixing beaconcha.in printout
* fixing web3signer bug, missing signing slot info
* fixing deep source issues
* fixing bazel package visibility for prysmctl
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-17 16:04:19 -05:00
terencechain
e8400a0773
Fix complains and bad test ( #11555 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-17 16:20:26 +00:00
Radosław Kapka
dcba27ffbc
add server name to address ( #11556 )
2022-10-17 10:59:17 -04:00
Radosław Kapka
cafe0bd1f8
Capella beacon state ( #11141 )
...
* fork
* types
* cloners
* getters
* remove CapellaBlind from fork
* hasher
* setters
* spec params, config tests
* generate ssz
* executionPayloadHeaderCapella
* proto state
* BeaconStateCapella SSZ
* saving state
* configfork
* BUILD files
* fix RealPosition
* fix hasher
* SetLatestExecutionPayloadHeaderCapella
* fix error message
* reduce complexity of saveStatesEfficientInternal
* add latestExecutionPayloadHeaderCapella to minimal state
* halway done interface
* remove withdrawal methods
* merge setters
* change signatures for v1 and v2
* fixing errors pt. 1
* paylod_test fixes
* fix everything
* remove unused func
* fix tests
* state_trie_test improvements
* in progress...
* hasher test
* fix configs
* simplify hashing
* Revert "fix configs"
This reverts commit bcae2825fc .
* remove capella from config test
* unify locking
* review
* hashing
* fixes
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-12 11:39:19 -05:00
Potuz
ce7f042974
Add Withdrawal helpers ( #11552 )
...
* Add Withdrawal helpers
* Review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-12 08:44:41 -05:00
int88
974cf51a8c
fix some comment and log error ( #11550 )
...
* fix some comment and log error
* Update testing/endtoend/component_handler_test.go
* Apply suggestions from code review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-11 14:07:47 -04:00
Radosław Kapka
eb49404a75
Expose structs from API Middleware ( #11547 )
2022-10-07 15:45:26 +00:00
Preston Van Loon
6bea17cb54
Update libp2p to support go 1.19 ( #11309 )
...
* Update libp2p to support go 1.19
* gaz
* go mod tidy
* Only update the minimum deps
* go mod tidy
* revert .bazelrc
* Update go-libp2p to v0.22.0 and update import paths (#11440 )
* Fix import paths
* Fix go-libp2p-peerstore import
* Bazel updates
* fix
* revert some comments changes
* revert some comment stuff
* fix dependency issues
* vendor problematic library
* use your brain
* remove
* tests
Co-authored-by: Marco Munizaga <marco@marcopolo.io >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-10-07 15:24:51 +08:00
Nishant Das
de8e50d8b6
Migrate Historical States In Separate Routine ( #11501 )
...
* add changes
* space
* add test
* space
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-05 19:11:03 +00:00
Sammy Rosso
8049060119
Add flag to enable logging on rejected gossip message ( #11524 )
...
* add option to log rejected gossip message
* fix rejectGossipMessage return
* revert test + fix import
* revert all beaconchain/sync/validate_* files
* log object and message if flag is set
* fix failing build
* remove object field
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-05 15:18:08 +00:00
Krasimir Georgiev
c1446a35c5
fix panic when the rpc client is not initialized ( #11528 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Your Name <you@example.com >
2022-10-05 14:02:01 +02:00
james-prysm
f5efde5ccc
Keymanager API: fix fee recipient API and add persistence ( #11540 )
...
* fixing bug with fee recipient api
* fixing unit tests
* clarifying logs
2022-10-04 17:05:46 +00:00
Nishant Das
cdcb289693
Handle New Agent Version For Lodestar ( #11536 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-04 14:39:12 +02:00
Nishant Das
5dca874530
Fix Validator Monitor Registration ( #11537 )
...
* fix it
* gaz
2022-10-04 12:44:57 +02:00
Nishant Das
885dd2e327
Revert "More efficient way of computing skip slot cache key ( #11441 )" ( #11535 )
...
This reverts commit 0f0d480dbc .
2022-10-04 14:13:11 +08:00
terencechain
0f0d480dbc
More efficient way of computing skip slot cache key ( #11441 )
...
* More efficient way of computing skip slot cache key
* Gazelle
* Add defensive check
* Fix test setup
* Disable skip slot cache
* Fix rpc tests for dependent root
2022-10-03 13:53:17 -04:00
terencechain
1696208318
Add CLI flag to define execution engine timout ( #11489 )
...
* Add CLI flag to define execution engine timout
* Rm unused
* Fix import
* Fix lint
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-30 18:05:05 +00:00
terencechain
7f686a7878
Cache proposer slot index for GetProposerDuties ( #11521 )
2022-09-30 19:19:40 +02:00
Potuz
2817f8e8d6
update head should go even without attestations ( #11503 )
...
* update head should go even without attestations
* add unit tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-30 13:29:18 +00:00
Radosław Kapka
db76be2f15
Remove state code owners ( #11519 )
2022-09-30 13:21:06 +00:00
Potuz
ad65c841c4
Add a justified balance getter to forkchoice ( #11513 )
...
* init
* unit test
* DeepSource complains
* gaz
* shutting deepsource down
* change var name and use handler type
* Kasey's name suggestion
* fix stategen
* interface signature
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-30 06:39:07 -03:00
terencechain
7b255f5c9d
Don't mark builder status unhealthy if mev-boost status is non 200 ( #11506 )
...
* Log error for mev boost / relayer status, not return error
* Add ticker to poll relayer status
* Add ticker to poll relayer status
* Update beacon-chain/builder/service.go
* Rm test
* Check nil before calling status
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-29 20:54:24 +00:00
Sammy Rosso
157b1e373c
fix validator loggin timeTillDuty as a negative number ( #11512 )
...
* fix timeTillDuty log shows a negative number
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-29 19:48:43 +00:00
terencechain
e3df25f443
Fix attestations update head error logging ( #11514 )
2022-09-29 12:16:42 -07:00
kasey
805473cb38
Give forkchoice to stategen ( #11439 )
...
* add forkchoice to stategen.New, update everywhere
* conflict_1
* Fix proposer_bellatrix test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-09-28 20:10:27 +00:00
terencechain
a54bb19c82
Set builder get payload timeout to 3s ( #11413 )
2022-09-28 07:55:44 -07:00
terencechain
14908f639e
Remove INTERVALS_PER_SLOT from place holder for test ( #11502 )
...
* Rm INTERVALS_PER_SLOT from place holder
* Comment
2022-09-26 15:19:04 +00:00
Potuz
77fc45304b
Remove protoarray forkchoice ( #11455 )
...
* Remove protoarray forkchoice
* exported errors
* fix spectests
* fix tests
* conflict 1
* Preston's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-26 14:45:21 +00:00
terencechain
722c7fb034
Update consensus layer badge to v1.2.0 ( #11492 )
2022-09-26 00:27:54 +00:00
Potuz
97ef8dde4d
Fix sync tests and update to 1.2.0 ( #11498 )
...
* Fix sync tests and update to 1.2.0
* fix repo sha
2022-09-25 23:48:14 +00:00
terencechain
211c5c2c5c
Beacon api: produce block should skip mev-boost ( #11488 )
...
* Beacon api: produce block should skip mev-boost
* Update comments
* Additional test and comments
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Fix suggestion
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-23 18:45:26 +00:00
Yier
2ea66a8467
Remove unwanted wrapper of GRPC status error ( #11486 )
...
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-23 14:37:30 +00:00
terencechain
7720d98764
Beacon api: propoerly submit blind block ( #11483 )
...
* Beacon api: propoerly submit blind block
* Gazelle
* Fix SubmitBlockSSZ
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-22 20:13:43 +00:00
james-prysm
20e99fd1f9
Improvement to Fee Recipient UX ( #11307 )
...
* updating mock
* adding new internal api
* adding generated code
* converting validator index to pubkey
* adding new API endpoint
* fixing mock related new API
* fixing unit tests
* preventing failure on startup, replacing with warnings
* improving log message
* changing warn log to error log
* fixing error formatting
* improve log on beacon node side on startup
* fixing deepsource issue
* improving logs
* fixing unit tests
* fixing more tests
* adding error check
* adding in new case for fee recipient to avoid conflicts on changing beacon node suggested fee recipient
* adding default fee recipient check for gas limit as well
* adding improved unit tests
* accidently checked in tmp folder
* adding more unit tests
* fixing gas limit unit test
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing comments
* updating proto generated files
* fixing linting and addressign review comments
* fixing unit test
* improve error handling
* accidently added tmp folder
* improving function error returns
* realizing i am wrapping error incorrectly
* fixing unit test
* addressing review comment
* fixing linting
* fixing unit test
* improving ux around enable builder
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-22 11:35:35 -05:00
Nishant Das
61f6b27548
Change Default Timeout To 30 Seconds ( #11487 )
2022-09-22 10:43:53 +00:00
terencechain
e1c1d0f864
Don't return out of routine when update head errors out ( #11470 )
2022-09-20 17:31:59 +00:00
Potuz
7a8d780869
do not return on error during on_tick ( #11463 )
2022-09-19 08:10:11 -03:00
Potuz
588674f2fd
Dont return if proposer boost roots are missing ( #11459 )
...
* Dont return if proposer boost roots are missing
* move spectests to doublylinked tree
* unit test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-17 12:46:11 +00:00
Radosław Kapka
73443208a1
Remove proto state ( #11445 )
...
* Remove native state flag and use native state in spectests
* remove feature from tests
* use e2e config in slasher simulator
* use params.BeaconConfig in testutil
* use correct function
* use minimal config in go_test
* fix TestListValidators
* parameterize sync committee bits and aggregation bits
* Fix TestServer_ListIndexedAttestations_GenesisEpoch
(cherry picked from commit 254ab623dde08ae8886b152facdbbd8889ed79db)
* fix more tests
* fix even more
* moreeee
* aaaand more
* one more fix
* one more
* simplify TestGetAltairDuties_UnknownPubkey
* comment out problematic test
* one more fix
* one more
* aaaand one more
* another
* use fieldparams in HydrateBlindedBeaconBlockBodyBellatrix
* create new package for mainnet tests
* TestServer_GetBellatrixBeaconBlock
* change slashed validator index
* clear cache in reward_test.go
* deprecate flag
* create bazel mainnet target
* move attester mainnet test to mainnet target
* "fix" proposer tests
* use minimal config in TestServer_circuitBreakBuilder
* fix TestProposer_ProposeBlock_OK
* more fixes in validator package
* more fixes
* more fixes
* test code
* move TestProposer_GetBeaconBlock_BellatrixEpoch to minimal
* finally
* remove proposer_bellatrix_mainnet_test.go
* fix TestServer_GetBellatrixBeaconBlock_HappyCase
* fix TestServer_GetBellatrixBeaconBlock_BuilderCase
* Preston needs to fix this!
* Revert "Preston needs to fix this!"
This reverts commit b03d97a16e .
* remove proto state tests
* fix migration tests
* static analysis fix
* review
* remove proto state
* swap state in tests
* fix BUILD file in /proto/testing
* remove metrics test with nil state
2022-09-16 18:17:46 -04:00
Potuz
9c2c665e92
Remove optimistic sync candidate check ( #11453 )
...
* Remove optimistic sync candidate check
Since we know we have merged and the chain has advanced 128 slots,
there's no possible forkchoice Poissoning attack anymore, removing the
check and allowing any block to be imported optimistically.
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-16 16:05:30 +00:00
Radosław Kapka
0f0ab1327e
Deprecate native state flag ( #11268 )
2022-09-15 20:47:51 +02:00
Potuz
a27feb4cb2
Implement optimistic sync spectests ( #11391 )
...
* builder changes
* New valid status
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-15 05:42:20 +00:00
Radosław Kapka
41e95cb274
Release headLock on error ( #11412 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-14 11:44:38 +02:00
terencechain
3b8a3c2276
Remove unused WithTimeout ( #11420 )
2022-09-13 17:18:30 +02:00
terencechain
5a1d260b9a
Update block arrival histogram values ( #11424 )
...
* Update block arrival histogram values
* Add 250 and 750
* Add back 1500 and 2000
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-12 16:58:15 +00:00
terencechain
53627e9709
Metrics: capture reorg distances and depths ( #11435 )
...
* Capture reorg distance and depths
* Use historgrams instead of gauges
* Fix build
* Edit help texts
2022-09-12 15:06:52 +00:00
terencechain
9fefb33cdf
Forkchoice: track highest received root ( #11434 )
2022-09-12 16:29:01 +02:00
terencechain
d860daff75
clean up: godoc comments, redundant castings and more ( #11428 )
...
* clean up: Godoc comments, redundant castings and more
* Fix assertion check
* Update beacon-chain/forkchoice/doubly-linked-tree/forkchoice.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/forkchoice/protoarray/store.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: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-12 14:03:20 +00:00
Potuz
6cf4f3c260
Report voted fractions for a given root ( #11421 )
...
* Report voted fractions for a given root
* unused parameters
* comment update
* change test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-11 19:04:40 +00:00
terencechain
99fbf5d3d8
Cancel context propoerly for validator runner ( #11429 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-09 18:28:20 +00:00
Preston Van Loon
d57a44b973
Update bazel to 5.3.0 (LTS) ( #11427 )
...
* update bazel version to 5.3.0
* Remove duplicated flags for test (inherits from build)
2022-09-09 16:43:15 +00:00
Nishant Das
fbe591c363
Fix Gossipsub Parameter ( #11425 )
2022-09-09 15:36:43 +00:00
Potuz
fc509cc220
Prune during on_tick ( #11387 )
...
* Prune during on_tick
* add unit test
* fix tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-08 14:41:10 +00:00
terencechain
78cbe4dfe1
Fall back to uncached getPaylod if first time outs ( #11404 )
...
* Fall back to uncached getPaylod if first time outs
* Skip only deadline error. Unit test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-08 14:20:32 +00:00
Potuz
436fcb8682
flip defensive pull flag ( #11419 )
2022-09-08 13:42:29 +00:00
Radosław Kapka
b4d2395a38
Tests for builder service ( #11214 )
...
* Tests for builder service
* fix glob
* minor changes to mock
* add comments to mock
* Revert "Auxiliary commit to revert individual files from bc62a140347e3cbd8bd82e99cf5e9deb98b74df0"
This reverts commit c4c1016cb597b9340d1c81ab3816e037a6b97f9e.
* correct comment
* Do not init builder for empty endpoint
* revert merging issues
* better nil checks
* test fix
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 18:29:44 +00:00
Justin Traglia
0cee01ad55
Throw error if marshaling invalid Uint256 ( #11347 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-06 20:07:08 +02:00
terencechain
14a6fe3f01
Validate downloaded state slot matches header slot ( #11396 )
...
* Ensure downloaded state slot matches header slot
* Regression test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 16:21:59 +00:00
Radosław Kapka
4d90afe944
Fixed size arrays in block interfaces and structs ( #11375 )
...
* Fixed size arrays in block fields
* test fix
* fmt
* fix fetcher test
* fix fuzz tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 14:30:16 +00:00
terencechain
b98e9019ce
Rename invalid count to invalid children count ( #11411 )
2022-09-06 14:04:32 +00:00
terencechain
45a637a3b0
Move provided time is later from warning to debug ( #11398 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 13:27:32 +00:00
terencechain
17f3d66885
Log ready for merge every min ( #11410 )
...
* Log ready for merge every min
* Update beacon-chain/execution/check_transition_config.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-06 13:07:48 +00:00
Potuz
29390516b0
fix forkchoice endpoint ( #11403 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 17:57:08 +00:00
Potuz
135c30e912
remove children slice when pruning ( #11402 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 16:44:03 +00:00
Potuz
50f9d2bab8
Better log fee recipient mismatch ( #11395 )
...
* Better log fee recipient mismatch
Logs if the returned payload from the engine does not have the fee
recipient set in the validator.
Also warn the user if he's proposing a block with the burner fee
recipient address.
* fix tests
2022-09-05 14:13:51 +00:00
Potuz
8743e6a688
Harden witholding fix ( #11397 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 02:26:10 +00:00
Potuz
08e6274c14
add forkchoice node timestamp to json response ( #11394 )
2022-09-04 19:52:39 +00:00
kasey
cca9ea6989
move forkchoice init back to node ( #11344 )
...
* move forkchoice init back to node
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-02 13:56:50 -05:00
Mike Neuder
cbc2153664
Wallet Create CLI manager integration ( #11331 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet create CLI Manager migration
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* bazel run //:gazelle -- fix
* rename to ConstructCLIManagerOpts
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-02 14:56:47 +00:00
terencechain
8627fe72e8
Remove activation/exit queue metrics ( #11389 )
...
* Remove activation/exit queue metrics
* Gaz
* Rm unused vars
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 19:11:25 +00:00
Raul Jordan
65bf3d0fa8
Fix Div By 0 in Small Helper ( #11390 )
2022-09-01 18:26:28 +00:00
Raul Jordan
a5da9aedd4
Add in P2P Metrics for Mainnet ( #11386 )
...
* connected peers gauge vec
* build
* add in gossip metric
* clean
2022-09-01 18:00:54 +00:00
Potuz
e1ab034d25
Defensive pulls protoarray ( #11385 )
...
* Defensive pull tips protoarray
* unit test
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 15:05:44 +00:00
Potuz
84bc8f3d64
Fix fillInMissingBlocks ( #11353 )
...
* Fix fillInMissingBlocks
Only check that the chain's parent is in forkchoice, rather than it
being the finalized checkpoint. Forkchoice anyway guarantees that the
chain will be a descendant of the finalized checkpoint.
* ensure root is not zero
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 14:40:32 +00:00
Radosław Kapka
c4deb84012
Simplify BeaconBlockIsNil() ( #11373 )
...
* Simplify `BeaconBlockIsNil()`
* remove unused code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-09-01 03:40:20 +00:00
kasey
488e19e428
less ominous --weak-subjectivity-checkpoint warning ( #11362 )
...
* fix #11361
* change log level to debug
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-01 01:56:56 +00:00
Raul Jordan
bcaae1c440
Performance Metrics for Prysm ( #11377 )
...
* atts performance and blocks
* idiomatic observe
* all attestation related errors
* block metrics
* db metrics
* metrics func
* rem old metrics
* naming
* rem metric
* rem unneeded
* fix
* fix up
* rev
* fix
* rem
2022-09-01 01:26:19 +00:00
terencechain
587ba83aca
Better batch block processing warning ( #11372 )
...
* Better batch block warning
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 00:57:55 +00:00
terencechain
091f16b26c
Don't hard shutdown if mev-boost / relay is not available ( #11380 )
...
* Don't hard shtudown if mev-boost / relay is not available
* Add else
2022-08-31 23:58:27 +00:00
Potuz
fb9626fdd7
Feature flag to disregard deposit contract ( #11370 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 22:35:59 +00:00
terencechain
c638e114db
Add new metrics ( #11374 )
...
* Better batch block warning
* New metrics
* Revert "Better batch block warning"
This reverts commit e21fcfcebe .
* More metrics
* Add activation and exit queues
* Gaz
2022-08-31 18:05:50 -04:00
terencechain
b1e08307ed
Fix time to duty to round slot number ( #11371 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 19:54:44 +00:00
kasey
cac5d0f234
giving commands more clear names per issue #11287 ( #11360 )
...
* giving commands more clear names per issue #11287
* mark the top-level help text for cpt deprecated
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-08-31 13:18:35 -05:00
james-prysm
52d48b328f
Improve Validator Index RPC Error Handling ( #11363 )
...
* adding in nil check for head
* adding changes based on feedback
* Update beacon-chain/rpc/prysm/v1alpha1/validator/server_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-31 16:42:49 +00:00
Nishant Das
9729b2ec77
Remove The Header Time Check ( #11329 )
...
* remove the check
* remove function and tests
* dead code
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 14:54:29 +00:00
terencechain
7aa3776aa6
Log tx count only on payload ( #11368 )
2022-08-31 14:38:44 +02:00
Potuz
760c71ef77
Only update finalized checkpoint in DB if it's newer ( #11356 )
...
* Only update finalized checkpoint in DB if it's newer
Do not save to DB a finalized checkpoint that it's older than the
current one.
* Add a test
* Add more strict condition check
* Revert params.SetupTestConfigCleanupWithLock(t)
* Remove new line
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-08-31 00:16:22 +00:00
james-prysm
6c209db3ca
fixing json unmarshalling ( #11357 )
...
* fixing json unmarshalling
* adding unit test for no conent
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 19:31:23 +00:00
Raul Jordan
0725905797
Informative Errors on Execution Client Connection Issues ( #11359 )
...
* add err auth help
* error working
* add err auth fix
2022-08-30 19:09:42 +00:00
terencechain
166f8a1eb6
Log corerct header value ( #11354 )
...
* Log corerct header value
* gaz
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 16:23:21 +00:00
Radosław Kapka
85896e994e
Explain the purpose of deprecatedBeaconFlags ( #11355 )
2022-08-30 15:47:36 +00:00
Nishant Das
4a00b295ed
Pin Fuzzbuzz to Go 1.18 ( #11350 )
2022-08-30 10:18:23 +02:00
Potuz
d2b39e9697
Defensive pull tips, doubly-linked-tree ( #11175 )
...
* Defensive pull tips, doubly-linked-tree
* feature flag
* gaz
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 00:48:25 +00:00
Shem Leong
97dc86e742
Support passing of headers to all Engine API calls ( #11330 )
...
* Support passing of headers to all Engine API calls
* Update execution headers example
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-29 23:34:29 +00:00
terencechain
cff3b99918
Fix can propose blind block ( #11346 )
2022-08-29 13:30:28 -07:00
terencechain
be9847f23c
Remove unused code ( #11345 )
2022-08-29 18:03:03 +00:00
Håvard Anda Estensen
4796827d22
Replace deprecated linter deadcode with unused ( #11334 )
...
* Replace deprecated linter deadcode with unused
* Ignore unused warnings
* Print filename and line number when linting fails
* Fix path
* Remove unused methods
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-29 12:45:25 -04:00
Preston Van Loon
57b7e0b572
db: Wrap errors in db.fetchAncestor to better identify unmarshalling issues ( #11342 )
...
* db: Wrap errors in db.fetchAncestor to better identify unmarshalling issues. See #11327
* Wrap genesis state fetch, just in case
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-29 16:08:03 +00:00
terencechain
b5039e9bd9
Better chain start log ( #11332 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-29 15:48:23 +00:00
james-prysm
f5d792299f
e2e: updating web3signer version ( #11339 )
...
* updating version
* reverting change to lighthouse sha
2022-08-29 15:29:40 +00:00
Potuz
9ce922304f
Track timestamp in forkchoice ( #11333 )
2022-08-29 14:49:02 +00:00
Nishant Das
3cbb4aace4
Fix IPC Paths For Windows ( #11324 )
...
* return early for windows
* mick's review
2022-08-26 23:05:28 +00:00
terencechain
c94095b609
Accept everything when node is optimistic ( #11320 )
2022-08-26 21:41:59 +00:00
kasey
ae858bbd0a
removing dead code to appease linter ( #11326 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-08-26 16:06:44 +00:00
Radosław Kapka
30cd158ae5
Move forkchoice dump to eth namespace ( #11325 )
...
* protos
* server code
* rename v2 to v1 in endpoint
* middleware
* test fix
* test fix
* oops
* remove duplicated import
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-26 14:54:32 +00:00
Nishant Das
2db22adfe0
Handle Execution Client Failures Better ( #11321 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-26 14:30:13 +00:00
Nishant Das
161a14d256
Update Lighthouse to v3 in our E2E Runner ( #11323 )
...
* update to v3
* fix sha
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-26 13:24:28 +00:00
Håvard Anda Estensen
9dee22f7ab
Pre-allocate slices ( #11317 )
2022-08-26 13:49:50 +02:00
Potuz
52271cf0ba
Report depth and distance on reorgs ( #11315 )
...
* Report depth and distance on reorgs
* rename to CommonAncestor
* change event feed
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:59:08 +00:00
Potuz
e1f56d403c
Restore forkchoice dump endpoint. ( #11312 )
...
* Restore forkchoice dump endpoint.
Only working on doubly-linked-tree.
* unit test
* revert proto changes
* protoarray
* Deepsource
* shut up!
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:37:23 +00:00
terencechain
a2193ee014
Accept attestations when node is optimistic ( #11319 )
...
* Accept attestations when node is optimistic
* Fix tests
* Add regression tests
* Fix tests
* Fix more bad tests
2022-08-25 20:15:07 -03:00
james-prysm
762b3df491
Beacon API: api wrongly marked deprecated ( #11316 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-25 21:02:17 +00:00
terencechain
2b3025828f
ErrorContains dont allow empty string (#11314 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 19:07:39 +00:00
terencechain
436792fe38
Builder: filter header with 0 bid and empty tx root ( #11313 )
...
* Filter header with 0 bid and empty root
* Check nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 18:24:02 +00:00
terencechain
1d07bffe11
Beacon api: fix get blind block ( #11304 )
...
* Beacon api: fix get blind block
* Gaz
* Add back before bellatrix behavior
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-25 17:19:17 +00:00
Preston Van Loon
f086535c8a
Update llvm to 13.0.1 ( #11310 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 15:15:14 +00:00
Han Shen
3a4c599a96
Implement delete gaslimit ( #11290 )
...
* Implement delete gaslimit.
* Minor comment change.
* Reset gaslimit to DefaultConfig's gaslimt instead of 0.
* After gaslimit deletion, use global gaslimit default value instead of values provided in ProposalConfig.
* After deletion, use config default, if that is not available, use global default gaslimit value.
* Use grpc's codes.NotFound instead of http code "404".
* Updated bazel deps (new imports "google.golang.org/grpc/codes" was added for tests).
* Fix "TestServer_RecoverWallet_Derived" test failure.
Previously "params.BeaconConfig()" (thus the default global value
"BLSSecretKeyLength") was overriden by standard_api_test:TestServer_DeleteGasLimit.
Fixed the problem by retoring the origin global default after the test is done.
* Do not change BeaconConfig object, instead change BeaconConfig.DefaultBuilderGasLimit.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-25 14:43:21 +00:00
Nishant Das
1c6cbc574e
Update Geth Version In Prysm ( #11308 )
...
* clean up
* clean up
2022-08-25 13:55:01 +00:00
Potuz
2317375983
Add feature flag to treat all blocks as optimistic at startup ( #11303 )
...
* Add feature flag to treat all blocks as optimistic at startup
* Terence's review
* remove changed empty lines
* Apply suggestions from code review
* Go fmt sorry
* bad comments
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-25 12:40:29 +00:00
terencechain
6354748b12
Update badges ( #11305 )
...
* Update badges
* Update README.md
2022-08-24 22:46:56 +00:00
Nishant Das
e910471784
Add In Duty Logging ( #11301 )
...
* add it in
* use time until
* potuz's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-24 19:50:19 +00:00
Potuz
ab7e97ba63
Fix setNodeAndParentValidated ( #11302 )
...
* Fix setNodeAndParentValidated
* fix tests
2022-08-24 19:30:45 +00:00
Mike Neuder
e99de7726d
Wallet recover CLI Manager migration ( #11278 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-24 16:57:03 +00:00
Justin Traglia
606fdd2299
Return copy of deposits instead of internal pointer ( #11273 )
...
* Return copy of deposits instead of internal pointer
* Update the comment
* Fix linter warning
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-24 15:46:51 +00:00
james-prysm
1eb6025aaa
Beacon API: validator registration encoding bug ( #11299 )
2022-08-24 15:05:43 +00:00
Nishant Das
d431ceee25
Improve Logging When Parsing JWT Secret ( #11300 )
...
* remove all references
* remove warning
2022-08-24 13:16:48 +00:00
james-prysm
4597599196
Code Cleanup: remove forkchoicer from beacon node ( #11294 )
...
* removing forkchoicestore on beacon node
* fixing linting
* Update beacon-chain/node/node.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* fixing if statement
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:47:12 +00:00
james-prysm
0c32eb5c03
Beacon API: skip updating fee recipient if it's the same ( #11296 )
...
* adding in redudant check
* adding unit tests
* fixing linting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:26:43 +00:00
terencechain
4b1cb6fa80
Fork aware beacon API end points ( #11274 )
...
* Make operation RPC fork aware
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-23 17:07:11 +00:00
Nishant Das
9cfb823cc6
Simplify List Attestations RPC Method ( #11292 )
...
* simplify
* fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-23 12:47:16 -04:00
terencechain
cb502ceb8c
Skip updating fee recipient if it's the same ( #11295 )
2022-08-23 10:54:38 -05:00
Roberto Bayardo
8da4d572d9
fix wrapping of nil errors ( #11282 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-22 16:57:43 +00:00
terencechain
1c6fa65f7b
Add back deprecated flags ( #11284 )
...
* Add back deprecated flags
* Add enable-validator-registration as alias
* Clean up
* Add deprecatedEnableLargerGossipHistory
* Rm duplicated gossip batch aggregation
2022-08-22 16:05:15 +00:00
Nishant Das
eaa2566e90
Add Back Fallback Provider Flag ( #11281 )
...
* add it back
* remove all references
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-22 11:20:21 -04:00
Nishant Das
6957f0637f
Bring Down Error To A Debug Log ( #11283 )
2022-08-22 12:00:50 +00:00
Nishant Das
01b1f15bdf
Add Back Resync Routine ( #11280 )
2022-08-21 13:31:40 +00:00
Nishant Das
b787fd877a
Handle Deprecated Flags Correctly ( #11276 )
2022-08-20 04:16:14 +00:00
Nishant Das
2c89ce810d
Bring back old execution flag as an alias ( #11275 )
2022-08-20 03:28:22 +00:00
Potuz
e687fff922
Insert attestations on block ( #11260 )
...
* Insert attestations from blocks to forkchoice
* do not insert twice
* use OnAttestation instead
* Revert "use OnAttestation instead"
This reverts commit 577c37bbeb .
* unit test
* fix test
* Update beacon-chain/blockchain/receive_block_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-19 17:02:17 +00:00
james-prysm
5e2498be7e
Gas_Limit as string ( #11264 )
...
* setting gas limit as string in json and yaml
* adding more tests
* fixing unit test
* fixing string conversion
2022-08-19 11:36:49 -05:00
Potuz
76f958710f
Protoarray deadlocks ( #11271 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:46:12 +00:00
Potuz
1775cf89c6
Call on_tick on every skipped slot for spectests ( #11262 )
...
New spectests ensure that we call on_tick for every slot between the
last tick and the current one. This PR fixes that
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:25:35 +00:00
Potuz
8fecfaee48
DoublyLinkedTree double locks ( #11269 )
...
* DoublyLinkedTree double locks
* fix updateCheckpoints
* add comment
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:06:57 +00:00
terencechain
f089405d2f
Update spec tests to v1.2.0-rc.3 ( #11261 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:46:41 +00:00
Nishant Das
029c81a2e4
Switch Down Libp2p Logging Level By Default ( #11266 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:09:29 +00:00
Nishant Das
56c48b4971
Tag Gosec To Last Stable Version ( #11267 )
2022-08-19 13:00:30 +00:00
Raul Jordan
20ed47a107
Add a Generate Genesis State Command to Prysmctl ( #11259 )
...
* genesis tool
* done with tool
* delete old tool
* no fatal
* fix up
* Update cmd/prysmctl/testnet/generate_genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek feedback
* more feedback
* required
* fix up
* gaz
* radek feedback
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-19 09:26:25 +00:00
terencechain
e30471f1a0
Remove inclusion distance & slots ( #11265 )
2022-08-18 16:31:22 -07:00
terencechain
3b38765a2d
Better re-org log ( #11253 )
...
* Better re-org log
* Dont' return err
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-18 16:53:17 +00:00
Raul Jordan
b60e508c89
Remove Slasher Deprecated Protos ( #11257 )
...
* rem deprecated
* fix slasher
2022-08-18 15:56:05 +00:00
Justin Traglia
a65c670f5e
Use function argument in error message instead of return value ( #11244 )
...
* Do not use return value in error handling
* Revert changes to EpochFromString & SlotFromString
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-18 14:01:24 +00:00
Han Shen
4af7d8230a
Implement "set gaslimit" for KeyManager API ( #11208 )
...
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* Fixed comment string.
* Regenerated key_management proto files.
* Addressed code review comment - explitly set BuildConfig.Enabled to false.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-18 04:49:54 +00:00
Han Shen
27733969f7
Fixed flag usage text typo. ( #11254 )
2022-08-17 23:50:26 +00:00
Raul Jordan
e70fe1c9fd
Support Chain Config File Loading in Genesis State Tool ( #11249 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:44:29 +00:00
Justin Traglia
9b3a834437
Parse slot as uint64 in spectest ( #11252 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-08-17 19:34:43 +00:00
terencechain
d815fa8f21
Remove deprecated eth endpoints ( #11251 )
...
* Remove deprecated eth endpoints
* Add back blockroot
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:20:34 +00:00
Justin Traglia
ac3079f8cd
Add lock around unsafe append in goroutine ( #11247 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-17 19:01:01 +00:00
Raul Jordan
cb8f6423e0
Do Not Push Prysmctl Docker Images to Dockerhub ( #11250 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:15:31 +00:00
terencechain
515e7c959f
Remove deprecated RPC ListBlocks ( #11243 )
...
* Remove deprecated RPC ListBlocks
* Fix test
* Rm mock
* Go imports
* Rm unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:07:28 +00:00
Raul Jordan
82bbfce524
Use GolangCI-Lint for Goimports Checking Instead of Third-Party Image ( #11246 )
2022-08-17 17:15:08 +00:00
terencechain
95430ddb57
Remove deprecated SubmitValidatorRegistration ( #11242 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 16:35:41 +00:00
james-prysm
21b7861d37
Keymanager API: enum lowercase ( #11194 )
2022-08-17 16:11:04 +00:00
Raul Jordan
c1e7afa201
Prysm Web UI Release v2.0.1 ( #11240 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 15:38:18 +00:00
terencechain
dfa400d4a1
Add mainnet merge epoch and ttd ( #11207 )
...
* Add tentative mainnet merge epoch and ttd
* Update minimal
* Update commit
* Update WORKSPACE
* Update spec tests
* Add eip4844 place holders
* Skip lightclient types
* Skip lightclient types
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 15:18:43 +00:00
terencechain
b04c28b30c
Remove disable-attesting-history-db-cache ( #11239 )
2022-08-17 14:23:13 +00:00
Taranpreet26311
ed07359573
Enable Gofmt Linting via Golang-CI Lint to Allow for Generic Code in Prysm ( #11205 )
...
* converting to generic
* enable gofmt linting
* enable gofmt
Co-authored-by: James He <james@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 13:53:46 +00:00
Nishant Das
25d87dd27b
Remove Disable DiscoveryV5 Flag ( #11237 )
...
* remove flag
* go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 12:45:12 +00:00
Nishant Das
a9ccabf6c9
Remove Bolt Mmap Flag ( #11236 )
...
* remove mmap flag
* fix mmap
* fix all build
* gaz
* config
* fix
2022-08-17 12:22:41 +00:00
james-prysm
2377d6d6ea
Register validator beacon api ( #11225 )
...
* adding in beacon API request Object
* fixed proto generation
* fixing protos
* adding new API logic and fixing linting
* adding work in progress unit test for validator registrations
* fixing unit test
* fixing linting
* fixing function name to match interface
* changing emptypb to empty.Empty
* fixing import complaint
* removing unused import
* fixing import
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* adding emptypb.Empty back in
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* adding validator registration API to apimiddleware
* fixing import
* fixing import format
* fixing protos
* fixing goimports
* removing duplicate import
* fixing proto
* fixing error message in test
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-17 11:41:51 +00:00
Raul Jordan
100ca0ebaf
Prysmctl Command to Request Beacon Nodes for Block Ranges Over P2P ( #11035 )
...
* first
* attempt p2p connect send tool
* attempt
* stream registration
* trying to register
* attempt
* workinnnn
* begin
* p2p prysmctl tool
* ignore
* fix
* delete deprecated
* p2p smaller iface surface area
* further p2p refactor
* gaz
* better logging
* process
* all functionality
* fix up
* rhandle
* v2 req
* cmd
* send sub
* v1 handle
* show head slot
* cmd
* cmd lib
* gazelle fix
* bazel
* gaz
* work on the handshake items
* prevent dial to self
* add config awareness
* gaz
* inferring host addrs from p2p
* initialize data mappings
* add own mock
* fix up logic
* gaz
* add img
* gaz
* add images
* builds
* builds
* nishant feedback:
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-17 06:38:57 +00:00
Nishant Das
49ef0ad284
Remove Gossip History Flag ( #11232 )
...
* Remove gossip history flag
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 04:49:51 +00:00
Nishant Das
e9ee6e2c9d
Remove Backup Webhook In the Beacon Node ( #11235 )
...
* remove it
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 04:29:39 +00:00
Han Shen
a3cc26dd2a
Replace deprecated jwt.StandardClaims with jwt.RegisteredClaims. ( #11230 )
...
* Replace deprecated StandardClaims with RegisteredClaims.
* Replace deprecated StandardClaims with RegisteredClaims.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-17 04:10:11 +00:00
Nishant Das
5ad36486b0
Remove Skip BLS Verification Feature ( #11233 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 02:59:13 +00:00
Nishant Das
faa0643b16
Remove Toggle ( #11234 )
2022-08-17 02:40:12 +00:00
Nishant Das
868377318c
Remove Checkpoint Info Flag ( #11231 )
2022-08-17 02:12:12 +00:00
Radosław Kapka
1c180e5088
Protobuf cleanup ( #11096 )
...
* remove v2 from all messages that are not request/responses
* rename StreamBlocksAltair to StreamBlocks
* fix tests
* fix validator module
(cherry picked from commit 7f2263e90e80499a851c2e09605e2ef5dccb0df8)
# Conflicts:
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* fix mocks
* update validator.pb.go
* Revert "rename StreamBlocksAltair to StreamBlocks"
This reverts commit 9c961c4e64 .
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* Revert "Auxiliary commit to revert individual files from a872c9d59dee869da5a9c7236c7ac34fcaf8d54c"
This reverts commit 89f19e4f15006c4a0efe593229abc433491e578e.
* Revert "Auxiliary commit to revert individual files from 9acbf7b0160626dae0d39c58fa0d8a3e48c203e0"
This reverts commit 398ecc9cef460c27e7fc92efe4df3fc9d3dbe566.
* update mocks
* fix build errors
* patch up
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 01:35:27 +00:00
Potuz
b4fb8304fe
Revert --enable-vectorized-htr ( #11229 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-16 20:24:08 +00:00
Raul Jordan
1062f5fe4d
Fix Proto Generation Scripts and Regen Protos With V3 Bindings ( #11227 )
...
* proto gen fix
* regen protos and ssz bindings
* regen
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:52:24 +00:00
Radosław Kapka
01614e7bfb
Add execution_optimistic to getBlockV2 ( #11226 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:31:59 +00:00
terencechain
8d3f474bfa
Misc builder fixes ( #11228 )
...
* Fix a few bugs
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:10:40 +00:00
Radosław Kapka
ccfc09151f
Add expected waiting time to pending validator log ( #11213 )
...
* Add expected waiting time to pending validator log
* fix TestValidator_HandleKeyReload
* test fix
* fix imports
* test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 18:05:56 +00:00
Potuz
85ad61ea83
Check for SIGILL before using gohashtree ( #11224 )
...
* Check for SIGILL before using gohashtree
* gohashtree dep
* check error
* move to config startup
* Kasey's advice
* review #1
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 17:43:59 +00:00
terencechain
2728b83f6a
Remove Execution Client Fallback and Make Providing an Execution Client Required ( #10921 )
...
* Starting
* Done
* Fix more tests
* Fix test
* Fix test
* fix up
* building
* requirement
* gaz
* builds
* rem deadcode
* fix
* fix up
* removed checked method
* Update service_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-16 17:22:34 +00:00
james-prysm
e0eee87bf4
Improve beacon chain coverage Part 1 ( #11080 )
...
* first node test
* adding in configuration flags for code coverage
* adding line to remove file on unit test
* adding new test for compressed field trie but is currently broken
* changing limit on trie
* adding new trie length coverage
* adding in test for empty copy of trie
* adding more trie tests
* adding new field trie
* adding more field trie tests
* adding clarity to chunking equation
* fixing linting
* clarifying function for limit
* updating native state settings to improve ease of future unit tests
* improving unit test
* fixing unit tests
* adding more tests and fixing linting
* adding more coverage and removing unused file
* increasing node coverage
* adding new test for checking config for booleans
* fixing db test
* fixing linting
* adding signing root test
* fixing linting
* removing accidently created beacondata
* switching not non native state
* reverting back to proto use for spec test
* reverting back to proto for some tests
* turning off native state on some tests
* switching more to proto state
* rolling back disablenativestate
* switching to native state in the state-native package for tests
* fixing linting
* fixing deepsource complaint
* fixing some tests to native state and removing some unused flag checks
* convert to native state
* fixing linting
* issues are being triggered by deleting the db this way so reverting change in hopes of changing this
* rolling back testing util
* rolling back some tests from native state
* rolling back db deletion
* test switching native state off after test runs
* fixing hasher test
* fixing altair and bellatrix hashers for native state
* Update beacon-chain/node/node_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/auth_token_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing imports
* adding altair proof test
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-16 16:19:01 +00:00
Potuz
5c84192606
Revert --enable-forkchoice-doubly-linked-tree ( #11212 )
...
* Revert --enable-forkchoice-doubly-linked-tree
* fix tests
* fix parallell test
* fix noviablehead tests
* Terence's suggestion
2022-08-16 10:39:57 -03:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-16 12:20:13 +00:00
Potuz
155d60dd60
Remove forkchoice debug endpoint ( #11105 )
...
* Remove forkchoice debug endpoint
* change protos
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-15 21:04:39 +00:00
james-prysm
63b7376b75
Prysm V3: update signing type ( #11099 )
...
* updating proto name
* updating generated files
* updating names on block v2 and v3 signing types
* fixing import format
* fixing unit tests
* fixing unit test
* fixing more conflicts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 18:22:14 +00:00
terencechain
8de5512908
Builder: check payload and header HTR root match ( #11223 )
...
* Check roots compliance
* Update BUILD.bazel
* Fix test
2022-08-15 18:03:38 +00:00
Nishant Das
65b5c430d1
Fixes API To Only Return Canonical Blocks ( #11221 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 15:48:44 +00:00
terencechain
afe9fa71f0
Add circuit breaker for relayer/builder ( #11215 )
...
* Add circuit breaker for relayer
* Update mainnet_config.go
* Renamings
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 15:28:34 +00:00
terencechain
12b3a0048b
Add warning about block delay when outsourcing block cosntruction ( #11222 )
...
* Add warning about block delay when outsourcing block constr
* Update beacon-chain/builder/service.go
* Update beacon-chain/builder/service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-15 15:04:11 +00:00
terencechain
aa73250373
Health check: optimistic status ( #11204 )
...
* Health check: optimistic status
* Tests
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/rpc/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/rpc/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Use correct import
* Update BUILD.bazel
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 14:45:50 +00:00
Nishant Das
9565ee12d7
Batch Reconstruction Of Bellatrix Blocks ( #11210 )
...
* batch reconstruction
* add test
* clean up
* terence's comment
* terence's other comment
* try out in e2e
* fix
* fix some more
* fix blinded blocks
* fix it
* remove dev flag
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-15 10:16:20 -04:00
sragss
7d7e6fcd62
deprecate eth http api endpoints; update protos ( #10946 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-14 23:29:56 +00:00
Nishant Das
e04a8bcfbd
Remove Deprecated Feature Flags ( #11125 )
...
* remove deprecated feature flags
* remove unused flags
* remove other deprecated flags
* remove native state flag
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-14 12:47:53 +00:00
Potuz
186fbc5f99
release checkpoints lock from store.head ( #11217 )
2022-08-13 07:19:52 -07:00
Potuz
c79ec31c17
Release checkpoints lock on on_tick ( #11216 )
...
There is a double lock race condition when NewSlot acquires the
checkpoints lock first and the nodes lock later, while calls to Head()
acquire the nodeslock first and the checkpoints lock later.
This PR releases the checkpoints lock in NewSlot, to reaquire it later
in updateUnrealizedCheckpoints after getting the nodes lock
2022-08-13 09:30:08 -03:00
Potuz
c64cf05879
update gohashtree ( #11206 )
...
* update gohashtree
* go mod
2022-08-12 12:25:43 +00:00
james-prysm
f7a298ae8f
Prysm V3: delete old unused APIs ( #11086 )
...
* initial commit
* removing old unusued functions and tests
* updating proto generated files
* fixing unit tests
* fixing linting
* fixing file format
* fixing formatting
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-12 09:48:38 +00:00
Siyuan Han
f3997647ac
Fix typos ( #11209 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-12 11:27:24 +02:00
terencechain
9c6efe4abd
Don't insert attestations to forkchoice store ( #11201 )
2022-08-11 19:35:37 -07:00
Leo Lara
9aaa42156b
Add cross compilation for OSX ARM64 (Apple Silicon) ( #10981 )
...
* Upgrade Grail Bazel toolchain to latest release v0.7.2
This should allow Prysm to compile on Ubuntu 21.10 and 22.04
* Changes necessary in .bazelrc for new version of com_grail_bazel_toolchain
* Add cross compilation for OSX ARM64 (Apple Silicon)
* Update cross-toolchain README to include osx_arm64
* Add double quotes to shell code
* Rename install_clang_cross10.sh -> install_clang_cross.sh
* Update with prysmatic labs uploaded assets
* Touch README to trigger CI
* Revert "Touch README to trigger CI"
This reverts commit 826ac8a6d8 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-08-11 21:40:24 +00:00
terencechain
d72e42bbb8
Rename web3 provider flag to execution endpoint ( #11133 )
...
* Rename web3 provider flag to execution endpoint
* Fix test
* Add aliase and update default port
* Rm alias
2022-08-11 20:39:55 +00:00
kasey
6b42a0a3a1
decreasing stategen interface surface area ( #11132 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 20:12:05 +00:00
james-prysm
f8ff36f534
Builder API Error Log Simplification ( #11199 )
...
* adding in unit tests and updated error messaging
* returning errors correctly
* Update api/client/builder/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* updating based on comments
* fixing unit tests
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 19:49:16 +00:00
terencechain
bd9776f510
Remove disable sync flag ( #11120 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 19:27:53 +00:00
Radosław Kapka
252086a0b2
Issue validator warning when beacon node does not use builder ( #11203 )
...
* Issue validator warning when beacon node does not use builder
* typo
* improve log and fix test
* gazelle
2022-08-11 15:05:08 -04:00
terencechain
6dc38ba3a9
Make payload ID key reorg resistant ( #11186 )
...
* Validate cached payload before propose
* Return payload
* Fork resistent key
* Fix tests
* Add comments
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 14:55:26 +00:00
terencechain
93ebba6dca
Remove duty countdown flag ( #11121 )
2022-08-11 14:33:30 +00:00
terencechain
d08aa6b23f
Remove deprecated block RPC ( #11106 )
...
* Remove deprecated block RPC
* Sync and fix test
* Update BUILD.bazel
* Fix e2e
* Fix e2e
2022-08-11 14:07:52 +00:00
terencechain
b0f1ea0451
Remove head sync capability ( #10787 )
2022-08-11 01:05:08 +00:00
Radosław Kapka
0f19beb105
Change proposer cache overwrite logic ( #11191 )
...
* Change proposer cache overwrite logic
* improve comment
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* review
* do not hardcode
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-10 22:49:35 +00:00
Radosław Kapka
5c580d4a1c
Replace version.BellatrixBlind with b.isBlinded ( #11159 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-11 00:00:10 +02:00
terencechain
d35006b0a3
Validate builder header ( #11195 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-10 18:31:37 +00:00
Radosław Kapka
f96b47bcc7
Typo fix ( #11197 )
2022-08-10 12:48:12 -04:00
terencechain
1117118435
Add highest slot and blocks received last epoch tracking ( #11146 )
...
* Add highest slot and blocks received last epoch tracking
* Comments
* Potuz feedback
* Fix tesT
* Potuz feedback, use clock time
* Raul's feedback
* Raul's feedback
* Use field params
* Fix minimal value
* Fix constant
* Fix constant
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-10 15:58:52 +00:00
Radosław Kapka
c2e4ecdfb5
Rename statefetcher methods ( #11196 )
2022-08-10 13:24:56 +00:00
terencechain
9b4d22c48c
Remove unused ctxs ( #11192 )
...
* Remove unused ctxs
* Check ctx errors
2022-08-09 16:43:29 +00:00
Nishant Das
7d5eac7458
Fix Fuzzbuzz Builds ( #11190 )
2022-08-09 11:09:53 +00:00
Preston Van Loon
ed1116e578
Logging: strip new lines and other control characters ( #11185 )
...
* Logging: strip new lines and other control characters
* Use strings.Map and only sanitize the field value
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-08 18:12:12 +00:00
Han Shen
760d2fcfbc
This PR is for issue #11155 "Keymanager APIs: gas limit api" ( #11156 )
...
* This PR is for issue #11155 "Keymanager APIs: get_limit api".
This PR implements the first task "get gas limit for the validator key".
* Removed useless import alias.
* Added regenerated key_management.pb.go/pb.gw.go files as well as endpoint_factory.go changes.
* Address James's comments:
1. api path component should be "gas_limit" instead of "gaslimit".
2. ran curl test like:
- go build -o tmp/validator
- ./tmp/validator --web --validators-external-signer-url=http://localhost:9000/
- curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.C-BuVfWhKpr9elB05GTJdEEx_8AzkImxzXL03IqcHR8" 127.0.0.1:7500/eth/v1/validator/0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5/gas_limit
- {"data":{"pubkey":"0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5","gas_limit":"30000000"}}
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-08 17:52:18 +00:00
Raul Jordan
c1f2c36704
Respond With Empty Payloads Pre-Merge ( #11184 )
...
* regression test
* build
* nil check
* fix test
* gazelle
* lint
2022-08-08 13:04:09 -04:00
james-prysm
bd3dfb27f3
BugFix: cli stringSlice bug ( #11166 )
...
* fixing stringslice issue and adding one more filter
* fixing linting and improving function based on feedback
* rolling back generic function to check ci
* adding function back in
* testing printing error
* reverting change
* Added gofmt detail flag
* temporary change
* Another flag added
* Revert changes
* Modifed entrypoint
* Another change
* Revert
* Change go image
* Added -e flag
* Switched to alpine image
* Switched go to strech
* Fix typo
* Yet another image added
* Added go alpine
* rolling back generic
* reverting version
* Update go.sum
reverting
* Update go.mod
reverting
* Update Dockerfile
rolling back
* Update entrypoint.sh
rolling back
* Update go.yml
reverting changes
* fixing flag for config
* reverting changes and moving change to another PR
* Update validator/node/node.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* updating based on review
* Update container/slice/slice.go
Co-authored-by: Taranpreet26311 <taran@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-08 16:04:34 +00:00
terencechain
4e225fc667
Use correct fork and genesis root to verify bid ( #11176 )
2022-08-05 18:55:55 +00:00
Nishant Das
9261da7fb1
Update E2E ( #11140 )
...
* save progress
* tidy
* Update go.yml
* make CI happy
* gosec
* revert back
* Update go.yml
* change go version
* remove fixed test case
* fix ci
* fix updates
* fix up
* fix race tests
* fix bad mock
* lock it
* fix it
* fix e2e builds
* use gotags
* Revert "use gotags"
This reverts commit 808863f427 .
* Revert "fix e2e builds"
This reverts commit eb351e7d31 .
* Revert "fix it"
This reverts commit 9e99dac94f .
* Revert "lock it"
This reverts commit 1a3c60ad41 .
* different approach
* better
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-05 13:01:47 +00:00
Vie
ea93a68818
improve log for public key not found ( #11174 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-08-05 11:39:47 +00:00
Preston Van Loon
9d375969d1
Enforce log.WithError(err) static analysis and fix all violations ( #11163 )
...
* Use log.WithError static analysis from #11143 and fix all violations
* Fix another log violation after pulling from develop
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* @potuz feedback
* Copy paste fail
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-05 10:52:02 +00:00
David Theodore
1323912625
Node by root mutex fix ( #11172 )
2022-08-04 19:40:25 -07:00
terencechain
c05c18787e
Improve terminal difficulty has not been reached yet logging ( #11171 )
...
* Improve terminal difficulty has not been reached yet logging
* Update beacon-chain/execution/check_transition_config.go
Co-authored-by: mick <103775631+symbolpunk@users.noreply.github.com >
Co-authored-by: mick <103775631+symbolpunk@users.noreply.github.com >
2022-08-04 16:51:42 +00:00
james-prysm
0ed739ac5f
Validator Client: auth-token path log ( #11170 )
2022-08-04 15:59:36 +00:00
Nishant Das
82ef9f1e48
Bring Back Mplex ( #11169 )
...
* bring back
* fix mod
2022-08-04 15:04:51 +00:00
Nishant Das
e169ce9107
Fix Goodbye Codes In Prysm ( #11168 )
...
* fix goodbye codes
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-04 14:11:45 +00:00
Potuz
cef95dd5b2
Revert --experimental-disable-boundary-checks ( #11160 )
...
* Revert --experimental-disable-boundary-checks
* add deprecation
* gaz
* spectests
* spectests fix
* fix previous justified checkpoint
* copy previous jcp
* Revert "copy previous jcp"
This reverts commit 6e2b865c23 .
* update previous jcp on on_tick
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-04 13:26:41 +00:00
terencechain
a82325615b
Can recover from missing state summary in DB ( #11167 )
...
* Can recover from missing state summary in DB
* Tests
* fix tests
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-04 13:01:07 +00:00
Mike Neuder
8aa6057b60
Wallet edit CLI Manager migration ( #11136 )
...
* Wallet edit CLI Manager migration
* TODO for code deduplication
* s/walletEdit/remoteWalletEdit/g
* s/walletEdit/remoteWalletEdit/g
* remove unused struct field
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-03 19:44:37 +00:00
terencechain
d4ab08050f
Clean up: fix typos ( #11165 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 18:47:30 +00:00
Preston Van Loon
0c3df40b1f
Remove unused proto import ( #11164 )
...
* Remove unused proto import
* Update generated go files
2022-08-03 18:26:20 +00:00
Potuz
2349899658
Wrap missing state for checkpoint error ( #11162 )
...
* Wrap missing state for checkpoint error
* terence's review
2022-08-03 16:49:11 +00:00
Potuz
19e4cd30cf
Forkchoice: expose if no tip is viable ( #11153 )
...
* Forkchoice: expose if no tip is viable
This PR changes the behavior on when the node is considered optimistic.
A call to `blockchain.IsOptimistic()` relies solely on forkchoice, if
all tips are invalid, then it's optimistic. If the current headroot is
not in forkchoice then it's optimistic.
A call to `blockchain.IsOptimisticForRoot()` will return true if the
requested root is headroot and it's not found in forkchoice
* update comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 13:59:03 +00:00
Radosław Kapka
7f4c694bb3
Native Blocks Ep. 3 - Remove old code ( #11158 )
...
* Native Blocks Ep. 3 - Remove old code
* rename back package
* fix errors
2022-08-03 13:33:05 +00:00
terencechain
19bc691cef
Update lighthouse prater bootnodes ( #11152 )
2022-08-02 22:04:00 +00:00
Potuz
a5cab4e9c8
Add unit test for reboot behavior ( #11151 )
...
* Add unit test for reboot behavior
* fix conflicts
2022-08-02 17:23:27 +00:00
Radosław Kapka
879e310332
Native Blocks Ep. 2 - Switch usages to new package ( #10885 )
...
* panic in SizeSSZ
* moving slowly
* adapt old code to new interfaces
* return interfaces from factory functions
* replace the rest of WrappedSignedBeaconBlock
* WrappedBeaconBlock
* WrappedBeaconBlockBody
* miscellaneous
* Test_BeaconBlockIsNil
* replace usages of BeaconBlockIsNil
* replace usages of mutator
* fix all build errors
* fix some more issues
* mutator changes
* relax assertions when initializing
* revert changes in object_mapping.go
* allow calling Proto on nil
* Revert "allow calling Proto on nil"
This reverts commit ecc84e4553 .
* modify Copy and Proto methods
* remove unused var
* fix block batch tests
* correct BUILD file
* Error when initializing nil objects
* one more error fix
* add missing comma
* rename alias to blocktest
* add logging
* error when SignedBeaconBlock is nil
* fix last test
* import fix
* broken
* working
* test fixes
* reduce complexity of processPendingBlocks
* simplified
2022-08-02 15:30:46 +00:00
Potuz
4b46dead2f
only viable head is invalid ( #11117 )
...
* failing onBlock syncing
* passing merge check
* failing signature verification
* still failing block signature
* mock full bellatrix blocks
* working unit test
* return error from FCU if head fails to update
* move bellatrix block generator
* remove bellatrix signature function
* Add liveness unit tests
* revert removal of sync_aggregate.go
* gaz
* Terence's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* go fmt
* Nishant's suggestion
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Fix build
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-02 11:55:05 -03:00
james-prysm
c1f89cc4c8
fixing log parsing of public validator key ( #11142 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-01 17:08:09 +00:00
Nishant Das
881b5c8adb
Make Batch Gossip Aggregation The Default ( #11144 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-01 16:46:24 +00:00
Preston Van Loon
d17826fb9d
Static Analyzer: require log.WithError instead of log.Errorf("bad: %v", err) ( #11143 )
...
* Add analysis template with failing test
* Works for the most common use case
* Progress on tool and more test cases
* Improvements
* handle nil
* works for the most part
* Fix some TODOs in the tool
* Fix some TODOs in the tool
2022-08-01 16:08:01 +00:00
terencechain
699bfdfdb4
Rename pow to execution ( #11135 )
...
* Rename pow to execution
* Fix complain
* Fix complain
2022-08-01 14:43:47 +00:00
terencechain
758d28678c
Don't create payload with same timestamp as terminal block ( #11129 )
2022-07-31 17:17:55 +00:00
terencechain
616cfd3390
Add flag for validator gas limit catch-all ( #11134 )
...
* Add flag for validator gas limit catch-all
* Update flags.go
2022-07-29 17:20:56 -05:00
terencechain
5005fbfe71
Validate builder signature for Bid ( #11124 )
...
* Validate builder signature for Bid
* Few renamings
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-29 05:16:18 +00:00
terencechain
015cf5ed92
Update teku sepolia bootnode ( #11131 )
...
* Update teku sepolia bootnode
* Update teku sepolia bootnode
2022-07-29 12:56:16 +08:00
Potuz
801d5eabe5
Deal with nil LVH ( #11127 )
...
* Deal with nil LVH
After https://github.com/ethereum/execution-apis/pull/254 the EL may
return `nil` for LVH. Our current implementation would treat this as a
zero hash and thus mark all blocks since the merge block as INVALID
* Apply suggestions from Terence
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-28 16:46:50 +00:00
Radosław Kapka
eb066da5c2
Capella changes to protobufs ( #11128 )
2022-07-28 16:19:36 +00:00
terencechain
44ae300b04
Use the correct withdrawal ( #11123 )
...
* Use the correct withdrawal
* Move withdrawal to engine.proto
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-28 13:56:30 +00:00
Nishant Das
588021f75b
Penalize Bad Payloads Properly ( #11126 )
...
* penalize peers better
* fix it
* fix test
2022-07-28 21:30:47 +08:00
Preston Van Loon
78c55019e6
Do not print stack traces with log.WithError(err)... ( #11116 )
...
* Add a copy of github.com/x-cray/logrus-prefixed-formatter with fixes for our static analysis
* gazelle and add failing test
* fix it
* fix link
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-27 17:20:54 +00:00
Nishant Das
1601972625
Make Peer Scorer The Default ( #11115 )
...
* make it the default
* deprecate this
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-27 17:01:13 +00:00
Radosław Kapka
e5ab259ee1
Capella changes to protobufs ( #11119 )
...
* manual proto changes
* generated files
* missed comment
2022-07-27 18:39:15 +02:00
Raul Jordan
9e74c3d641
Better Log In Case Contract Code Not Found At Address ( #11118 )
2022-07-27 15:22:16 +00:00
terencechain
59dcea81c2
Clean up push proposer setting method ( #11091 )
...
* Clean up push proposer setting method
* Update validator_test.go
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-26 16:57:23 +00:00
terencechain
9149dc2aae
Run ./hack/update-go-pbs.sh ( #11107 )
2022-07-26 16:45:16 +00:00
Nishant Das
a7c9c76b18
Fix Failures With Prysm Starting Up ( #11103 )
2022-07-26 13:54:49 +00:00
Leo Lara
5a4edf897f
Initialise slasher service using New in slasher test to avoid panics ( #11046 )
...
* Initialise slasher service using New in slasher test to avoid panics
* Handle unhanlded error
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-07-26 12:06:05 +00:00
Nishant Das
2d6b157eea
Disable Fuzz Targets ( #11060 )
...
* add changes
* fix fuzzer again
* is fixed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-26 16:19:30 +08:00
Denys Yaroshenko
32745b5484
Do not send empty block header to slasher in validation ( #11071 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-25 21:03:48 +00:00
terencechain
bfdaf2ec5a
Add feature flags to testnet default ( #11098 )
2022-07-25 19:22:10 +00:00
Raul Jordan
39c343bcab
Enable Only Saving Blinded Beacon Blocks for Prater ( #11097 )
2022-07-25 17:44:30 +00:00
Potuz
de1ecf2d60
non-canonical IsOptimistic check ( #11088 )
...
When requesting with IsOptimistic for a root which is non-canonical and
historic, we should check if it is canonical before returning false.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-25 17:05:32 +00:00
Potuz
7aee67af90
Withdrawals: containers and process BLS to ETH1 changes ( #11090 )
...
* add proto for withdrawal containers
* process BLSToExecutionChange
* unit tests
* go fmt
* gaz
* unused error
* Fix import error
* Radek's review
* failed test
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-25 14:10:18 +00:00
terencechain
9830ce43d6
Set invalid roots for bad block ( #10982 )
...
* Set invalid roots for bad block
* Update for fcu
* Update for fcu
* Set bad blocks in subscriber
* Update process_block_test.go
* Rename
2022-07-25 13:45:03 +00:00
Raul Jordan
63a8690140
Use More Granular Metrics for P2P Blocks By Range Latency Histogram ( #11085 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-22 18:08:21 +00:00
james-prysm
7978a0269b
initial commit ( #11084 )
2022-07-22 13:10:19 -04:00
nixorokish
021df67fdc
[README] Add GitPOAP Badge to Display Number of Minted GitPOAPs for Contributors ( #11081 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-22 15:21:27 +00:00
terencechain
f20e6351f5
Add prater bellatrix fork epoch and ttd ( #11072 )
...
* Add prater bellatrix fork epoch and ttd
* Update workspace with tar and fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-22 14:16:35 +00:00
Potuz
a2e834a683
Fix optimistic sync status during init sync ( #11074 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-07-21 17:59:51 +02:00
Preston Van Loon
da25624b1d
Validator gRPC: Add deprecated endpoint to prevent breaking change from v2.1.3 ( #11078 )
...
* Add a deprecated gRPC endpoint to prevent breaking changes from prior release
* Fix validator build, tests still fail
* Fix validator tests
* Fix validator tests
* Fix validator tests
* Update mocks and uncomment the endtoend fee recipient check. Also
updates proto generated files.
* Remove unrelated changes
* Remove unrelated changes
* Stop yelling
* Finish renaming
2022-07-20 11:08:13 -05:00
Radosław Kapka
1a5dd879c5
Change Unable to cache headers... log level to warning ( #10956 )
...
* Change `Unable to cache headers...` log level to warning
* better solution
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-20 13:56:25 +00:00
james-prysm
65a9ede2d3
Validator-Registration: E2E current release fix and better error handling ( #11075 )
...
* initial commit
* removing generated auth-token
* addressing feedback
* removing mev from message
* removing unneeded limitation
2022-07-20 09:15:20 -04:00
Potuz
4b083c2ca9
Fix IsExecutionEnabled for blinded blocks ( #11076 )
...
* Fix IsExecutionEnabled for blinded blocks
The TransactionsRoot of a blinded block may be non-zero, anyway we do
not insert the header in the state until IsExecutionEnabled is true.
This last check was failing on blinded blocks because it was actively
checking that the root should be zero, when it needn't be.
Superseeds #11068
* fix test
* test case
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-19 20:45:45 +00:00
terencechain
82ae4caca8
Add Goerli as an alias to Prater ( #11065 )
...
* Add Goerli as an alias to Parter
* Revert "Add Goerli as an alias to Parter"
This reverts commit 47311ce8b0 .
* Preston's feedback
2022-07-19 20:00:16 +00:00
james-prysm
e770f0fe1f
Web3signer: type cleanup ( #11062 )
...
* switching signing root type to hexutil.byte
* more signing root changes
* more conversions for types
* adding bitfield parsing
* fixing linting
* fixing bitfield parsing
2022-07-19 14:05:49 +00:00
james-prysm
30b8fba2ac
Validator Registration- proposer settings renaming ( #11057 )
...
* fixing ux on propertynaming, introducing placeholder property
* reverting some refactors
* Update debug.go
* Update debug.go
* rolling back change on file
* adding new unit tests and renaming flags
* renaming variable
2022-07-19 08:38:33 -05:00
Radosław Kapka
5d94fd48ca
Revert "Testutil refactor attestations ( #10952 )" ( #11073 )
2022-07-19 14:41:15 +02:00
Potuz
176d763091
Allow pcli to pretty print blinded blocks ( #11067 )
2022-07-18 21:52:58 -03:00
terencechain
97dc9ebbc8
Reset proposer root if the root is getting removed in store ( #11053 )
...
* Reset proposer root if the root is getting removed in store
* Potuz feedback
* Fix root
* unit test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-07-18 15:09:01 +00:00
terencechain
6a74dcf35b
Misc improvements to interface with builder ( #11059 )
...
* Misc improvements to builder
* James feedback
2022-07-17 23:43:16 -07:00
james-prysm
a775798d89
Web3signer: Support json content type with optional metadata ( #11058 )
...
* initial commit
* wanting to trigger ci
2022-07-15 11:01:54 -05:00
james-prysm
e2442bb0a6
Web3signer: support json response signature ( #11055 )
...
* initial commit
* initial commit
* fixing linting
2022-07-14 15:54:44 -05:00
james-prysm
2669006694
Web3Signer: Validator Registration ( #10964 )
...
* initial commit
* adjusting logic to match web3signer specifications
* making Epoch mandatory
* fixing unit test
* rolling back some changes on slots
* fixing unit tests
* testing enable validator registration
* adding validator registration to configs
* fixing prefix
* fixing shasum
* rolling back e2e validator registration until fully supported
* updating web3signer version
* changing types based on feedback
2022-07-14 15:04:03 -05:00
Preston Van Loon
5722a5793c
Tracing: properly overwrite context so that spans can be correctly attributed ( #11012 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-14 17:00:33 +00:00
james-prysm
96aba590b5
Web3Signer Flag support List in YML config ( #11041 )
...
* initial commit
* fixing linting
* fixing linting
* fixing deepsource
* changing visibility of validator flags
* updating package information
* fixing typo
* fixing another typo
* testing bazel config
* fixing linting
* fixing build
* switching flag to stringslice and adding unit tests
* fixing bazel
* rolling back bazel
* migrating unit test into validator flags
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-14 16:34:59 +00:00
Luca G.F
2162ffb05f
Fix data race in monitoring test ( #11032 )
...
Signed-off-by: Luca Georges Francois <luca.georges-francois@epitech.eu >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-14 16:04:12 +00:00
Nishant Das
d41805a39c
Fuzz Remaining Engine Objects ( #11049 )
...
* add new fuzz tests
* add fixes
* remove test
* add more checks
* remove comment
2022-07-14 11:33:32 -04:00
terencechain
819632dfc5
Remove builder status check for block proposal ( #11052 )
2022-07-13 19:10:08 +00:00
Raul Jordan
10fffa6e7c
[Feature] - Store Only Blinded Beacon Blocks Post-Merge ( #11010 )
...
* add in flags
* add sync and db items
* bring over all other changes
* enable on
* use feature flag
* powchain
* builds
* fix up tests
* pass iface
* gaz
* enable bellatrix blind in unmarshal only behind flag
* poolside
* pass rpc tests
* rebuilds
* naming
* cleaner func
* check needs resync
* idiomatic
* gaz
* rem
* build
* nicer
* build
* cleaner
* surface error
* wrapping
* unmarshal logs
* fix up
* cleaner
* log
* builds
* Update beacon-chain/blockchain/execution_engine.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* terence feedback
* test added for resync
* nil check
* fmt
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-07-13 17:18:30 +00:00
james-prysm
5cda86bb93
Web3Signer: log for ignored wallet password flag ( #11018 )
...
* intial commit
* changing log message
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-13 16:42:08 +00:00
Potuz
f2dcc9a570
more pruning unit tests ( #11034 )
...
* unit tests
* Sort the slice before compare
* Gazelle
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-13 16:23:29 +00:00
terencechain
63354b5bb7
Don't log unless there's payload attribute ( #11050 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-13 15:56:06 +00:00
terencechain
e48f0aef41
Remove IsMergeTransitionBlockUsingPreStatePayloadHeader ( #11036 )
...
* Remove IsMergeTransitionBlockUsingPreStatePayloadHeader
* Conflicts
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-07-13 15:29:41 +00:00
terencechain
ab1defc5de
Improve error verbosity when payload_id is nil ( #11042 )
...
* Improve error verbosity with payload ID is nil
* Conflict
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-13 12:49:40 +00:00
Nishant Das
b0e15f3c8f
Fix FuzzForkChoiceResponse Crash ( #11043 )
2022-07-13 09:47:14 +00:00
Raul Jordan
e01a898264
Execution Payload / Header Interface Wrappers ( #11025 )
...
* exec payload iface
* begin using iface
* use iface more
* build beacon
* builds
* txs field
* fix
* merge test
* pass
* test
* refactor
* fix up builder case
* gaz
* comments
* el test
* build
* no mask
* patch up
* exec wrap
* Terence feedback
* builds
* potuz suggestion
* exec data error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-13 01:49:38 +00:00
terencechain
7c30533870
Log error string instead of data ( #11038 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-12 22:40:10 +00:00
Preston Van Loon
7654ffdcfc
e2e: fix scenario test suite ( #11039 )
2022-07-12 22:31:37 +00:00
Preston Van Loon
d6031ac386
Add test_suites for better CI runs ( #11037 )
2022-07-12 16:42:44 -05:00
int88
f7d3b5c510
fix some comments ( #11017 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-07-12 19:06:38 +00:00
james-prysm
c0f3946f58
Full Deprecation of Fee Recipient File Flags ( #11033 )
2022-07-12 18:10:44 +00:00
Luca G.F
c33acde64e
Fix counters data races in async tests ( #11030 )
...
* Fix counters data races in async/debounce tests
Signed-off-by: Luca Georges Francois <luca.georges-francois@epitech.eu >
* Fix counters data races in async/every tests
Signed-off-by: Luca Georges Francois <luca.georges-francois@epitech.eu >
2022-07-12 14:39:18 +00:00
james-prysm
8310d22a05
Validator Registration: use cached signatures if certain properties don't change. ( #11014 )
...
* initial commit
* fixing variable rename
* fixing unit test
* adding based on review comments
* renaming cache
* simplifying logic on signed validator registrationRequest
* adding unit tests
* fixing linting
* using wrong dependency
2022-07-12 04:19:49 +00:00
AH
3060096233
Trivial fix to the warning message about fee recipient config ( #11027 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-07-12 03:11:26 +00:00
terencechain
5d06c14cec
Check validator has registration before getting header ( #11023 )
...
* Check validator has registration before calling header
* Check validator has registration before calling header
* Update proposer_bellatrix_test.go
2022-07-11 20:57:58 -05:00
Preston Van Loon
57abf02e34
Enforce a 1s timeout for block builder reply ( #11021 )
...
* Enforce a 1s timeout for block builder reply
* Specify BUILDER_PROPOSAL_DELAY_TOLERANCE
* clarify error message
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-11 22:18:42 +00:00
Potuz
44218a9c5b
add nilcheck for payload ID ( #11024 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-11 21:36:52 +00:00
Preston Van Loon
d53f2c7661
builder client: Revert key batching PR #11002 ( #11022 )
...
* builder client: Revert key batching PR #11002
* forgot
* gaz
2022-07-11 20:55:08 +00:00
terencechain
5e53d6976e
Fix proposer duty RPC to allow next epoch query ( #11015 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-11 18:46:42 +00:00
terencechain
7fd2c08be3
Propagate FCU invalid error ( #10997 )
...
* Wrap fcu error
* Wrap fcu error
* Wrap error better
* More test
* Add else
* Potuz feedback
* Propagate the correct root for fcu
* Always return true for invalid
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-09 20:51:03 +00:00
james-prysm
6695e7c756
Push Proposer Settings: improve warn logs + bug fix ( #11013 )
...
* initial commit
* adding unit test to fix bug and test for log inclusion
2022-07-08 16:15:49 -04:00
james-prysm
aeede2165d
WEB v.2 ( #11007 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-08 19:08:11 +00:00
terencechain
67a15183ca
Wrap NewPayload error ( #10994 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-08 18:24:48 +00:00
terencechain
208dc80702
Add Capella config ( #11003 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-08 17:40:01 +00:00
terencechain
e80806d455
Check nil before logging "Failed to close response body..." ( #11011 )
2022-07-08 16:55:12 +00:00
Raul Jordan
80d0a82f9b
Engine Client Method to Reconstruct Full Bellatrix Beacon Block ( #10998 )
...
* engine reconstructor
* gaz
* powchain pass
* metrics
* deadcode
* prevent nil block
* build
* add test based on recs
2022-07-08 14:10:33 +00:00
Preston Van Loon
f9b3cde005
Batch build API requests for RegisterValidator ( #11002 )
...
* Add UnmarshalJSON for SignedValidatorRequest
* add failing test for batch limits
* Add functionality
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-07 23:50:48 +00:00
Raul Jordan
d8f9750387
Only Unmarshal Full Tx Bodies in ExecutionBlock JSON Unmarshaler ( #11006 )
...
* full tx unmarshaling fixed
* prefix check
2022-07-07 23:08:44 +00:00
james-prysm
5e8b9dde5b
Simplify Push Proposer settings ( #11005 )
...
* initial commit
* fixing unit tests
* fixing more unit tests
2022-07-07 22:24:06 +00:00
terencechain
c2caff4230
Minor UX improvement to validator registration ( #11004 )
2022-07-07 19:32:02 +00:00
Raul Jordan
b67c885995
Major Simplification of JSON Handling for Execution Blocks ( #10993 )
...
* no more execution block custom type
* simpler json rpc data unmarshaling
* simplicify
* included hash and txs fix
* all tests
* pass
* build
* mock fix
* attempt build
* builds
* build
* builds
* pass
* pass
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 22:06:00 +00:00
james-prysm
60ed488428
changing gaslimit to validator registration ( #10992 )
...
* changing gaslimit to validator registration
* adding new flag to enable validator registration for suggested fee recipient
* making sure default gaslimit is set
* Update cmd/validator/flags/flags.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 18:42:21 +00:00
Potuz
2f0e2886b4
Do not error if the LVH is bogus ( #10996 )
...
* Do not error if the LVH is bogus
* add tests and mark the regression PR
* dead code
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 17:37:15 +00:00
terencechain
2d53ae79df
Cleanups to pulltips ( #10984 )
...
* Minor cleanups to pulltips
* Feedbacks
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 16:55:17 +00:00
Nishant Das
ce277cb388
Add Fuzzing For JSON Marshalling/Unmarshalling Methods ( #10995 )
...
* modify it
* add gaz
* revert
* deps
* revert change
* fix it
2022-07-06 15:15:14 +00:00
Raul Jordan
c9a366c36a
Revert "Move Slasher E2E To Scenario Test" ( #10986 )
...
This reverts commit 65900115fc .
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-06 13:03:30 +00:00
terencechain
3a957c567f
Handle invalid_block_hash error from ee ( #10991 )
...
* Handle invalid_block_hash error from ee
* Update beacon-chain/blockchain/error.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Remove invalid block and state
* Revert "Remove invalid block and state"
This reverts commit 9ca011b8ce .
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-07-06 00:22:12 +00:00
Raul Jordan
77a63f871d
Included Blinded Beacon Block in V1alpha1 Protobuf ( #10989 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-05 21:03:14 +00:00
Raul Jordan
8dd8ccc147
pure funcs ( #10988 )
2022-07-05 16:24:17 -04:00
Preston Van Loon
3c48bce3a3
Annotate build client requests ( #10987 )
...
* Annotate build client requests
* Use named return arguments to annotate errors
* Unhandled error was bad
* Error level is better than warning for this
* Clarifying commentary while i'm here
* delete the pasta
2022-07-05 19:33:33 +00:00
Nishant Das
0ed5007d2e
Fix Pubsub Panic In Handling Dead Peers ( #10976 )
...
* fix
* fix it
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-04 00:41:33 +00:00
Raul Jordan
65900115fc
Move Slasher E2E To Scenario Test ( #10973 )
...
* consolidate into slasher scenario test
* pattern
* revert
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-03 23:55:33 +00:00
Potuz
379bed9268
add heuristics for pulltips ( #10955 )
...
* add heuristics for pulltips
* gazelle
* add unit test
* fix unit test
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-03 20:27:39 +00:00
Potuz
2dd2e74369
update finalization on onblock ( #10980 )
...
* update finalization on onblock
* add unit test
* Minor cleanups
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-07-03 19:39:31 +00:00
Potuz
73237826d3
ensure there are as many deltas as nodes ( #10979 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-03 00:53:33 -03:00
terencechain
af4d0c84c8
Check finalized beyond DB ( #10978 )
...
* Check finalized beyond DB
* Unhandle error
* Remove debug log
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-07-02 16:31:05 -03:00
Potuz
c68f1883d6
Save Head after pruning invalid nodes ( #10977 )
...
* Save Head after prunning
* fix unit test
2022-07-02 16:38:08 +00:00
terencechain
ae1685d937
Log invalid finalized root ( #10975 )
...
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-07-02 10:58:54 +00:00
terencechain
2a5f05bc29
Improve "rasied file descriptor limit..." log ( #10970 )
...
* Improvement to raise file descriptor log
* Radek feedback
* Change to debug
2022-07-01 18:05:01 -04:00
Potuz
49e5e73ec0
Default SafeSlotsToImportOptimistically to 128 ( #10967 )
...
* Default SafeSlotsToImportOptimistically to 128
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-01 17:04:51 +00:00
Nishant Das
2ecb905ae5
Update Prysm Libp2p Dependencies ( #10958 )
...
* add all changes in
* fix issues
* fix build
* remove curve check
* fix tool
* add test
* add tidy
* fmt
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-01 15:34:11 +00:00
Radosław Kapka
d4e7da8200
Change log level to debug in fetchBlocksFromPeer ( #10969 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-01 14:49:31 +00:00
Nishant Das
4b042a7103
Fix Multiclient E2E ( #10965 )
...
* fix it
* gaz
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-01 14:02:01 +00:00
Radosław Kapka
e59859c78f
Wrap client-stats flags ( #10966 )
2022-07-01 12:49:38 +00:00
Potuz
6bcc7d3a5e
Do not fill in missing blocks on regular sync ( #10957 )
2022-07-01 11:03:49 +00:00
terencechain
7b597bb130
More sepolia boot nodes ( #10962 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-30 19:49:35 +00:00
Potuz
2c7b273260
do not overwrite log ( #10963 )
2022-06-30 19:02:23 +00:00
Radosław Kapka
8bedaaf0a8
Log error in fetchBlocksFromPeer ( #10959 )
...
* Log error in `fetchBlocksFromPeer`
* update case
2022-06-30 16:22:10 +00:00
james-prysm
69350a6a80
Fee Recipient E2E misscounting deterministic keys leading to flakes ( #10960 )
2022-06-30 15:01:33 +00:00
terencechain
93e8c749f8
Can get payload header from builder ( #10954 )
2022-06-29 21:13:25 -07:00
james-prysm
96fecf8c57
E2E: fee-recipient evaluator ( #10528 )
...
* testing out fee-recipient evaluator
* fixing bazel linter
* adjusting comparison
* typo on file rolling back
* adding fee recipient is present to minimal e2e
* fixing gofmt
* fixing gofmt
* fixing flag usage name
* adding in log to help debug
* fixing log build
* trying to figure out why suggested fee recipient isn't working in e2e, adding more logging temporarily
* rolling back logs
* making e2e test more dynamic
* fixing deepsource issue
* fixing bazel
* adding in condition for latest release
* duplicate condtion check.
* fixing gofmt
* rolling back changes
* adding fee recipient evaluator in new file
* fixing validator component logic
* testing rpc client addition
* testing fee recipient evaluator
* fixing bazel:
* testing casting
* test casting
* reverting
* testing casting
* testing casting
* testing log
* adding bazel fix
* switching mixed case and adding temp logging
* fixing gofmt
* rolling back changes
* removing fee recipient evaluator when web3signer is used
* test only minimal config
* reverting changes
* adding fee recipient evaluator to mainnet
* current version uses wrong flag name
* optimizing key usage
* making mining address a variable
* moving from global to local variable
* removing unneeded log
* removing redundant check
* make proposer settings mroe deterministic and also have the evaluator compare the wanting values
* fixing err return
* fixing bazel
* checking file too much moving it out
* fixing gosec
* trying to fix gosec error
* trying to fix address
* fixing linting
* trying to gerenate key and random address
* fixing linting
* fixing check for proposer config
* trying with multi config files
* fixing is dir check
* testing for older previous balance
* adding logging to help debug
* changing how i get the block numbers
* fixing missed error check
* adding gasused check
* adding log for current gas used
* taking suggestion to make fee recipient more deterministic
* fixing linting
* fixing check
* fixing the address check
* fixing format error
* logic to differentiate recipients
* fixing linting
2022-06-30 00:24:39 +00:00
Potuz
5d29ca4984
Experimental disable boundary checks ( #10936 )
...
* init
* bellatrix + altair tests passing
* Add Phase0 support
* add feature flag
* phase0 test
* restore testvectors
* mod tidy
* state tests
* gaz
* do not call precompute
* fix test
* Fix context
* move to own's method
* remove spectests pulltips
* time import
* remove phase0
* mod tidy
* fix getters
* Update beacon-chain/forkchoice/doubly-linked-tree/types.go
* reviews
* fix workspace
* Recursive rlocks
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-06-29 23:37:21 +00:00
terencechain
43523c0266
RPC adds builder service ( #10953 )
...
* RPC adds builder service
* Update beacon-chain/builder/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-29 18:54:24 +00:00
Sammy Rosso
8ebbde7836
Testutil refactor attestations ( #10952 )
...
* Add AttestationUtil receiver
* Modify usage to account for the receiver
* Add missing explanatory comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-06-29 16:42:33 +00:00
Radosław Kapka
44c39a0b40
Don't log terminal difficulty has not been reached yet... until Bellatrix ( #10951 )
2022-06-29 13:53:59 +00:00
Radosław Kapka
f376f3fb9b
Integrate better fastssz validation errors into Prysm ( #10945 )
...
* update dep
* regenerate SSZ, update test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-29 16:05:56 +08:00
Sammy Rosso
8510743406
Add additional logging fields for post-merge transition blocks ( #10944 )
...
Added additional logging information to Bellatrix blocks.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-28 13:55:36 +00:00
Radosław Kapka
b82e2e7d40
Use prysmaticlabs/fastssz as a direct dependency ( #10941 )
...
* Update dependency
* Regenerate SSZ files
* fix BUILD files
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>
2022-06-28 13:03:24 +00:00
Raul Jordan
acfafd3f0d
Add More Visibility Into Sync Committee Message Participation ( #10943 )
...
* build
* granular time message
* timing
* log
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 23:01:24 +00:00
Delweng
13001cd000
typo: convert tab to space ( #10918 )
...
* typo: convert tab to space
Signed-off-by: Delweng <delweng@gmail.com >
* typo: indent shell scripts with 4spaces
Signed-off-by: Delweng <delweng@gmail.com >
* fix the indent typo again
Signed-off-by: Delweng <delweng@gmail.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-06-27 21:53:32 +00:00
terencechain
5291b9d85b
RPC: Add submit registration endpoint ( #10942 )
2022-06-27 19:54:28 +00:00
terencechain
7747471624
Update sepolia ttd ( #10940 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 18:27:49 +00:00
Radosław Kapka
31f96a05b3
Update fastssz dependency in deps.bzl ( #10939 )
2022-06-27 18:32:38 +02:00
Murphy Law
dfe8e54a42
Relinquish peerLock when blockFetcher context is done ( #10932 )
...
* Relinquish peerLock when blockFetcher context is done
* Unlock before sending range requests
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-27 15:25:33 +00:00
Nishant Das
3a841a8467
Fix Eth1Connection API Panic ( #10938 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 14:19:44 +00:00
Radosław Kapka
7f56ac6355
Massive code cleanup ( #10913 )
...
* Massive code cleanup
* fix test issues
* remove GetGenesis mock expectations
* unused receiver
* rename unused params
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 13:34:38 +00:00
Preston Van Loon
9216be7d43
State: add fuzz test for unmarshal ssz ( #10935 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-27 11:19:39 +00:00
Nishant Das
7c489199bf
Fix Builder Service Panic ( #10937 )
2022-06-27 10:50:15 +00:00
Potuz
f8b4d8c57a
Deprecate store in blockchain pkg ( #10903 )
...
* Deprecate store WIP
* fix spectests build
* mock right interface
* sync tests build
* more tests builds
* blockchain tests
- TestFinalizedCheckpt_GenesisRootOk
- TestCurrentJustifiedCheckpt_CanRetrieve
- TestJustifiedCheckpt_GenesisRootOk
- TestHeadRoot_CanRetrieve
- TestHeadRoot_UseDB
- TestService_ProcessAttestationsAndUpdateHead
- TestService_VerifyWeakSubjectivityRoot
- TestVerifyFinalizedConsistency_InconsistentRoot_ProtoArray
- TestVerifyFinalizedConsistency_InconsistentRoot_DoublyLinkedTree
- TestVerifyFinalizedConsistency_Ok
- TestStore_OnBlock_ProtoArray
- TestStore_OnBlock_DoublyLinkedTree
- TestStore_OnBlockBatch_ProtoArray
- TestStore_OnBlockBatch_DoublyLinkedTree
- TestStore_OnBlockBatch_NotifyNewPayload
- TestCachedPreState_CanGetFromStateSummary_ProtoArray
- TestCachedPreState_CanGetFromStateSummary_DoublyLinkedTree
* more blockchain tests
- TestStore_OnBlockBatch_PruneOK_Protoarray
- TestFillForkChoiceMissingBlocks_CanSave_ProtoArray
- TestFillForkChoiceMissingBlocks_CanSave_DoublyLinkedTree
- TestFillForkChoiceMissingBlocks_RootsMatch_Protoarray
- TestFillForkChoiceMissingBlocks_RootsMatch_DoublyLinkedTree
- TestFillForkChoiceMissingBlocks_FilterFinalized_ProtoArray
- TestFillForkChoiceMissingBlocks_FilterFinalized_DoublyLinkedTree
- TestVerifyBlkDescendant
- Test_verifyBlkFinalizedSlot_invalidBlock
- TestChainService_SaveHeadNoDB
* update best justified from genesis
* deal with nil head on saveHead
* initialize prev justified checkpoint
* update finalization correctly
* update finalization logic
* update finalization logic
* track the wall clock on forkchoice spectests
* export copies of checkpoints from blockchain package
* do not use forkchoice's head on HeadRoot
* Remove debug remain
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* terence's review
* add forkchoice types deps
* wtf
* debugging
* init-sync: update justified and finalized checkpoints on db
* call updateFinalized instead of only DB
* remove debug symbols
* safe copy headroot
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-06-25 03:57:52 +00:00
terencechain
b7463d0070
Ignore nil node when saving orphaned atts ( #10930 )
...
* Ignore nil node when saving orphaned atts
* Just use ErrUnknownCommonAncestor
2022-06-24 18:07:31 +00:00
Radosław Kapka
2b6e86ec1b
Some test improvements ( #10928 )
...
* extract DeterministicGenesisStateWithGenesisBlock
(cherry picked from commit a5e3a9c9bbbacb23a644f5c68c92839a315f66a1)
# Conflicts:
# testing/util/state.go
* part 1
* part 2
* part 3
* fix errors
* db interface public visibility
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-24 17:22:39 +00:00
kasey
4e604ee22b
Stop ruining our lives with flaky e2e ( #10929 )
...
* merge checkpoint sync test with base minimal test
* move web3signer to scenario test
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-24 17:01:12 +00:00
Delweng
3576d2ccfe
cmd/beacon-chain: add jwtcommands ( #10919 )
...
* cmd/beacon-chain: add jwtcommands
Signed-off-by: Delweng <delweng@gmail.com >
* gazelle
Co-authored-by: mick <103775631+symbolpunk@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-06-24 15:54:08 +00:00
Radosław Kapka
4b009ed813
Rename upgrade_to_altair.go to upgrade_to_bellatrix.go ( #10926 )
...
(cherry picked from commit c664e59a2e66a2e52814bdb59840ec3a205273e7)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-24 12:46:07 +00:00
Radosław Kapka
7faad27f5f
Update fastssz dependency ( #10927 )
2022-06-24 12:18:42 +00:00
terencechain
2d3966bf4f
RPC: builder block ( #10908 )
...
* Can contruct builder block
* Fix build and tests
* Add nil checks and tests
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-24 02:41:16 +00:00
Nishant Das
58d10e3ace
Deprecate Step Parameter from our Block By Range Requests ( #10914 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-23 21:48:28 +00:00
terencechain
88becdc114
Register builder service ( #10924 )
2022-06-23 13:44:27 -07:00
Potuz
20b4c60bcb
Apply Proposer Boost from forkchoice ( #10893 )
...
* Apply proposer boost at block insertion
* gaz
* fix tests
* revert time change
* conflict
* change genesis time in forkchoice on spectests
* Terence Review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-06-22 13:56:07 +00:00
terencechain
0b50ab7832
Consolidate ExecutionPayloadHeader Protobuf definitions ( #10917 )
2022-06-22 13:08:06 +02:00
Radosław Kapka
6b55d33ea2
Return error when requesting future state ( #10915 )
...
* Return error when requesting future state
* fix genesis test case
* fix test cases
2022-06-21 23:13:19 +00:00
terencechain
7e64a3963d
Change submit validator registration to registration(s) ( #10907 )
...
* Change submit validator registration to registration(s)
* Fixed a few tests
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-21 18:46:28 +00:00
Potuz
55b4af9f92
track the wall clock on forkchoice spectests ( #10916 )
2022-06-21 18:12:08 +00:00
terencechain
546bb5ed53
Clean up misc warnings ( #10900 )
...
* Clean up misc warnings
* Gazelle
* Rm state assignments
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-21 15:26:56 +00:00
Radosław Kapka
29a25b3f09
Add spec URLs to API docs ( #10912 )
2022-06-21 14:29:44 +00:00
Jie Hou
56af079aea
Change gocognit complextity threshold to 65 ( #10906 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-20 03:57:39 +00:00
Potuz
385f101b2b
Use forkchoice to verify finalized descendant ( #10905 )
...
* Use forkchoice to verify finalized descendant
* fix test
2022-06-20 00:55:17 +00:00
Radosław Kapka
b3c3b207c9
Enable fastssz to use vectorized HTR hashing algo ( #10819 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-18 12:13:36 +00:00
Jie Hou
e0cd10ed3c
Refactor: Reduce cognitive complexity for 5 out of top 10 functions in code base ( #10854 )
...
* Refactor waitForActivation
* Finish refactor of runner.go
* Refactor validator/client/metrics.go
* Refactored beacon-chain/sync/pending_attestations_queue.go
* Refactored beacon-chain/powchain/log_processing.go
* Resolve conflicts with develop branch
* Fix Deepsource: Context should be the first param
* Address review comments
* Put headersMap as pass-in function parameter
* Change function signature of processBlockInBatch
* Address nisdas's comment
2022-06-18 10:14:43 +00:00
Potuz
2d0fdf8b4a
prune within forkchoice ( #10896 )
2022-06-17 12:53:17 -03:00
Potuz
3a7117dcbf
Do not downcast time in currentslot ( #10897 )
...
* Do not downcast time in currentslot
* no magic constants
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-16 22:26:55 +00:00
Radosław Kapka
8888fa4bb3
Revert enable-native-state flag ( #10898 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-16 20:59:46 +00:00
Radosław Kapka
f065209a3e
Small API Middleware upgrades ( #10895 )
...
* remove useless comments
* add comment
* fix writing bug
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-16 19:19:05 +00:00
Potuz
e439f4aff6
Forkchoice duplicate store ( #10840 )
...
* forkchoice tests
* blockchain tests
* no fatal errors
* use ZeroHash for genesis
* deal with zerohashes at genesis
* avoid nil best justified checkpoint on new store
* unit tests
* Debug log
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Terence's review
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* update capitalization
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-06-16 18:21:40 +00:00
terencechain
88f8dbecc8
Compute correct domain for validator registration ( #10894 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-16 16:32:04 +00:00
james-prysm
2dfe291cf9
Keymanager APIs: fee recipient api ( #10850 )
...
* initial commit wip
* setting protos for fee recipient
* updating proto based on specs
* updating apimiddleware
* generated APIs
* updating proto to fit spec
* fixing naming of fields
* fixing endpoint_factory and associated structs
* fixing imports
* adding in custom http types to grpc gateway
* adding import options
* changing package option
* still testing protos
* adding to bazel
* testing dependency changes
* more tests
* more tests
* more tests
* more tests
* more tests
* more tests
* testing changing repo dep
* testing deps
* testing deps
* testing deps
* testing deps
* testing deps
* testing deps
* reverting
* testing import
* testing bazel
* bazel test
* testing
* testing
* testing import
* updating generated proto code
* wip set fee recipient by pubkey
* adding list fee recipient logic
* fixing thrown error
* fixing bug with API
* fee recipient delete function
* updating generated proto logic
* fixing deposit api and adding postman tests
* fixing proto imports
* fixing unit tests and checksums
* fixing test
* adding unit tests
* fixing bazel
* Update validator/rpc/standard_api.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/rpc/standard_api.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* resolving review comments
* fixing return
* Update config/validator/service/proposer-settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* updating proto
* updating message name
* fixing imports
* updating based on review comments
* adding middleware unit tests
* capitalizing errors
* using error instead of errorf
* fixing missed unit test variable rename
* fixing format variable
* fixing unit test
* Update validator/rpc/standard_api.go
* Update validator/rpc/standard_api.go
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>
2022-06-16 15:10:23 +00:00
Mike Neuder
a80c15f3a9
Refactor validator accounts import to remove cli context dependency ( #10890 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-06-16 14:14:03 +00:00
Nishant Das
4de92bafc4
Improve Field Trie Recomputation ( #10884 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-06-16 13:14:29 +00:00
terencechain
69438583e5
Pad Uint256's SSZBytes to length 32 ( #10889 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-16 04:29:32 +00:00
Raul Jordan
e81f3fed01
Remove Extraneous BoltDB Logs ( #10888 )
2022-06-16 01:11:07 +00:00
Raul Jordan
1b2a5fb4a5
Update CODEOWNERS ( #10887 )
2022-06-15 21:51:44 +00:00
Jie Hou
6c878b1665
Refactor: Continue reducing cognitive complexity ( #10862 )
...
* Refactor beacon-chain/db/kv/state.go
* Refactor api/gateway/apimiddleware/process_field.go
* Refactor beacon-chain/sync/initial-sync/blocks_queue.go
* Refactor validator/db/kv/migration_optimal_attester_protection.go
* goimports
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-15 18:34:59 +00:00
james-prysm
838963c9f7
validator registration request bug: reusing public keys ( #10883 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 17:26:05 +00:00
kasey
7b38f8b8fc
submit lists of validator registrations ( #10882 )
...
* submit lists of validator registrations
* RegisterValidator to take a list
* Gazelle
* Fix go imports
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 16:29:56 +00:00
Nishant Das
23e8e695cc
Fix Sepolia Testnet Initialization ( #10886 )
2022-06-15 15:05:44 +00:00
Sammy Rosso
ce9eaae22e
Add payload data logging ( #10845 )
...
* Add logging of block payload data
Added a new func logBlockPayloadData that includes logging of the
block number and the gas utilized.
Related to #10795 .
* Replace Info with Debug + renamed func
Renamed the function to be clearer and replaced Info logging with Debug.
Related to #10795 .
* Compute correct value for gas utilized
Related to #10795 .
* Round result of gas utilized to 2 decimal places
* Add new error message
* Check if block is an Execution block
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Fix missing imports
* Undo changes
* Update beacon-chain/blockchain/receive_block.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Added error logging to log statements
Changed the error handling from log statements. Instead of returning the
error we log the error.
Co-authored-by: terencechain <terence@prysmaticlabs.com >
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>
2022-06-15 10:03:48 +00:00
Nishant Das
7010e8dec8
Graduate Prune Canonical Attestations Feature ( #10623 )
...
* graduate canonical prune feat
* fix test
* fix tests
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-15 09:05:19 +00:00
Nishant Das
9e4ba75e71
Batch Scenario Runs Into Single Test ( #10878 )
...
* batch scenarios
* fix
* fix
* Update testing/endtoend/endtoend_test.go
2022-06-15 08:02:31 +00:00
kasey
044a4ad5a3
Ignore genesis state url and checkpoint sync flags after first run of prysm ( #10881 )
...
* ignore remote genesis url flag if present in db
* ignore checkpoint sync flags if initialized
* lint
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 23:23:25 +00:00
Radosław Kapka
690084cab6
Enable native state for Sepolia ( #10880 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 21:51:58 +00:00
james-prysm
88db7117d2
Adding additional checksum check for fee recipient. ( #10879 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 18:43:37 +00:00
mick
1faa292615
Add is_optimistic to SyncDetails, hydrate via ValidateSync ( #10692 )
...
* cache test
* oh
* syntax fix
* error fix
* tinker
* tinker
* newlines?
* no-whitespace?
* feedback
* fix
* comment
* comments
* need to figure out how to lint locally...
* feedback
* fixes
* progress
* progress
* dedupe
* s
* working
* remove empty lines
* update test
* return errors properly
* make helpers publicly visible
* fix tests
Co-authored-by: rkapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-14 17:47:09 +00:00
terencechain
434018a4b9
Add Sepolia config ( #10868 )
2022-06-14 14:50:05 +00:00
Nishant Das
54624569bf
Fix Fuzzing Failures in Our CI ( #10875 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 13:12:28 +00:00
Håvard Anda Estensen
b55ddb5a34
Use go:build lines and remove obsolete +build lines ( #10704 )
...
* Use go:build lines and remove obsolete +build lines
* Run gazelle
* Update crypto/bls/blst/stub.go
* Update crypto/bls/blst/stub.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-14 11:47:27 +00:00
terencechain
a38de90435
Move computeCheckpoints to private ( #10874 )
...
* Move computeCheckpoints to private
* Feedback
* Godoc
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 09:25:41 +00:00
Michael Blau
d454d30f19
Merge ascii art banner ( #10773 )
...
* Add Merge ASCII art banner
* Add merge ASCII art banner
* gofmt
* Go fmt
* Fix go fmt again
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-14 08:25:42 +00:00
Jie Hou
b04dd9fe5c
Enable gocognit linter ( #10867 )
...
* Enable gocognit linter
Currently the gocognit complexity threshold is set to 95 to make
sure no existing files will fail the linter. In future we will
reduce this threshold to a much lower one.
The recommended threshold is usually 30. Our code base has maximum
of 97 right now...But it's better late than never to pay attention
to our code compexity.
* Test to see github complains
* Resume to 97
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-14 14:19:34 +08:00
kasey
8140a1a7e0
update info message about ws checkpoint ( #10871 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-14 00:55:00 +00:00
terencechain
cab9917317
Fix message typo for ErrorIs ( #10873 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-14 00:19:04 +00:00
terencechain
4c4fb9f2c0
Fix gosec scan: G112 (CWE-400) Potential Slowloris Attack ( #10872 )
2022-06-13 22:29:26 +00:00
Mike Neuder
80f4f22401
Refactor validator accounts exit to remove cli context dependency ( #10841 )
...
* Refactor validator accounts exit to remove cli context dependency
* bazel run //:gazelle -- fix
* fixing deepsource findings
* fixing broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-13 15:17:46 +00:00
terencechain
dd296cbd8a
Disallow lower justified epoch to override higher epoch ( #10865 )
2022-06-11 17:37:37 +00:00
terencechain
f9e3b0a3c2
Active balance: return EFFECTIVE_BALANCE_INCREMENT as min ( #10866 )
2022-06-11 08:54:33 -07:00
terencechain
a58809597e
Sync: don't process pending blocks w/o genesis time ( #10750 )
...
* Sync: don't process pending blocks w/o genesis time
* Update pending_blocks_queue.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-06-10 05:02:47 +00:00
Nishant Das
7f443e8387
Add Optimistic Sync Scenario Testing ( #10836 )
...
* add latest changes
* fix it
* add multiclient support
* fix tests
* Apply suggestions from code review
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 23:24:53 +00:00
Potuz
18fc17c903
Forkchoice checkpoints ( #10823 )
...
* double_tree_changes
* protoarray changes
* beacon-chain changes
* spec tests and debug rpc fixes
* more conflicts
* more conflicts
* Terence's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 22:28:30 +00:00
Sammy Rosso
d7b01b9d81
Fix default mainnet log when using chain config ( #10855 )
...
* Fix default mainnet log when using chain config
Add a log to specify the use of a chain-config-file rather than
defaulting to that of mainnet.
Related to #10821 .
* Add more specific log message
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 21:31:59 +00:00
terencechain
7ebd9035dd
Add ttd metric ( #10851 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 20:35:38 +00:00
Radosław Kapka
578fea73d7
API's IsOptimistic - update header.StateRoot only when block is not missing ( #10852 )
...
* bug fix
* tests
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 19:35:35 +00:00
terencechain
7fcadbe3ef
Add optimistic status to chainhead ( #10842 )
...
* Add optimistic status to chainhead
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 17:37:52 +00:00
Radosław Kapka
fce9e6883d
Native Blocks Ep. 1 - New types and functions ( #10837 )
...
* types and functions
* partially done tests
* refactor
* remaining Proto() tests
* remaining proto.go tests
* simplify UnmarshalSSZ and move BeaconBlockIsNil
* getters_test
* remove errAssertionFailed
* review feedback
* remove cloning protobuf
* fmt
* change IsNil
* fix tests
2022-06-09 13:13:02 +00:00
terencechain
5ee66a4a68
Update engine api buckets ( #10847 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-08 20:12:54 +00:00
kasey
f4c7fb6182
checkpoint sync e2e to use 3m timeout w/ elapsed log ( #10849 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-06-08 19:14:10 +00:00
Potuz
077dcdc643
enable dev on Ropsten ( #10839 )
...
* enable dev on Ropsten
* include only vectorized HTR and doublylinkedtree
* error handling
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-08 13:45:13 +00:00
kasey
1fa864cb1a
use slot:block index correctly ( #10820 )
...
* adding splitRoots, refactor to use it
* use splitRoots & work in roots only
the most common use case for this method is to get a list of
candidate roots and check if they are canonical. there isn't a great
reason to look up all the non-canonical blocks, because forkchoice
checks based on the root only, so just return roots and defer the
responsibility of resolving those to full blocks.
* update comment
* clean up shadowing
* more clear non-error return
* add test case for single root in index slot
* fmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-07 16:47:42 +00:00
Mike Neuder
6357860cc2
Refactor validator accounts backup to remove cli context dependency ( #10824 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-07 15:19:12 +00:00
mick
cc1ea81d4a
Implement generate-auth-secret on beacon node CLI ( #10733 )
...
* s
* s
* typo
* typo
* s
* s
* fixes based on PR feedback
* PR feedback
* reverting log changes
* adding flag per feedback
* conventions
* main fixes
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* s
* tests
* test attempt
* test
* Update cmd/beacon-chain/jwt/jwt.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* err fix
* s
* further simplify
* cleanup
* namefix
* tests pass
* gaz
* rem deadcode
* Gaz
* shorthand
* naming
* test pass
* dedup
* success
* Ignore jwt.hex file
* logrus
* feedback
* junk
* Also check that no file was written
* local run config
* small fix
* jwt
* testfix
* s
* disabling test
* reverting main changes
* main revert
* removing temp folder
* comment
* gaz
* clarity
* rem
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>
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-06-07 07:37:12 +00:00
Nishant Das
dd65622441
Efficiently Pack Uint64 Lists ( #10830 )
...
* make it more efficient
* radek's review
* review again
2022-06-07 06:34:13 +00:00
Nishant Das
6c39301f33
Integrate Engine Proxy into E2E ( #10808 )
...
* add it in
* support jwt secret
* fix it
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 23:35:54 +00:00
terencechain
5b12f5a27d
Integrate builder client into builder service ( #10825 )
...
* Integrate builder client into builder service
* Do nothing if pubkey is not found
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 22:38:49 +00:00
terencechain
105d73d59b
Update spec labels ( #10833 )
...
* Update label version
* Update label version
* Update label version
* Update label version
* Update label version
2022-06-06 18:13:59 -04:00
james-prysm
db687bf56d
Validator client builder support ( #10749 )
...
* Startinb builder service and interface
* Get header from builder
* Add get builder block
* Single validator registration
* Add mev-builder http cli flag
* Add method to verify registration signature
* Add builder registration
* Add submit validator registration
* suporting yaml
* fix yaml unmarshaling
* rolling back some changes from unmarshal from file
* adding yaml support
* adding register validator support
* added new validator requests into client/validator
* fixing gofmt
* updating flags and including gas limit, unit tests are still broken
* fixing bazel
* more name changes and fixing unit tests
* fixing unit tests and renaming functions
* fixing unit tests and renaming to match changes
* adding new test for yaml
* fixing bazel linter
* reverting change on validator service proto
* adding clarifying logs
* renaming function name to be more descriptive
* renaming variable
* rolling back some files that will be added from the builder-1 branch
* reverting more
* more reverting
* need placeholder
* need placeholder
* fixing unit test
* fixing unit test
* fixing unit test
* fixing unit test
* fixing more unit tests
* fixing more unit tests
* rolling back mockgen
* fixing bazel
* rolling back changes
* removing duplicate function
* fixing client mock
* removing unused type
* fixing missing brace
* fixing bad field name
* fixing bazel
* updating naming
* fixing bazel
* fixing unit test
* fixing bazel linting
* unhandled err
* fixing gofmt
* simplifying name based on feedback
* using corrected function
* moving default fee recipient and gaslimit to beaconconfig
* missing a few constant changes
* fixing bazel
* fixing more missed default renames
* fixing more constants in tests
* fixing bazel
* adding update proposer setting per epoch
* refactoring to reduce complexity
* adding unit test for proposer settings
* Update validator/client/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* trying out renaming based on feedback
* adjusting based on review comments
* making tests more appropriate
* fixing bazel
* updating flag description based on review feedback
* addressing review feedback
* switching to pushing at start of epoch for more time
* adding new unit test and properly throwing error
* switching keys in error to count
* fixing log variable
* resolving conflict
* resolving more conflicts
* adjusting error message
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-06-06 19:32:41 +00:00
james-prysm
f0403afb25
Suggested-Fee-Recipient flag should not override ( #10804 )
...
* initial commit
* fixing unit test
* fixing gofmt
* updating usage language
* updating flag description
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 16:58:52 +00:00
Potuz
3f309968d4
Only prune in newer finalization ( #10831 )
...
* Only prune in newer finalization
* add regression test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 15:25:22 +00:00
Potuz
52acaceb3f
Enforce that every node descends from finalized node ( #10784 )
...
* Enforce that every node descends from finalized node
* fix test
* fix conflict
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 14:28:49 +00:00
Nishant Das
5216402f66
Clean Up State Finalizer ( #10829 )
2022-06-06 09:01:58 +00:00
Potuz
2536195be0
Change forkchoice API ( #10774 )
...
* Change forkchoice API
doubly-linked-tree changes
* protoarray changes
* blockchain tests
* rebase and fix conflicts
* More blockchain fixes
* blockchain test fixes
* doubly linked tree changes again
* protoarray changes v2
* blockchain packages v2
* Radek's review
* Fix on batch processing
* Terence's review
* fill in at start
* Revert "fill in at start"
This reverts commit 8c11db063a .
* wrap error message
* fill in before mutating the state
* wrap nil node errors
* handle unknown optimistic status on init sync
* rename insert function
* prune on batches only after forkchoice insertion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-06-05 17:48:21 +00:00
terencechain
a4b9e006af
Fill missing payload ID ( #10803 )
2022-06-05 05:34:08 +00:00
terencechain
76b941b310
Update ropsten TTD ( #10817 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-04 02:54:51 +00:00
Nishant Das
d099c2790b
Add Back Timestamp Related Deposit Processing ( #10806 )
...
* use it
* add test
* fix
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-06-04 01:58:03 +00:00
Potuz
2fc3d41ffa
goppelganger -> doppelganger ( #10816 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-03 22:53:58 +00:00
Jim McDonald
2e4174bdd6
Set fee recipient validator index as per spec. ( #10814 )
...
The beacon API specification states that the `validator_index` field of
the `fee_recipient` structure is a quoted string rather than a bare
integer. This fixes up the encoding to match the spec.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-06-03 21:52:17 +00:00
kasey
a170fd4bd6
Revert "Change name and return type of HighestSlotBlocksBelow ( #10811 )" ( #10818 )
...
This reverts commit 0e9dfe04a1 .
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-06-03 18:36:06 +00:00
terencechain
3e36eacd1e
Add registration DB methods ( #10812 )
2022-06-03 15:13:04 +00:00
kasey
0e9dfe04a1
Change name and return type of HighestSlotBlocksBelow ( #10811 )
...
* HighestSlotBlocksBelow to return a single value
* HighestSlotBlocksBelow->HighestBlockBelowSlot
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-03 07:16:34 +00:00
Radosław Kapka
302a5cf00b
API SSZ content negotiation ( #10760 )
...
* API SSZ content negotiation
* custom code
* use raw string
* code review feedback
* remove duplicated test
2022-06-02 22:13:58 +00:00
kasey
c72f1af951
rewind cursor upon nil value (bucket) ( #10802 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-06-02 04:06:19 +00:00
terencechain
2bc3ef29e0
Wrap unknown RPC errors ( #10793 )
2022-06-01 16:46:07 +00:00
terencechain
bc91d63fcf
Add builder service skeleton and flag ( #10789 )
...
* Add builder service skeleton and flag
* Fix build
2022-06-01 15:12:15 +00:00
Potuz
8f18920ac7
Update forkchoice justified on init sync ( #10801 )
...
* Update forkchoice justified on init sync
* handle err
* add regression test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-01 14:13:47 +00:00
Nishant Das
2cc62cdf40
Fix Fuzzing ( #10798 )
2022-06-01 13:15:50 +00:00
terencechain
95c140b512
Validator client: add submit registration ( #10785 )
...
* Add client registration methods
* Mocken
* Run mockgen
* Fix bad tests
* Fix rest of the tests
* Tests
* Fix time tests
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-01 01:53:25 +00:00
kasey
7563bc0444
HighestSlotBlocksBelow, but in reverse ( #10772 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-31 21:10:33 +00:00
Preston Van Loon
4353d39daa
Mark e2e test targets as flaky for now ( #10778 )
...
* Mark e2e test targets as flaky for now
* Mark e2e test targets as flaky for now
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-31 20:11:47 +00:00
terencechain
2de2000eb7
Add back finalized info in new block log ( #10792 )
...
* Add back finalized info in new block log
* Better refactor
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-31 17:44:36 +00:00
terencechain
94f6389ebd
Run mockgen ( #10775 )
2022-05-31 09:43:01 -07:00
Potuz
b582ca27e6
Forkchoice fill chain ( #10783 )
...
* Move chain inclusions to forkchoice handling
* gaz
* return early if no blocks are pending
* Terence's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-31 10:19:48 +00:00
Preston Van Loon
2586a9e667
Add and verify context in AddCommitteeShuffledList ( #10786 )
...
* Add and verify context in AddCommitteeShuffledList
* Add and verify context in AddCommitteeShuffledList
* Change unnecessary arg reordering
* fix build, oops
* Regression test
* Regression test
* fix fuzz cache disabled
2022-05-30 21:38:37 -03:00
terencechain
87251d627d
Ensure finalized root can't be zeros ( #10791 )
2022-05-30 18:01:30 +00:00
Potuz
3ff285dda5
Do not fill in blocks that are not in the finalized branch ( #10776 )
...
* Do not fill in blocks that are not in the finalized branch
* mark blocks as invalid
* Fix old off-by-ones, do not pass finalized state
2022-05-30 11:55:39 +00:00
terencechain
364ad3fbda
Reinsert reorg atts ( #10767 )
...
* Add common ancestor root for protoarray
* More efficient algo
* Tests
* Fix linting
* Fix linting
* Fix linting
* Fix linting
* Fix linting
* Fix linting
* Apply suggestions from code review
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Feedbacks
* Revert saveHead changes
* Revert "Revert saveHead changes"
This reverts commit a15fddc2e6 .
* Fix rest of the tests
* Update beacon-chain/blockchain/head.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-29 19:32:42 +00:00
Potuz
4cbb69602f
Clean up onBlockBatch and prune forkchoice on init sync ( #10768 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-05-28 11:56:58 +00:00
David
64920d719d
add mutex for validator.highestValidSlot ( #10722 )
...
* add mutex for validator.highestValidSlot
* fixed deadlock issue
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-05-28 00:44:06 +00:00
Potuz
3cf385fe91
Unrealized justification ( #10659 )
...
* unrealized justification API
* Add time elapse logging
* add unrealized justification checkpoint
* Use UnrealizedJustificationCheckpoint
* Refactor unrealized checkpoints
* Move logic to state package
* do not use ctx on a sum
* fix ctx
* add tests
* fix conflicts
* unhandled error
* Fix ordering in computing checkpoints
* gaz
* keep finalized checkpoint if nothing justified
* gaz
* copy checkpoint
* fix check for nil
* Add state package tests
* Add tests
* Radek's review
* add more tests
* Update beacon-chain/core/epoch/precompute/justification_finalization.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* deduplicate to stateutil
* missing file
* Add stateutil test
* Minor refactor, don't export certain things
* Fix exports in tests
* remove unused error
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-27 16:38:00 +00:00
David
adabd1fa4f
service.head race condition fix ( #10741 )
...
* added various read mutex locks for service.head
* added RLocks around all calls to s.headRoot()
* added RLocks around all calls to s.headBlock()
* reduce lock surface-> Stop(),handleEpochBoundary()
* refactor Stop() to +performance, -lock_surface
* Apply suggestions from code review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* fixed indentation
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-05-27 14:24:43 +00:00
Nishant Das
9be2111b7a
Write To Only One File For Geth Logs ( #10769 )
2022-05-27 13:06:30 +00:00
Raul Jordan
1dec9eb912
Remove Unnecessary Stack Traces for Engine Errors ( #10765 )
...
* cleaner rpc responses
* clean up unecessary stack trace
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-26 22:09:33 +00:00
terencechain
a2951ec37d
Update Ropsten ttd to 100000000000000000000000 ( #10762 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-26 21:12:59 +00:00
terencechain
216fdb48cf
Add back ttd override flags ( #10763 )
...
* Add back ttd override flags
* Add warning log for overrides
* Print has hex
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-05-26 19:12:02 +00:00
Preston Van Loon
61c5e2a443
Fix error message with incorrect flag names ( #10761 )
2022-05-26 17:47:00 +00:00
Nishant Das
da9f72360d
Make Common Dep Set For E2E ( #10758 )
2022-05-26 09:33:04 +02:00
Preston Van Loon
1be46aa16e
Add a fuzz test for fieldtrie ( #10757 )
...
* Add a fuzz test for fieldtrie
* gofmt
2022-05-26 13:17:34 +08:00
kasey
a1a12243be
Sync from finalized ( #10723 )
...
* checkpoint sync use finalized state+block
instead of finding the block at the beginning of the weak subjectivity
epoch.
* happy path test for sync-from-finalized
* gofmt
* functional opts for the minimal e2e
* add TestCheckpointSync option
* wip: pushing for CI
* include conn index in log for debugging
* lint
* block until regular sync test finishes
* restore TestSync->testDoppelGangerProtection link
* update bazel deps for all the test targets
* updating to match current checksum from github
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-25 22:52:43 +00:00
kasey
a1dd2e6b8c
updating to match current checksum from github ( #10756 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-25 18:29:17 +00:00
Nishant Das
ecb605814e
Add in Separate Directories per Test ( #10753 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-05-25 15:57:13 +00:00
terencechain
61cbe3709b
Ignore subset aggregates ( #10674 )
...
* Ignore subset aggregates
* Add test
* Update BUILD.bazel
* Update validate_sync_contribution_proof_test.go
* Update validate_sync_contribution_proof_test.go
* Don't utilize pooled objects. Use direct caches
* Handle mainnet/minimal better
* Revert att changes
* Check overlaps before set
* Feedbacks
* Fixed a copy bug
* Fixed the same copy bug in committee indices cache
* Use SafeCopyBytes
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-25 05:40:06 +00:00
Raul Jordan
7039c382bf
Update Golang X Tools to Support Generics in Prysm ( #10752 )
...
* update tools to enable generics support
* tidy
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-25 05:10:05 +00:00
Nishant Das
4f00984ab1
fix ( #10751 )
2022-05-24 23:10:51 -04:00
terencechain
edb03328ea
Sync: use copied bits for seen cache ( #10747 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-24 21:11:33 +00:00
Sammy Rosso
c922eb9bfc
Add new DomainType for application usage ( #10740 )
...
* Add new DomainType for application usage
* Add DomainApplicationMask to config_test
* Add func to convert uint32 to 4 byte array
We add a convenience function Uint32ToBytes4 that takes a uint32,
converts it to big endian order and return a 4 byte array.
* Add unit test for Uint32ToBytes4
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-05-24 20:16:05 +00:00
terencechain
051a83a83d
Engine metrics: help text typos ( #10746 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-24 19:17:17 +00:00
terencechain
f46ff626df
Service: return errors on nil checkpoints ( #10748 )
2022-05-24 16:15:04 +00:00
Preston Van Loon
8130ff29bc
Update .buildkite-bazelrc: change CI to use toplevel remote caching. ( #10744 )
2022-05-24 13:22:44 +00:00
Nishant Das
5d4078305a
Use Correct Math Library ( #10742 )
...
* use correct math lib
* one more case
2022-05-24 07:22:46 +00:00
Preston Van Loon
6910460173
Refactor migrateStateValidators for better readability ( #10727 )
...
* Refactor migrateStateValidators for better readability
* pass test
* rev
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-23 23:56:02 +00:00
terencechain
7cc291c09f
Update proposer boost score and spec tests ( #10665 )
...
* Update mainnet_config.go
* Fixed a few tests
* Update rest of the tests
* Consolidate blockchain errors
* Update spec tests to v1.2.0-rc.1
* Fix withdrawal epoch overflows
* add slashings to forkchoice spectests
* Remove unused parameter
* Disable skip slot cache
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-23 23:08:24 +00:00
Raul Jordan
76645bccee
Move ExecutionPayload Utils to Consensus Types Subpackage ( #10732 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-23 21:57:32 +00:00
terencechain
46c0579816
Fix withdrawal epoch overflows ( #10739 )
...
* Fix withdrawal epoch overflows
* Fix typo, used epoch instead of churn
2022-05-23 21:10:19 +00:00
kasey
c66d9e9a11
Builder client ( #10703 )
...
* builder api client
* unexport error
* thanks, DeepSource!
* replace hexSlice w/ hexutil.Bytes
* use uint256 for BaseFeePerGas
* more confidence in correct endianness
* comment fix per Terence
* fix proto conversion for uint256
* couple more value checks in the http client tests
* TestMarshalBlindedBeaconBlockBodyBellatrix
* appease deepsource
* middleware to log requests
* big int round trip test
* very superficial test to make deepsource happy
* round trip test between proto payloads
* round trip starting from marshaled struct
* deepsource... for you, the moon
* remove unused receiver
* gofmt
* remove test destroying line added while debugging
* handle nil body in logging middleware
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-23 17:30:51 +00:00
Potuz
237807b248
Do not update forkchoice checkpoints on calls to Head ( #10702 )
...
* Only update forkchoice checkpoints at epoch transition
* gazelle
* blockchain package changes
* fix node
* spectest package
* rpc package
* fix spec test
* Fix spectests
* fix new_slot.test
* gaz
* fix spectests
* fix conflicts
* Update beacon-chain/blockchain/process_block.go
* regression do not update on newSlot
* revert bd64cab
* terence's review
* fix conflicts
* fix latest conflicts
* gaz
* go mod tidy
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-22 18:37:01 +00:00
terencechain
bcd75adedd
Consolidate blockchain errors ( #10736 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-22 17:48:54 +00:00
Potuz
0c981e8853
Change synced new block log ( #10724 )
...
* Change synced new block log
* Update beacon-chain/blockchain/log.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Fix finalized -> justified
* Update beacon-chain/blockchain/receive_block.go
* fix conflicts
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-22 16:57:48 +00:00
Potuz
e7991b9d7b
Track unrealized justification/finalization in forkchoice ( #10658 )
...
* Track unrealized justification/finalization in forkchoice
* add missing files
* mod tidy
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-05-21 10:27:07 -03:00
Raul Jordan
244e670b71
Move BeaconBlockNil Checker Function to Consensus-Types/Wrapper Package ( #10731 )
...
* beacon block is nil wrapper
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 23:29:16 +00:00
Raul Jordan
dc5fb92b28
Remove Unnecessary State Interfaces ( #10707 )
...
* rem other state interfaces
* redundant check
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 22:40:03 +00:00
terencechain
a2db03b9e9
Update engine API err codes ( #10730 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-20 20:08:00 +00:00
terencechain
370cf1a6c8
Chain info: Return err if checkpoint is nil ( #10729 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 18:41:33 +00:00
Potuz
76f6d74b83
Add new slot tests ( #10728 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 18:17:53 +00:00
terencechain
addb3cd665
More selective on marking block as bad ( #10681 )
...
* Starting, looking for feedbacks
* Update error.go
* Wrap invalid blocks to rest of the processings
* More tests
* More tests
* Fix tests
* Update process_block_test.go
* Update execution_engine_test.go
* Update BUILD.bazel
* Nishant's feedback and Kasey's recommendation
* Add comments on what an invalid block is
* Update beacon-chain/blockchain/error.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Update beacon-chain/blockchain/error.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Rm faulty invalid conditions
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 17:05:39 +00:00
Preston Van Loon
c603d120d7
Refactor high complexity StreamBlocksAltair ( #10726 )
...
* Refactor high complexity StreamBlocksAltair
* catch nil data
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 16:17:55 +00:00
Raul Jordan
39893bbe30
Encapsulate Fork-Specific Parameters Under BeaconState Interface ( #10706 )
...
* encapsulate beacon state specific spec parameters
* edit build file
* code review suggestion
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 15:30:30 +00:00
Nishant Das
a984605064
Scenario End To End Testing ( #10696 )
...
* add new changes
* fix it all
* add nicer scenario
* some more cleanup
* restructure tests
* godoc
* skip one scenario
* space
* fix test
* clean up
* fix conflicts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-20 09:34:10 +00:00
Nishant Das
f28b47bd87
Raise Soft File Descriptor Limit Up To The Hard Limit ( #10650 )
...
* add changes
* comment
* kasey's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-20 08:12:52 +00:00
kasey
588dea83b7
Config registry ( #10683 )
...
* test coverage and updates to config twiddlers
* LoadChainConfigFile error if SetActive conflicts
* lint
* wip working around test issues
* more fixes, mass test updates
* lint
* linting
* thanks deepsource!
* fix undeclared vars
* fixing more undefined
* fix a bug, make a bug, repeat
* gaz
* use stock mainnet in case fork schedule matters
* remove unused KnownConfigs
* post-merge cleanup
* eliminating OverrideBeaconConfig outside tests
* more cleanup of OverrideBeaconConfig outside tests
* config for interop w/ genesis gen support
* improve var name
* API on package instead of exported value
* cleanup remainders of "registry" naming
* Nishant feedback
* add ropstein to configset
* lint
* lint #2
* ✂️
* revert accidental commented line
* check if active is nil (replace called on empty)
* Nishant feedback
* replace OverrideBeaconConfig call
* update interop instructions w/ new flag
* don't let interop replace config set via cli flags
Co-authored-by: kasey <kasey@users.noreply.github.com >
2022-05-20 07:16:53 +00:00
Nishant Das
1012ec1915
Drop Down Expected Sync Participation During Fork ( #10708 )
...
* reduce
* skip
2022-05-19 12:28:56 +00:00
Raul Jordan
b74947aa75
Fix Slasher E2E Flakiness ( #10715 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-19 08:51:31 +00:00
kasey
e3f69e4fad
run e2e for 12 epochs ( #10717 )
...
* run for the original number of epochs
* to avoid race, wait 1/2 epoch after 1st ready node
* Update testing/endtoend/minimal_e2e_test.go
* Update testing/endtoend/minimal_e2e_test.go
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-05-19 06:45:58 +00:00
terencechain
092e9e1d19
Clean up various warnings ( #10710 )
...
* Clean up various warnings
* Update beacon-chain/rpc/prysm/v1alpha1/debug/state_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Fix redundant casting genState
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-05-19 04:38:04 +00:00
Sammy Rosso
1c51f6d1be
Fix Tests in sync/validate_beacon_blocks.go to Pass for the Right Reasons ( #10711 )
...
* test: better InvalidSignature validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Generated a valid signature from an invalid key so that it would be considered invalid.
Added a check for the correct error: ErrSigFailedToVerify.
Related to #9791 .
* test: better BlockAlreadyPresentInDB validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Added a check that the block is ignored.
Related to #9791 .
* test: better Syncing validation
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better IgnoreAndQueueBlocksFromNearFuture validation
Rename test to best describe it's function.
Replace error silencing with a check for the expected error.
Related to #9791 .
* test: better RejectBlocksFromFuture validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better RejectBlocksFromThePast validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with a check for the expected error.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: better SeenProposerSlot validation
Added digest to topic so that the test would not fail at decodePubsubMessage.
Replaced error silencing with NoError assertion.
Added check for the expected validation decision: ValidationIgnore.
Related to #9791 .
* test: fix topic and silenced errors
* set chain service slot
* test: better RejectBlocksFromBadParent validation
Set bad parent block.
Fixed expected errors and validation decision.
* revert: correct log msg for unknown parent block
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-19 03:45:45 +00:00
Preston Van Loon
ee6aa4d4ec
rpc: Better connection handling ( #10714 )
2022-05-19 02:53:24 +00:00
terencechain
0d2696ed4e
Add bopsten config and cli flag ( #10700 )
...
* Add bopsten config and cli flag
* Rename : )
* Update genesis time
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-18 19:29:24 +00:00
mick
03d44d7bfe
Weak subjectivity warning copy update, warn -> info ( #10699 )
...
* warn -> info
* wrap
* lintfix
* mick-needs-a-better-IDE
* gofmt
* empty commit to trigger cicd
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-18 16:20:35 +00:00
james-prysm
b38e4ddc3e
Web3signer: Bellatrix Block ( #10590 )
...
* initial commit
* fixing bazel
* removing extra space
* adding blindedbeaconblock
* adding unit tests
* fixing bazel build
* switching to switch statement
* fixing function parameters
* fixing ineffectual err error
* deleting unused files
* updating web3signer version to support bellatrix
* adding metrics
* testing longer run
* changing log level to help find errors
* changing logging back to all to better understand the issue
* testing better way to get public keys for web3signer on validator
* fixing bazel
* rolling back changes
* missed rolling back 1 thing
* adding flag back in
* adding comments back in
* testing lower participation
* adding logs to see web3signer keys for comparison
* fix bazel
* adding more logs temporariliy
* switching hex utility function
* web3signer doesn't support deposits, so changing this
* rolling back unintended unit test
* rolling back some changes for debugging
* Update validator/keymanager/remote-web3signer/v1/web3signer_types.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/components/web3remotesigner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/endtoend_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/endtoend_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing merge conflict
* Update validator/keymanager/remote-web3signer/v1/requests.go
* Update testing/endtoend/endtoend_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/v1/requests.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* prysm doesn't currently support deposits for web3signer
* reverting back to old implementation
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-05-18 15:20:20 +00:00
Mike Neuder
9fab9df61e
Refactor validator accounts delete to remove cli context dependency ( #10686 )
...
* add functional options accounts delete
* bazel run //:gazelle -- fix
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-17 23:13:36 +00:00
Radosław Kapka
eedafac822
SSZ responses for block production ( #10697 )
...
* Simplify SSZ handling
* fix tests
* add version to SSZ proto and to GetBeaconStateSSZV2
* TestProduceBlockV2SSZ
* rest of tests
* middleware
* use constants
* some middleware changes
* test fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-17 20:13:06 +00:00
terencechain
e9ad7aeff8
Fix a bad forkchoice proposer boost test ( #10705 )
...
* Fix a bad forkchoice proposer boost test
* Improve tests
* Add fork regression
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-17 16:26:56 -03:00
terencechain
3cfef20938
Add better debugging logs for validate block p2p pipeline ( #10698 )
2022-05-17 17:27:52 +00:00
Potuz
e90284bc00
Add Error checks for nil inner state ( #10701 )
2022-05-17 17:38:35 +08:00
terencechain
01e15a033f
Improve beacon node doesn't have a parent in db logs ( #10689 )
...
* Improve beacon node doesn't have a parent in db logs
* Update round_robin.go
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-16 18:51:27 +00:00
Radosław Kapka
f09b06d6f6
Allow SSZ-serialized blocks in publishBlindedBlock ( #10679 )
...
* SubmitBlockSSZ grpc
* SubmitBlockSSZ middleware
* test fixes
* use VersionedUnmarshaller
* use VersionedUnmarshaller
(cherry picked from commit 7388eeb963 )
* tests
* fuzz: Add fuzz tests for sparse merkle trie (#10662 )
* Add fuzz tests for sparse merkle trie and change HTR signature to return an error
* fix capitalization of error message
* Add engine timeout values (#10645 )
* Add timeout values
* Update engine_client.go
* Update engine_client.go
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Cleanup of `stategen` package (#10607 )
* powchain and stategen
* revert powchain changes
* rename field to blockRootsOfSavedStates
* rename params to blockRoot
* review feedback
* fix loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Process atts and update head before proposing (#10653 )
* Process atts and updeate head
* Fix ctx
* New test and old tests
* Update validator_test.go
* Update validator_test.go
* Update service.go
* Rename to UpdateHead
* Update receive_attestation.go
* Update receive_attestation.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Add link to e2e docs in `README` (#10672 )
* Improve `ReceiveBlock`'s comment (#10671 )
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Call fcu on invalid payload (#10565 )
* Starting
* remove finalized root
* Just call fcu
* Review feedbacks
* fix one test
* Fix conflicts
* Update execution_engine_test.go
* Add a test for invalid recursive call
* Add comprehensive recursive test
* dissallow override empty hash
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* Cache and use justified and finalized payload block hash (#10657 )
* Cache and use justified and finalized payload block hash
* Fix tests
* Use real byte
* Fix conflicts
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* do not export slotFromBlock
* simplify tests
* grpc
* middleware
* extract package-level consts
* Simplify SSZ handling
* fix tests
* test fixes
* test hack
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-16 17:59:43 +00:00
james-prysm
16e66ee1b8
fee-recipient: update error log to warn log ( #10684 )
...
* initial commit
* updating fee recipient on beacon node
* updating logs
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-16 14:40:13 +00:00
terencechain
3d3890205f
Remove invalid terminal block error code ( #10646 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-15 03:14:44 +00:00
terencechain
a90335b15e
Blockchain: Use get_block to retrieve block ( #10688 )
...
* Use get block
* Remove unused errNilParentInDB
* Fix TestVerifyBlkDescendant
* Update beacon-chain/blockchain/service.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-15 02:23:01 +00:00
Radosław Kapka
8cd43d216f
Changes to SSZ handling ( #10687 )
...
* Simplify SSZ handling
* fix tests
* add version to SSZ proto and to GetBeaconStateSSZV2
* remove unwanted methods
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-13 20:29:18 +00:00
Radosław Kapka
d25c0ec1a5
Fix bugs in /eth/v1/beacon/blinded_blocks ( #10673 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-13 18:20:39 +00:00
Radosław Kapka
e1c4427ea5
Allow SSZ-serialized blocks in publishBlock ( #10663 )
...
* SubmitBlockSSZ grpc
* SubmitBlockSSZ middleware
* test fixes
* use VersionedUnmarshaller
(cherry picked from commit 7388eeb963 )
* tests
* do not export slotFromBlock
* simplify tests
* extract package-level consts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-13 10:54:45 +00:00
Preston Van Loon
7042791e31
fuzz: Fix off by one error in sparse merkle trie item insertion ( #10668 )
...
* fuzz: Fix off by one error in sparse merkle trie item insertion
* remove new line
* Move validation to the proto constructor
* fix build
* Add a unit test because @nisdas is going to ask for it
* fix up
* gaz
* Update container/trie/sparse_merkle.go
* Update container/trie/sparse_merkle_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-05-13 07:02:43 +00:00
terencechain
e771585b77
Fix error.Is ordering ( #10685 )
...
* Fix error.is ordering for ErrUndefinedExecutionEngineError
* Update BUILD.bazel
2022-05-12 22:43:34 +00:00
Radosław Kapka
98622a052f
Extract OptimisticSyncFetcher interface ( #10654 )
...
* Extract `OptimisticSyncFetcher` interface
* extract IsOptimistic
* fix tests
* more test fixes
* even more test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 17:23:45 +00:00
Potuz
61033ebea1
handle failure to update head ( #10651 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 16:36:46 +00:00
Potuz
e808025b17
regression test off-by-one ( #10675 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 15:49:37 +00:00
Radosław Kapka
7db0435ee0
Unify WARNING comments ( #10678 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-12 15:25:44 +00:00
Nishant Das
1f086e4333
add more fuzz targets ( #10682 )
2022-05-12 10:47:29 -04:00
james-prysm
184e5be9de
Fee recipient: checksum log ( #10664 )
...
* adding checksum check at validator client and beacon node
* adding validation and logs on validator client startup
* moving the log and validation
* fixing unit tests
* adding test for back checksum on validator client
* fixing bazel
* addressing comments
* fixing log display
* Update beacon-chain/node/config.go
* Apply suggestions from code review
* breaking up lines
* fixing unit test
* ugh another fix to unit test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-11 19:36:57 +00:00
terencechain
e33850bf51
Don't return nil with new head ( #10680 )
2022-05-11 11:33:10 -07:00
Preston Van Loon
cc643ac4cc
native-state: Simplify MarshalSSZ ( #10677 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-11 14:25:11 +00:00
Nishant Das
abefe1e9d5
Add Sync Block Topic Fuzz Target ( #10676 )
...
* add new target
* remove
* Update beacon-chain/sync/BUILD.bazel
2022-05-11 13:18:12 +00:00
Nishant Das
b4e89fb28b
Add in State Fuzzing ( #10375 )
...
* add it in
* build tags
* gaz
* remove dependency on fast-ssz for now
* copy and comment
* add in native state
* fix build
* no assert on invalid input, just return
* Add failing case
* fix it up
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-05-11 12:47:54 +00:00
terencechain
4ad1c4df01
Cache and use justified and finalized payload block hash ( #10657 )
...
* Cache and use justified and finalized payload block hash
* Fix tests
* Use real byte
* Fix conflicts
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 21:20:28 +00:00
terencechain
6a197b47d9
Call fcu on invalid payload ( #10565 )
...
* Starting
* remove finalized root
* Just call fcu
* Review feedbacks
* fix one test
* Fix conflicts
* Update execution_engine_test.go
* Add a test for invalid recursive call
* Add comprehensive recursive test
* dissallow override empty hash
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 20:02:00 +00:00
Radosław Kapka
d102421a25
Improve ReceiveBlock's comment ( #10671 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-10 19:13:28 +00:00
Radosław Kapka
7b1490429c
Add link to e2e docs in README ( #10672 )
2022-05-10 14:16:40 +00:00
terencechain
bbdf19cfd0
Process atts and update head before proposing ( #10653 )
...
* Process atts and updeate head
* Fix ctx
* New test and old tests
* Update validator_test.go
* Update validator_test.go
* Update service.go
* Rename to UpdateHead
* Update receive_attestation.go
* Update receive_attestation.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 23:12:50 +00:00
Radosław Kapka
5d94030b4f
Cleanup of stategen package ( #10607 )
...
* powchain and stategen
* revert powchain changes
* rename field to blockRootsOfSavedStates
* rename params to blockRoot
* review feedback
* fix loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 22:25:47 +00:00
terencechain
16273a2040
Add engine timeout values ( #10645 )
...
* Add timeout values
* Update engine_client.go
* Update engine_client.go
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/powchain/engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update engine_client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-05-09 20:02:20 +00:00
Preston Van Loon
97663548a1
fuzz: Add fuzz tests for sparse merkle trie ( #10662 )
...
* Add fuzz tests for sparse merkle trie and change HTR signature to return an error
* fix capitalization of error message
2022-05-09 16:51:48 +00:00
Radosław Kapka
7d9d8454b1
Improvements to powchain package ( #10652 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 13:57:34 +00:00
Radosław Kapka
21bdbd548a
Deduplicate native state (a.k.a. One State to rule them all) ( #10483 )
...
* v0
* getters/setters
* init and copy
* hasher
* all the nice stuff
* make bazel happy
* remove tests for smaller PR
* remove old states
* move files
* import fixes
* custom MarshalSSZ
* fixed deadlock
* copy version when copying state
* correct issues in state_trie
* fix Copy()
* better e2e comment
* add code to minimal state
* spectest test
* Revert "Auxiliary commit to revert individual files from 84154423464e8372f7e0a03367403656ac5cd78e"
This reverts commit 9602599d183081291dfa0ba4f1036430f63a7822.
* native state assert
* always error
* always log
* more native state usage
* cleanup
* remove empty line
* Revert "spectests"
This reverts commit 1c49bed5d1cf6224afaf21e18562bf72fae5d2b6.
# Conflicts:
# beacon-chain/powchain/service.go
# beacon-chain/state/v1/state_trie.go
# beacon-chain/state/v2/state_trie.go
# beacon-chain/state/v3/state_trie.go
# testing/spectest/shared/phase0/finality/BUILD.bazel
# testing/spectest/shared/phase0/finality/runner.go
* dedup field trie
* fix test issues
* cleanup
* use correct field num in FinalizedRootProof
* use existing version constant
* halfway there
* "working" version
* some fixes
* fix field nums in tests
* rename v0types to nativetypes
* Revert "Auxiliary commit to revert individual files from dc549b1cf8e724bd08cee1ecc760ff3771d5592d"
This reverts commit 7254d3070d8693b283fc686a2e01a822ecbac1b3.
* uncomment code
* remove map size
* Revert "Revert "spectests""
This reverts commit 39c271ae6b .
* use reverse map
* Revert "Revert "Revert "spectests"""
This reverts commit 19ba8cf95c .
* finally found the bug
(cherry picked from commit a5414c4be1bdb61a50b391ea5301895e772cc5e9)
* simplify populateFieldIndexes
* fix copy
(cherry picked from commit 7da4fb8cf51557ef931bb781872ea52fc6731af5)
* remove native state from e2e
* remove index map
* unsupported functions
* Use ProtobufBeaconState() from native state
* tests
* typo
* reduce complexity of `SaveStatesEfficient`
* remove unused receiver name
* update doc.go
* fix test assertion
* fix test assertion 2
* Phase0 justification bits
* bring back state tests
* rename fieldIndexRev
* versioning of ToProto
* remove version check from unexported function
* hasher tests
* don't return error from JustificationBits
* extract fieldConvertersNative
* helper error function
* use fieldConvertersNative
* Introduce RealPosition method on FieldIndex
* use RealPosition in hasher
* remove unused fields
* remove TestAppendBeyondIndicesLimit
(cherry picked from commit 3017e700282969c30006b64c95c21ffe6b166f8b)
* simplify RealPosition
* rename field interface
* use helper in proofs.go
* Update beacon-chain/core/altair/upgrade.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-09 13:02:34 +00:00
Nishant Das
e2caaf972f
Fix Multiclient E2E Runs ( #10660 )
2022-05-09 12:38:11 +02:00
Nishant Das
c5ddc266ae
Perform Request Size Limiting When Caching Eth1 Headers ( #10649 )
...
* rate limit reqs
* fix issues
* make it better
* final check
* terence's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-09 03:19:23 +00:00
Nishant Das
74518f0e1b
Log Out Missing Validators in Participation Drops ( #10624 )
...
* debug failures
* clean up
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-05-09 01:44:47 +00:00
terencechain
122c3f44cc
Insert over-the-wire slashing to forkchoice ( #10615 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
* Add insertSlashingsToForkChoiceStore
* Fix equality checks, add tests
* Update process_block.go
* Fix equality check for doublylinked
* More checks
* Rm err return
* Consider slashings over the wire
* Update new_slot_test.go
* Fix spec tests
* Add ReceiveAttesterSlashing
* Update mock.go
* Revert spec test changes
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-07 15:56:34 +00:00
kasey
b1b13cfca7
simplify config names, use strings ( #10656 )
...
* simplify config names, use strings
* lint
Co-authored-by: kasey <kasey@users.noreply.github.com >
2022-05-06 21:42:27 +00:00
Preston Van Loon
495013e832
Update github actions to go 1.18 ( #10655 )
2022-05-06 17:50:52 +00:00
kasey
ae82c17dc3
run process_slots before caching committee data ( #10639 )
...
* demonstrate issue with committee caching in e2e
* lint
* run process_slots before caching committee data
* pass transitioned state to UpdateCommitteeCache
* don't run extra epochs w/ web3signer
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-06 14:33:09 +08:00
Potuz
8bd1f16223
Remove unused method ( #10643 )
2022-05-05 21:46:28 +02:00
kasey
58b18c7996
Fix URL handling in beacon node api client ( #10632 )
...
* if url.Parse suceeds, don't mess with node urls
* lint
* add test case for basic auth
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-05 16:03:31 +00:00
terencechain
dda48c452d
Move head change attestation log ( #10636 )
2022-05-05 15:09:58 +00:00
Potuz
025d053fa4
Change log when head changes ( #10633 )
2022-05-05 11:40:21 +00:00
terencechain
7af89a82c9
Use justified hash as safe block hash ( #10627 )
...
* Use justified hash as safe block hash
* Remove debug log
* Feedback
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-05 00:36:09 +00:00
kasey
10e1f04ce4
Checkpoint sync fixes ( #10630 )
...
* fixes for checkpoint sync
* improve node version regex; real client test cases
* add test case for checkpoint sync finalization fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-05-04 23:41:33 +00:00
Preston Van Loon
5817090b59
Remove junk metadata file ( #10626 )
2022-05-04 17:26:01 +00:00
Potuz
df695346a5
process slashings once ( #10621 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 14:51:18 +00:00
Nishant Das
f9b4a340a3
Graduate Orphaned Attestation Insertion Feature ( #10622 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 13:59:41 +00:00
Preston Van Loon
d2dbc13427
fuzz: Fix tests with fuzz tags ( #10619 )
...
* some fixes to fuzz building
* use len
* remove comments
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 06:15:09 +00:00
Nishant Das
e5e4dee629
Update Batch Verification Routine ( #10127 )
...
* add changes so far
* a lot of tests
* add flags and comments
* raul's comment
* raul's review
* fix build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 04:47:53 +00:00
Raul Jordan
ab2b0c5c99
Use Single Beacon Block Wrapper Function Across Prysm ( #10608 )
...
* remove altair wrappers in favor of generic ones for blocks
* rem deprecated
* body wrapper
* builds
* nil check
2022-05-04 11:55:35 +08:00
terencechain
7c3147ca89
Fix isProcessedBlock order of operation ( #10620 )
2022-05-04 01:28:08 +00:00
terencechain
03ae8672b6
Refactor and use has_block getter ( #10592 )
...
* Refactor and use has block getter
* Update blocks_fetcher_utils.go
* Fix tests
* Fix tests
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-04 00:17:40 +00:00
Preston Van Loon
f763b35494
fuzz: build with -tags=fuzz,blst_disabled ( #10618 )
2022-05-03 22:19:05 +00:00
Preston Van Loon
51581e9b6e
Spectest: refactor forkchoice helper ( #10616 )
...
* Seperate forkchoice builder for lower cognitive score and better reusablity
* gaz
* deepsource resolutions
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 20:59:07 +00:00
terencechain
e5ee7f7e8b
Don't mark undefined ee error block bad for regular processing ( #10613 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 20:12:58 +00:00
Nishant Das
d0fabd86fb
Fix Flaky Sync Committee Evaluator ( #10600 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 19:26:59 +00:00
Raul Jordan
5315c45453
More Useful Log When Auth Fails to Execution Client ( #10609 )
...
* more helpful auth message when auth to engine does not work
* better language
* clarity
* check for 401
* fix panic
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 18:40:08 +00:00
terencechain
55883876e4
Update consensus spec version to v1.1.10 ( #10614 )
2022-05-03 17:54:08 +00:00
Radosław Kapka
1d587c0e95
No timeout for API events ( #10611 )
...
* no event timeout
* Revert "Auxiliary commit to revert individual files from 1bfe8327ed02104432cc6bde09ac6afc8fb21f62"
This reverts commit 5f7aa10e5bc0bc18a414efdf425ae90cbcf08b99.
* proper solution
* comment fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 17:42:06 +00:00
terencechain
d4fa490dec
Handle blind block for DB ( #10580 )
...
* Handle blind block for DB
* Update blinded_beacon_block_bellatrix_test.go
* Update blocks_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 16:55:59 +00:00
Raul Jordan
59041cf868
Warn Users if EE Returns Unexpected Fee Recipient Address ( #10604 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 15:18:42 +00:00
terencechain
8f1ee146a9
Use notify engine if changed head method ( #10606 )
...
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-03 14:31:31 +00:00
Radosław Kapka
a5f1dcaa65
Revert "Simplify Initial Sync ( #10523 )" ( #10610 )
...
* Revert "Simplify Initial Sync (#10523 )"
This reverts commit 3b69f7a196 .
* comment
2022-05-03 11:39:53 +00:00
terencechain
9615484fe9
notifyForkchoiceUpdate can prune invalid blocks ( #10510 )
...
* notifyForkchoiceUpdate can prune invalid blocks
* define and use ErrInvalidPayload
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-03 03:48:58 +00:00
terencechain
5ad4f14ffc
Use remove equivocating validators ( #10603 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
* Add insertSlashingsToForkChoiceStore
* Fix equality checks, add tests
* Update process_block.go
* Fix equality check for doublylinked
* More checks
* Rm err return
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-05-03 00:46:05 +00:00
Potuz
4c869fa587
remove equivocating votes from forkchoice ( #10597 )
...
* remove equivocating votes from forkchoice
* shutup deepsource
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-02 19:19:03 +00:00
Raul Jordan
20ab988a4a
Rename Block Package in Consensus-Types to Interfaces ( #10605 )
...
* interfaces package
* builds
* gaz
2022-05-02 14:32:37 -04:00
Raul Jordan
16bbf5602f
Move Consensus Type Wrappers Into Consensus Types Package ( #10598 )
...
* builds
* move block to consensus-types
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-05-02 15:43:40 +00:00
Potuz
f9113dfd06
Forkchoice use parent hash when removing invalid blocks ( #10594 )
2022-05-02 06:53:22 -07:00
terencechain
0faf7ac01f
Debug log when new head is not in db ( #10591 )
2022-04-29 14:26:39 -07:00
Preston Van Loon
9d2bdfe14d
p2p: Fix pubsub fuzz test ( #10583 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 18:20:18 +00:00
Nishant Das
ad03938964
Fix Doppelganger Check ( #10582 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-29 17:19:43 +00:00
Raul Jordan
84916672c6
Remove Eth2-Types Dependency in Prysm ( #10578 )
...
* replace eth2 types
* replace protos
* regen proto
* replace
* gaz
* deps
* amend
* regen proto
* mod
* gaz
* gaz
* ensure build
* ssz
* add dep
* no more eth2 types
* no more eth2
* remg
* all builds
* buidl
* tidy
* clean
* fmt
* val serv
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-29 10:32:11 -04:00
Nishant Das
2f29bb64f6
Fallback To Rebuilding Deposit Tries ( #10562 )
...
* fallback
* fix it
* make it clearer
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 09:33:59 +00:00
terencechain
156e40e886
Clean up optimistic candidate block usages ( #10579 )
...
* Clean up optimistic candidate block usages
* More clean ups
* Update godoc comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-29 08:43:51 +00:00
terencechain
b7a82d0fd1
Can retrieve cached initial sync block and db block ( #10568 )
...
* Save cached initial sync blocks before getting head block
* Add better abstraction to get block
* Move unlock read to a better location
* Feedbacks
* Add head changed logging
* Harder hasBlock requirement
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update receive_attestation.go
* Don't process head if the block is unknown
* Use a helper method
* Fix test
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-29 07:56:31 +00:00
Raul Jordan
61bfb77120
Max Epoch Helper from Eth2-Types ( #10581 )
...
* max epoch helper from eth2 types
* gaz
* godoc
* Update consensus-types/primitives/epoch_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-29 02:16:02 +00:00
Raul Jordan
7b03d901ee
Fix Nogo Lint Ignore for Go 1.18 ( #10577 )
...
* builds
* builds
* fatal
* edit
2022-04-28 18:10:43 +00:00
Raul Jordan
7a3df7642b
Update Prysm to Go 1.18 ( #10576 )
...
* update go
* Update rules_go patch
* Update gazelle
* begin building
* qtls
* gaz
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-04-28 13:07:29 -04:00
Mike Neuder
231208c977
Refactor validator accounts list to remove cli context dependency ( #10554 )
...
* accounts list cleanup
* go.sum
* go mod tidy -compat=1.17
* add comment back
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-04-28 14:46:46 +00:00
Raul Jordan
001f719cc3
Move ETH2 Types Into Prysm ( #10534 )
...
* move eth2 types into Prysm
* bazel
* lint
* use existing math helpers
* rem eth2-types dep
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-28 13:57:40 +00:00
Nishant Das
58ad800553
Cleanup Discarded Connections Correctly ( #10574 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-28 13:09:03 +00:00
Radosław Kapka
2060f876b1
Code cleanup in blockchain module ( #10566 )
...
* Code cleanup in `blockchain` module
* revert comment fix
* remove test
* forkchoice test fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-28 11:34:25 +00:00
james-prysm
e226237590
Fee Recipient: improve logs ( #10571 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-28 10:48:05 +00:00
Preston Van Loon
314ef8e1bd
Add support for blst modern builds on linux amd64 ( #10567 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-28 10:02:02 +00:00
Nishant Das
a428664eb5
Fix Broken E2E Runs ( #10572 )
...
* fix broken e2e
* hack but works
* make it super ugly
* fix
* fix again
* revert it
* dont make everything exclusive
* gaz
2022-04-28 08:45:59 +00:00
Nishant Das
7c3d89b25f
Graduate Batch Gossip Verification Feature ( #10553 )
...
* grad feat
* fix stuck tests
2022-04-26 08:28:35 -04:00
Radosław Kapka
f4c004085b
Add lock around reading eth1data ( #10557 )
...
* Add lock around reading eth1data
* fix lock pattern
* more locking
* move lock inside loop
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-04-26 06:19:14 +00:00
terence tsao
c0e207eb47
Add proposer index and graffiti to received block log ( #10564 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-04-25 20:51:10 +00:00
terence tsao
7003d97061
Don't mark block as bad with unknown ee error ( #10556 )
...
* Don't mark block as bad with unknown ee error
* Some tests
* Comments
* Comments
2022-04-25 18:41:35 +00:00
Radosław Kapka
957d853a2f
Blinded block APIs ( #10331 )
2022-04-25 17:42:58 +02:00
james-prysm
29695d8906
Fee Recipient: API/logs run only after bellatrix ( #10543 )
...
* initial commit
* unit test
* Update validator/client/validator.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* updating check based on review comments
* adjusting how logs are used
* adding in git add .
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-04-25 13:34:20 +00:00
Nishant Das
a8ba5e7dd8
Disable Transaction Evaluator ( #10563 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-25 10:13:11 +00:00
Nishant Das
0ad190c1fb
Graduate Balance Trie Feature ( #10552 )
2022-04-25 11:16:41 +02:00
Raul Jordan
2e056b38da
Engine API Proxy Utility for Merge Testing ( #10533 )
...
* execution client package renaming
* define interceptors and options
* further clean
* further dedup
* further simplify
* rev
* rem
* more modifications
* further clean
* defines tests
* pass first test
* proper tests
* all tests in
* gaz
* lint
* wait start
* assign on ports
* gaz
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-04-25 05:03:05 +00:00
james-prysm
966de59478
E2E: switching to run time generated yaml for web3signer ( #10513 )
...
* switching to run time generated yaml
* fixing bazel
* fixing unit test
* fixing linter problems
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-23 08:41:24 +00:00
terence tsao
c8919bd233
Move validate merge transition block outside of notify new payload ( #10526 )
...
* Move validate merge transition block
* Update process_block_test.go
* Conflict, use swith err
* Update execution_engine.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-23 08:11:15 +00:00
Nishant Das
baa2e2e340
Fix Transaction Pool in E2E ( #10561 )
2022-04-22 21:13:11 +00:00
Nishant Das
7765d275d1
Add in State Slot for Sync Committee Cache ( #10475 )
...
* add changes
* Update beacon-chain/core/helpers/sync_committee_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-04-22 08:03:32 +00:00
Håvard Anda Estensen
2fd7c926ed
Use the T.TempDir and B.TempDir to create temp dirs for testing ( #10560 )
...
* Use t.TempDir and b.TempDir for temporary test dirs
* Remove redundant dir cleanup
2022-04-21 20:45:44 +00:00
moshe-blox
21fc9853ee
Encode empty extra_data as "0x" and base_fee_per_gas as Uint256 i… ( #10539 )
...
* Encode empty `extra_data` as "0x" and `base_fee_per_gas` as Uint256 in the Beacon API
* Fixed parsing of Uint256 in the API
* Add missing tests for empty hex & Uint256 fields in `apimiddleware`
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-04-21 15:44:38 +00:00
Radosław Kapka
642de455d5
Update Beacon API's Postman collection to 2.2.0 ( #10559 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-21 15:07:58 +00:00
Radosław Kapka
d371cd6e89
Add lock to PeerStatusScorer.SetHeadSlot ( #10558 )
...
(cherry picked from commit e04e4795c81ea939cf8996c632c52598cd69d170)
2022-04-21 15:02:20 +00:00
james-prysm
c8a7f6f0bd
Suggested Fee Recipient : bug fix ( #10555 )
...
* initial commit
* adding unit tests
* Update validator/client/validator.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* fixing unit tests based on suggestions
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-21 03:57:19 +00:00
Nishant Das
d7a7fa025d
Graduate Active Balance Cache Feature ( #10550 )
...
* graduate feature
* gaz
* clear cache
2022-04-21 02:59:52 +00:00
Nishant Das
6b6ac4c3fb
Graduate Optimized Balance Update Feature ( #10549 )
...
* graduate feat
* stop imports
* gaz
2022-04-20 09:02:33 +00:00
Nishant Das
3b8651cbf4
Graduate Optimized Get Block Feature ( #10548 )
2022-04-19 22:30:29 -07:00
Preston Van Loon
9d29d2f4bf
Update libp2p to latest release ( #10423 )
...
* Update libp2p to latest release
* gazelle
* fix panic in tests
* gaz
* fix conflicts
* revert back
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-04-19 12:53:58 +00:00
Nishant Das
3d205a387c
Remove Proposer Selection Feature ( #10547 )
...
* remove config option
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-19 08:59:19 +00:00
Nishant Das
269b382229
Fix E2E Failures ( #10540 )
...
* fix it
* fix all issues
* gaz
* fix yaml
* Update config/params/testdata/e2e_config.yaml
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update testing/endtoend/minimal_e2e_test.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: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-19 07:53:02 +00:00
Preston Van Loon
80ebbcf03e
gocognit: Lower complexity threshold to 100, fix a few complexity issues ( #10542 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-19 07:12:24 +00:00
terence tsao
32ebe94515
Clean up batch process block ( #10520 )
2022-04-19 06:44:25 +00:00
Håvard Anda Estensen
d2f4a8cc7c
Replace ioutil with io and os ( #10541 )
...
* Replace ioutil with io and os
* Fix build errors
2022-04-18 20:42:07 +00:00
Giulio rebuffo
982de94428
misleading comment in receive_block.go ( #10538 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-18 12:15:28 +00:00
terence tsao
a41025e5ec
Rename optimistic_sync.go to execution_engine.go ( #10537 )
...
* Rename optimistic_sync.go to execution_engine.go
* Update BUILD.bazel
2022-04-18 05:49:48 +00:00
terence tsao
3ce26ae7e2
Add process payload header ( #10529 )
...
* Add process payload header
* Update block.go
* Remove unused receivers
* Use errors vars
* Add some comments
* Add some comments
2022-04-17 07:02:59 +00:00
terence tsao
1acedd5b01
Rename receipt root to receipts root ( #10535 )
2022-04-16 13:18:07 +00:00
Radosław Kapka
a0679c70d3
Service constructors and Start() - better separation of concerns ( #10532 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
* deterministic-genesis
* sync
* rpc
* monitor
* validator-client
* test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-16 02:45:35 +00:00
Leo Lara
7f53700306
Remove feature and flag Pyrmont testnet ( #10522 )
...
* Remove feature and flag Pyrmont testnet
* Remove unused parameter
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-15 15:30:32 +00:00
Radosław Kapka
3b69f7a196
Simplify Initial Sync ( #10523 )
...
* move waitForStateInitialization to Start
* remove channel
* handle error in test
* fix service tests
* use fatal log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-15 13:32:31 +00:00
Nishant Das
72562dcf3a
Fix Another Off By 1 In Our Finalized Trie ( #10524 )
...
* fix everything
* fix more
* fix test
* Update beacon-chain/powchain/service.go
* Update beacon-chain/powchain/service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-04-15 12:51:56 +00:00
Preston Van Loon
cc23b8311a
Static analysis: gocognit ( #10527 )
...
* Add gocognit to static analyzers with a very high threshold
* edit readme and sort analyzers
2022-04-15 06:29:07 +00:00
terence tsao
cbe54fe3f9
Handle nil execution block response when logging TTD ( #10502 )
2022-04-13 19:47:04 -07:00
Nishant Das
1b6adca3ca
Handle Finalized Deposit Insertion Better ( #10517 )
2022-04-13 10:08:19 +02:00
Nishant Das
1651649e5a
Update to 1.17.9 ( #10518 )
2022-04-13 05:25:13 +00:00
Potuz
56187edb98
Use forkchoice first when checking canonical status ( #10516 )
2022-04-12 21:34:13 -03:00
Preston Van Loon
ecad5bbffc
e2e: Provide e2e config yaml to web3signer ( #10123 )
...
* e2e: Provide e2e config yaml to web3signer
* fix build for //testing/endtoend:go_default_test
* Update with web3signer with teku fixes
* buildifier
* Add slasher case for web3signer
* Update testing/endtoend/minimal_e2e_test.go
* Update web3signer to 21.10.6
* Revert "Update web3signer to 21.10.6"
This reverts commit bdf3c408f2 .
* Remove slasher part of web3signer e2e tests
* Revert "Remove slasher part of web3signer e2e tests"
This reverts commit 24249802ae .
* fix slasher web3signer test
* fixing build
* updating yaml to match testnet_e2e_config.go
* trying a different order to the e2e test and adding a log
* trying different way to kill process
* handling unhandled error
* testing changes to config WIP
* fixing bazel WIP
* fixing build
* ignoring test for now to test
* fixing bazel
* Test only web3signer e2e
* rolling back some commits to test
* fixing bazel
* trying an updated web3signer version
* changing flag to match version
* trying current version of develop for web3signer
* testing not using the --network property
* addressing build error
* testing config change
* reverting to go bakc to using the network file
* testing adding epochs per sync committee period
* rolling back configs
* removing check to test
* adding log to get sync committee duties and changing bellatrix fork epoch to something large and altair to epoch 1
* fixing bazel
* updating epoch in config file
* fixing more descrepencies between the configurations
* removing un used yaml
* removing goland added duplicates
* reverting using network minimal
* fixing bug
* rolling back some changes
* rolling back some changes
* rolling back changes
* making sure web3signer test doesn't make it to bellatrix fork yet
* reverting changes I did not touch
* undo comment
* Update testing/endtoend/deps.bzl
* Apply suggestions from code review
* rm nl
* fix //testing/endtoend:go_mainnet_test
* Remove unnecessary dep
* fix //testing/endtoend:go_mainnet_test
* addressing review comments
* fixing build and internal conflict
* removing web3signer slasher test as it's unneeded due to the interface nature of key signing, the regular slashing test is enough
* fix: The validator we fetch from the binary can only run before altair, if you add that and the web3signer then these things can never run together as the web3signer sets it to before bellatrix
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: James He <james@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-12 16:57:46 +00:00
Nishant Das
407182387b
fix it all ( #10511 )
2022-04-12 19:50:29 +08:00
terence tsao
ad0b0b503d
Move GetTerminalBlockHash to powchain engine ( #10500 )
...
* Move GetTerminalBlockHash to powchain engine
* Update service.go
* Update service.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-12 10:19:07 +00:00
terence tsao
58f4ba758c
Metrics tracking EE VALID/SYNCING/INVALID response counter ( #10504 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-04-12 09:51:13 +00:00
james-prysm
64f64f06bf
Remote Key Manager API(web3signer) ( #10302 )
...
* removing flag requirement, can run web3signer without predefined public keys
* placeholders for remote-keymanager-api
* adding proto and accountschangedfeed
* updating generated code
* fix imports
* fixing interface
* adding work in progress apimiddleware code
* started implementing functions for remote keymanager api
* fixing generted code from proto
* fixing protos
* fixing import format
* fixing proto generation again , didn't fix the first time
* fixing imports again
* continuing on implementing functions
* implementing add function
* implementing delete API function
* handling errors for API
* removing unusedcode and fixing format
* fixing bazel
* wip enable --web when running web3signer
* fixing wallet check for web3signer
* fixing apis
* adding list remote keys unit test
* import remote keys test
* delete pubkeys tests
* moving location of tests
* adding unit tests
* adding placeholder functions
* adding more unit tests
* fixing bazel
* fixing build
* fixing already slice issue with unit test
* fixing linting
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/types.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/node/node.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/types.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* adding comment on proto based on review
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* adding generated code based on review
* updating based on feedback
* fixing imports
* fixing formatting
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing event call
* fixing dependency
* updating bazel
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing comment from review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-04-11 16:05:40 -04:00
terence tsao
e70055733f
Save state to DB after proposer boost ( #10509 )
2022-04-11 16:51:49 +00:00
Radosław Kapka
36e4f49af0
Bellatrix evaluators ( #10506 )
...
* defensive nil check
* separate ExecutionPayload/Header from codegen
* tell bazel about this new file
* Merge: support terminal difficulty override (#9769 )
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef .
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512 .
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20 .
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* Blocked stream
(cherry picked from commit f362af9862db680b6352692217ad5c08d44a1e86)
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
* remove duplicate param
* test
* revert some test changes
* Initial version of EE tx count
* evaluate all txs in epoch
* remove logs
* uncomment tests
* remove unwanted change
* parameterize ExpectedExecEngineTxsThreshold
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in >
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-11 13:45:22 +00:00
terence tsao
d98428dec4
Can prune nodes from canonical and payload maps ( #10496 )
...
* Can prune nodes from canonical and payload maps
* Update store_test.go
* prune payload hashes, canonical nodes and better testing
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-04-11 11:08:50 +00:00
Nishant Das
00b92e01d3
Fetch Non Finalized Deposits Better ( #10505 )
2022-04-11 09:59:22 +02:00
Potuz
ca5adbf7e4
Fix optimistic logging ( #10503 )
2022-04-09 23:09:04 +00:00
Nishant Das
a083b7a0a5
Set Auth Differently In Our Powchain Constructor ( #10501 )
2022-04-09 11:03:05 +02:00
Raul Jordan
dd5995b665
Proper Connection Management for ETH JSON-RPC Client for Startup and Runtime ( #10498 )
...
* begin connection management revamp
* kiln runs
* retry
* reconnect
* add
* rpc connect fix
* remove logging
* logs
* retry
* default value for web3flag
* test pass
* comments
* ensure auth works
2022-04-09 09:28:40 +08:00
Taranpreet26311
6903d52dde
Added horusec ( #10499 )
...
* Added horusec
* Improving aesthetics
* Restrict branch
2022-04-08 10:52:04 -04:00
Potuz
ac8d27bcf1
Deal with node balance underflow ( #10492 )
...
* deal with balance underflow
* fix log format
* preston's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-04-07 17:38:48 +00:00
Nishant Das
8d6afb3afd
Fix Issues From Multiclient E2E ( #10486 )
...
* fix it
* fix index addition
* fix sync issues
* make it nicer
2022-04-07 01:52:24 +00:00
james-prysm
d51f716675
web3signer: fixes json altair block ( #10490 )
...
* fix
* fixing naming
2022-04-07 08:24:30 +08:00
terence tsao
0411b7eceb
Payload ID caching ( #10481 )
2022-04-06 16:36:52 -07:00
Radosław Kapka
8dfc80187d
Fix receipts root field name in API Middleware ( #10488 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-06 21:56:11 +00:00
terence tsao
3833f78803
Remove invalid nodes ( #10399 )
2022-04-06 14:24:00 -07:00
Potuz
83a83279d4
Remove synced tips and use last valid hash ( #10439 )
...
* Remove synced tips
use last valid hash in removing invalid nodes.
* add test
* Remove unused code
* More unused parameters
* Fix proposer boost
* terence's review #1
* Fix conflicts
* terence's review 2
* rename argument
* terence's review #3
* rename optimistic -> status
* Minor clean up
* revert loop variable change
* do not mark lvh as valid
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-04-06 14:18:30 +00:00
terence tsao
bdab34fd01
Use correct head for notifyForkchoiceUpdate ( #10485 )
...
* Use correct head for notifyForkchoiceUpdate
* Fix existing tests
* Update receive_attestation_test.go
2022-04-06 19:05:53 +08:00
kasey
de0143e036
save origin block root before finalize ( #10463 )
...
* save origin block root before finalize
* add test for SaveOrigin
* goimports :(
* signature to LoadGenesis changed in a diff PR
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-04-05 17:13:53 +00:00
Nishant Das
2a7a09b112
Add Lock Analyzer ( #10430 )
...
* add lock analyzer
* fix locks
* progress
* fix failures
* fix error log
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-04-05 16:39:48 +00:00
terence tsao
984575ed57
Optimistic check: handle zeros check point root ( #10464 )
...
* Handle zero roots
* Update chain_info_test.go
* Update chain_info_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-05 14:37:25 +00:00
Nishant Das
927e338f9e
Enable Bellatrix E2E ( #10437 )
...
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef .
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512 .
* Fix run time
* add in all the fixes
* fix evaluator bugs
* latest fixes
* sum
* fix to be configurable
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* fix broken conditional checks
* fix all issues
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Revert "fix broken conditional checks"
This reverts commit e118db6c20 .
* LH multiclient working
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* fix race
* fix test
* Fix base fee per gas
* Fix notifypayload headroot
* tx fuzzer
* clean up with develop branch
* save progress
* 200tx/block
* add LH flags
* Sync with devleop
* cleanup
* cleanup
* hash
* fix build
* fix test
* fix go check
* fmt
* gosec
* add deps
* cleanup
* fix up
* change gas price
* remove flag
* last fix
* use new LH version
* fix up
* fix finalized block panic
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in >
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-04-05 14:02:46 +00:00
terence tsao
f44c99d92a
Add blinded beacon block protobufs and wrappers ( #10473 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-04-05 14:57:19 +02:00
terence tsao
7d669f23ab
Sync: process pending block with optimistic parent ( #10480 )
2022-04-04 18:46:05 -07:00
terence tsao
9b64c33bd1
RPC: GetValidatorPerformance for Bellatrix ( #10482 )
2022-04-04 19:50:57 -04:00
Potuz
defa602e50
Adapt Doppelganger to Altair ( #9969 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-04-04 15:55:55 +02:00
Radosław Kapka
67c8776f3c
Fix execution payload field names in API Middleware ( #10479 )
2022-04-04 13:19:31 +02:00
Mohamed Zahoor
896d186e3b
process the optimistic blocks whose parent are optimistic too ( #10350 )
...
* process the optimistic blocks whose parent are optimistic too
* adding unit test
* fix test
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-04-03 23:57:52 -03:00
Raul Jordan
edb98cf499
Move Engine API to Powchain and Consolidate Connection Management ( #10438 )
...
* gazelle
* tests passing
* use the same engine client
* pass
* initialize in right place
* erge
* build
* imports
* ensure engine checks work
* pass powchain tests
* powchain tests pass
* deepsource
* fix up node issues
* gaz
* endpoint use
* baz
* b
* conf
* lint
* gaz
* move to start function
* test pass
2022-04-01 14:04:24 -04:00
Potuz
ce15823f8d
Save head after FCU ( #10466 )
...
* Update head after FCU
* rename function
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-04-01 00:08:01 +00:00
terence tsao
7cdc741b2f
Sync: don't set block to bad due to timeout ( #10470 )
...
* Add filter error and tests
* Update BUILD.bazel
* Kasey's feedback
2022-03-31 23:29:27 +00:00
terence tsao
5704fb34be
Remove duplicated engine mock ( #10472 )
...
* Rm mock
* udpate
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-03-31 19:14:09 -04:00
Preston Van Loon
3e2a037d42
github workflows: pin go version to 1.17 ( #10471 )
...
* github workflows: pin go version to 1.17
* Update go.yml
* Revert "Update go.yml"
This reverts commit 4a2d36d05d .
* pin golangci-lint
* try go 1.17
* Revert "Revert "Update go.yml""
This reverts commit 8a89663874 .
* move and increase version of checkout
* attempt to ignore export path
* try with entrypoint only
* try some rearranging of stuff
* Split up jobs
* Use hack mentioned in https://github.com/securego/gosec/issues/469\#issuecomment-643823092
* Delete dappnode release trigger
* rm id
* try pin golangci-lint version
* try pin golangci-lint version
* Do not provide a specific go version and lets see what happens
* comment checkout, wtf is wrong with github actions
* it works locally...
* trying with some cache key for lint...
* Revert "trying with some cache key for lint..."
This reverts commit c4f5ae4495 .
* try tellign it to skip go installation
* revert commented line, do something to satisify deepsource
* do something to satisify deepsource
2022-03-31 22:16:14 +00:00
Potuz
177f9ccab0
Return historical non-canonical blocks as optimistic ( #10446 )
...
* Return historical non-canonical blocks as optimistic
* terence's review
2022-03-31 12:51:14 +00:00
Potuz
649dee532f
insert block to forkchoice after notifyNewPayload ( #10453 )
...
* insert block to forkchoice after notifyNewPayload
* Add optimistic candidate check
* Terence's review
* Apply suggestions from code review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-31 09:17:49 -03:00
terence tsao
4b3364ac6b
Log terminal total difficulty status ( #10457 )
...
* Log terminal total diff status
* Update check_transition_config.go
* Update BUILD.bazel
* Update check_transition_config.go
* Update check_transition_config.go
* Update check_transition_config.go
2022-03-31 03:05:23 +00:00
kasey
0df8d7f0c0
refactor genesis state flag handling, support url ( #10449 )
...
* refactor genesis state flag handling, support url
* lint fix
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-30 22:23:34 +00:00
Mike Neuder
ade7d705ec
Cleanup of Keymanager Deleter interface ( #10415 )
...
* Migrating Keymanager account list functionality into each keymanager type
* Addressing review comments
* Adding newline at end of BUILD.bazel
* bazel run //:gazelle -- fix
* account deleter cleanup
* bazel run //:gazelle -- fix
* remove stale logging statement
* adding deleter interface to mock functions
* fixing deepsource findings
* go.sum
* bazel run //:gazelle -- fix
* go mod t-dy -compat=1.17
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-03-30 16:52:54 -05:00
Preston Van Loon
c68894b77d
Spectest: Improve test size and timeouts ( #10461 )
...
* Adjust test sizes
* Improve the bazel test attributes for forkchoice and other tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-30 20:04:42 +00:00
terence tsao
fe98d69c0a
Clean up blockchain pkg ( #10452 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-30 17:45:24 +00:00
terence tsao
7516bc0316
Fix execution block's base fee endianess marshal/unmarshal ( #10459 )
2022-03-30 10:17:18 -07:00
Radosław Kapka
be6f3892e8
Align Beacon API with 2.2.0 spec ( #10455 )
2022-03-30 15:17:19 +00:00
Potuz
588605ceeb
Remove TODOs that were already taken care of ( #10454 )
2022-03-30 13:24:02 +00:00
terence tsao
59b9519284
Forkchoice spec test: set boost with deterministic timing ( #10428 )
...
* Set boost with deterministic timing
* confs
* gaz
* Update runner.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-29 19:48:33 +00:00
Nishant Das
d4038fb752
add rlock ( #10444 )
2022-03-29 06:55:41 -07:00
Raul Jordan
56ab5872bb
Add Histogram Response Buckets to Engine API Methods ( #10414 )
...
* gaz
* defer payload func
* amend
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 22:17:31 +00:00
Raul Jordan
eb6d68a4b1
Deterministic Proposer Root Boosting in Forkchoice ( #10427 )
...
* begin refactor
* fix doubly linked tree tests
* pass
* fix up
* gaz
* buidl
* buidl more
* comment
* args check
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 21:34:41 +00:00
kasey
7920528ede
Checkpoint Sync 4/5 - enable checkpoint sync to be used by beacon node ( #10386 )
...
* enable checkpoint sync in beacon node
* lint fix
* rm unused error
* addressing PR feedback from Radek
* consistent slice -> fixed conversion
Co-authored-by: kasey <kasey@users.noreply.github.com >
2022-03-28 21:01:55 +00:00
Raul Jordan
1af3c07ec5
Stop Checking Transition Configuration Post-Merge ( #10413 )
...
* no longer check transition config after the merge
* nil check
* better payload check
* stop checking post merge based on received blocks
* add proper test
* gaz
* fix test
* lint
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-28 17:14:02 +00:00
terence tsao
7279349ae2
Cleanup helpers in beacon-chain/core/blocks/payload.go ( #10435 )
...
* less fragile check for execution payload
* gaz
* gaz
* include field
* clean up helpers for checking merge status
* Update beacon-chain/core/blocks/payload.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Update payload.go
* Rename
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-28 15:25:49 +00:00
Potuz
2d60d04b57
Update LastValidatedCheckpoint on DB ( #10412 )
...
* Update LastValidatedCheckpoint on DB
* fix conflicts
2022-03-28 14:48:14 +00:00
Nishant Das
ef8bc97d3e
more efficient ( #10440 )
2022-03-28 20:27:14 +08:00
Nishant Das
071f6de559
Fix Beacon API Responses For Bellatrix ( #10436 )
...
* fix bugs
* fix build
* simplify it
2022-03-26 07:34:29 +00:00
Preston Van Loon
b697463da9
wrapper: Remove deprecated fork specific wrapper methods for signed beacon blocks ( #10369 )
...
* Remove deprecated wrappers, lots of refactoring
* Revert proto/prysm/v1alpha1/validator.proto
* fix tests
* fix test
* fix conversion in e2e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 23:00:44 +00:00
kasey
bfbf693660
Checkpoint Sync 3/5 - beacon node api client lib and prysmctl cli tool ( #10385 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-25 17:18:03 +00:00
Radosław Kapka
ed07f4bd77
Add execution_optimistic field to API responses ( #10389 )
...
* protos
* grpc
* middleware
* event protos
* event backend
* event middleware
* fix tests
* use `IsOptimisticForRoot` with proper block instead of header
* better algorithm
* return proper error
* review
* optimistic return on bellatrix proposal
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 16:31:50 +00:00
terence tsao
1922416cac
Use correct pre state to call new payload ( #10416 )
...
* Update todo strings
* Go fmt
* add merge specific checks when receiving a block from gossip
* Fix beacon chain build
* Interop merge beacon state
* fix finding Transactions size
* Update go commit
* Merge union debugging (#9751 )
* changes test cases per ssz changes
* noisy commit, restoring pb field order codegen
* get rid of codegen garbage
* M2 works with Geth 🎉
* Fix bazel build //...
* restoring generated pb field ordering
* defensive nil check
* separate ExecutionPayload/Header from codegen
* tell bazel about this new file
* Merge: support terminal difficulty override (#9769 )
* Fix finding terminal block hash calculation
* Update mainnet_config.go
* Update beacon_block.pb.go
* Various fixes to pass all spec tests for Merge (#9777 )
* Proper upgrade altair to merge state
* Use uint64 for ttd
* Correctly upgrade to merge state + object mapping fixes
* Use proper receive block path for initial syncing
* Disable contract lookback
* Disable deposit contract lookback
* Go fmt
* Merge: switch from go bindings to raw rpc calls (#9803 )
* Disable genesis ETH1.0 chain header logging
* Update htrutils.go
* all gossip tests passing
* Remove gas validations
* Update penalty params for Merge
* Fix gossip and tx size limits for the merge part 1
* Remove extraneous p2p condition
* Add and use
* Add and use TBH_ACTIVATION_EPOCH
* Update WORKSPACE
* Update Kintsugi engine API (#9865 )
* Kintsugi ssz (#9867 )
* All spec tests pass
* Update spec test shas
* Update Kintsugi consensus implementations (#9872 )
* Remove secp256k1
* Remove unused merge genesis state gen tool
* Manually override nil transaction field. M2 works
* Fix bad hex conversion
* Change Gossip message size and Chunk SIze from 1 MB t0 10MB (#9860 )
* change gossip size and chunk size after merge
* change ssz to accomodate both changes
* gofmt config file
* add testcase for merge MsgId
* Update beacon-chain/p2p/message_id.go
Change MB to Mib in comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* change function name from altairMsgID to postAltairMsgID
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Sync with develop
* Merge branch 'develop' of github.com:prysmaticlabs/prysm into kintsugi
* Update state_trie.go
* Clean up conflicts
* Fix build
* Update config to devnet1
* Fix state merge
* Handle merge test case for update balance
* Fix build
* State pkg cleanup
* Fix a bug with loading mainnet state
* Fix transactions root
* Add v2 endpoint for merge blocks (#9802 )
* Add V2 blocks endpoint for merge blocks
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* go mod
* fix transactions
* Terence's comments
* add missing file
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Sync
* Go mod tidy
* change EP field names
* latest kintusgi execution api
* fix conflicts
* converting base fee to big endian format (#10018 )
* ReverseByteOrder function does not mess the input
* sync with develop
* use merge gossip sizes
* correct gossip sizes this time
* visibility
* clean ups
* Sync with develop, fix payload nil check bug
* Speed up syncing, hide cosmetic errors
* Sync with develop
* Clean up after sync
* Update generate_keys.go
* sync with develop
* Update mainnet_config.go
* Clean ups
* Sync optimistically candidate blocks (#10193 )
* Revert "Sync optimistically candidate blocks (#10193 )"
This reverts commit f99a0419ef .
* Sync optimistically candidate blocks (#10193 )
* allow optimistic sync
* Fix merge transition block validation
* Update proposer.go
* Sync with develop
* delete deprecated client, update testnet flag
* Change optimistic logic (#10194 )
* Logs and err handling
* Fix build
* Clean ups
* Add back get payload
* c
* Done
* Rm uncommented
* Optimistic sync: prysm validator rpcs (#10200 )
* Logs to reproduce
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
* Fix marshal
* Update json_marshal_unmarshal.go
* Log
* string total diff
* str
* marshal un
* set string
* json
* gaz
* Comment out optimistic status
* remove kiln flag here (#10269 )
* Sync with devleop
* Sync with develop
* clean ups
* refactor engine calls
* Update process_block.go
* Fix deadlock, uncomment duty opt sync
* Update proposer_execution_payload.go
* Sync with develop
* Rm post state check
* Bypass eth1 data checks
* Update proposer_execution_payload.go
* Return early if ttd is not reached
* Sync with devleop
* Update process_block.go
* Update receive_block.go
* Update bzl
* Revert "Update receive_block.go"
This reverts commit 5b4a87c512 .
* Fix run time
* Update go.mod
* Fix AltairCompatible to account for future state version
* Update proposer_execution_payload.go
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
* Log bellatrix fields
* Update log.go
* Friendly fee recipient log
* Remove extra SetOptimisticToValid
* Fix base fee per gas
* Fix notifypayload headroot
* clean up with develop branch
* Sync with devleop
* Fix
* Fix
* fix
* Fix
* fix tests
* revert some changes
* fix tests
* Update optimistic_sync_test.go
* Simplify IsExecutionEnabledUsingHeader
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com >
Co-authored-by: Zahoor Mohamed <zahoor@zahoor.in >
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 16:03:15 +00:00
Potuz
a5dc40393d
Allow inner protoarray nodes to become VALID ( #10418 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-25 15:35:44 +00:00
Raul Jordan
b238235210
prevent run ( #10432 )
2022-03-25 11:08:38 -04:00
terence tsao
73a6a85069
Ensure finalized root can't be zeros ( #10422 )
2022-03-24 23:55:54 +00:00
terence tsao
ac4a30588f
Properly initialize replayer builder for rpc ( #10426 )
2022-03-24 23:12:47 +00:00
Raul Jordan
3579551f15
Use --http-web3provider for Execution Engine Connection ( #10307 )
...
* combine endpoints
* initialization in the start function instead
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-03-24 20:53:07 +00:00
Nishant Das
956e7a7563
Update Go-Ethereum ( #10417 )
...
* add changes
* fix CI
* wait here
* Fix gazelle with the correct directive for libp2p
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-24 19:00:53 +00:00
kasey
acd7e62cfb
fix issue #10420 ( #10421 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-24 18:32:39 +00:00
Radosław Kapka
165f0667f0
Implement getDebugChainHeadsV2 API endpoint ( #10419 )
...
* protos
* grpc
* middleware
* update comments
2022-03-24 13:08:40 +00:00
kasey
49826ebe28
Checkpoint Sync 2/5 - API support for retrieving weak subjectivity data ( #10384 )
...
also refactor replayer code for better reuse:
- separately expose stategen's canonical block func
- CanonicalHistory in ws api, NewCanonicalBuilder
- refactor CanonicalHistory into a ReplayerBuilder
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-23 22:54:07 +00:00
terence tsao
3ad6abd9c0
Add tracings for engine api methods ( #10407 )
...
* Add engine call tracings
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-23 22:17:09 +00:00
terence tsao
c61f54176d
Ignore attestations voting for the wrong finalized checkpoint ( #10295 )
...
* Ignore attestations voting for the wrong finalized checkpoint
* aggregate
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-23 21:48:26 +00:00
Potuz
0165351db3
Setup Optimistic sync when starting the service ( #10397 )
...
* Load Last Validated Checkpoint at service startup and initialize
Forkchoice
* fix spectests
* Update service_test.go
* wip
* Fix blockchain tests
* remove unnecessary summary saves
* Terence's suggestion
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-23 21:11:36 +00:00
Potuz
8f49167117
return invalid roots from SetOptimisticToInvalid ( #10403 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-23 15:55:05 -03:00
Nishant Das
b4c27f64de
Add Method To Modify Participation Bits ( #10409 )
...
* fix up all tests
* Update beacon-chain/state/v2/BUILD.bazel
* add tests
2022-03-23 23:18:02 +08:00
Preston Van Loon
e4ac5e74b7
RPC: Deduplicate block production logic ( #10368 )
...
* RPC: Deduplicate block production logic
* Surface error to caller
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-23 12:51:20 +00:00
Nishant Das
0b9b635646
Block Processing And State Transition Improvments ( #10408 )
...
* cleanup
* clean up more
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-03-23 11:57:48 +00:00
Leo Lara
c8c1d04c07
Complete coverage for in beacon chain state for getters checkpoint ( #10373 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-03-23 09:58:45 +00:00
james-prysm
601987faf2
Fee Recipient : ux log fixes and prevent validator from calling beacon node if flags are not provided. ( #10406 )
...
* initial commit
* improving logs
2022-03-22 13:13:59 -05:00
james-prysm
a060d765b3
rename prepare beacon proposer to fee recipient ( #10404 )
2022-03-22 15:00:50 +00:00
Potuz
5550334956
set optimistic status on notify payload ( #10398 )
...
* set optimistic status on notify payload
* pre-execution blocks are never optimistic
* add unit test
* add test for lengths
* Update optimistic_sync_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-22 03:35:02 +00:00
Mike Neuder
002253bba3
Migrating Keymanager account list functionality into each type ( #10382 )
...
* Migrating Keymanager account list functionality into each keymanager type
* Addressing review comments
* Adding newline at end of BUILD.bazel
* bazel run //:gazelle -- fix
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-03-22 03:04:09 +00:00
Radosław Kapka
c055642f79
Return correct header root from API calls ( #10401 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-22 01:56:44 +00:00
terence tsao
c7d64c03ac
Insert payload hash to forkchoice store nodes ( #10400 )
...
* Insert payload hash to forkchoice store nodes
* Fix tests
* Update new_slot_test.go
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-22 01:20:42 +00:00
james-prysm
131fb43ba7
Fee recipient flag rename for beacon node ( #10402 )
...
* initial commit
* fixing comment
* fixing bazel
2022-03-21 21:25:33 +00:00
kasey
cf0bd633f0
Checkpoint Sync 1/5 - fork/version detection and unmarshaling support ( #10380 )
...
* fork/version detection and unmarshaling support
* Update config/params/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/detect/configfork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* PR feedback
* move ssz initialization into the detect package
* clarify comment
* VersionForEpoch is much simpler/clearer in reverse
* simpler VersionForEpoch; build AllConfigs in init
* use fieldparams for Version
* Update proto/detect/configfork_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* remove custom ForkName type, use runtime/version
* pr cleanup
* random fix from bad gh ui suggestion; privatize
* privatize fieldSpec methods; + unit tests
* Update proto/detect/configfork.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* fix bad github ui suggestion
* ensure unique versions for simpler config match
* fmt & adding unit test for ByState()
* table-driven unit test for ByState
* TestUnmarshalState
* OrderedSchedule -> network/forks per PR feedback
* goimports
* lint fixes
* move proto/detect -> ssz/encoding/detect
* use typeUndefined in String
* backport config tests from e2e PR
* fix config parity test; make debugging it easier
* lint
* fix fork schedule initialization
* cleanup
* fix build
* fix big ole derp
* anything for you, deep source
* goimportsss
* InitializeForkSchedule in LoadChainConfigFile
* PR feedback
Co-authored-by: kasey <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-21 19:43:41 +00:00
james-prysm
df8da80db8
Implement Fee Recipient: CLI flags and Calling Beacon API ( #10312 )
...
* send proposer data to config
* wip implementation with file and url based config import
* improving logic on get validator index
* fix function
* optimizing function for map and address bug
* fixing log
* update cache if it doesn't exist
* updating flags
* initial unit test scaffold
* fixing validator to call rpc call, removed temporary dependency
* adding the API calls for the runner
* fixing broken build
* fixing deepsource
* fixing interface
* fixing fatal
* fixing more deepsource issues
* adding test placeholders
* updating proposer config to add validation
* changing how if statement throws error
* removing unneeded validation, validating in a different way
* wip improving tests
* more unit test work
* fixing unit test
* fixing unit tests and edge cases
* adding unit tests and adjusting how the config is created
* fixing bazel builds
* fixing proto generation
* fixing imports
* fixing unit tests
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* updating flags based on comments, fixing unit tests
* fixing bazel
* removing unneeded function
* fixing unit tests
* refactors and unit test fixes based on comments
* fixing bazel build
* refactor the cache out fo the fee recipient function
* adding usecase for multiple fee recipient
* refactor burn name
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* fixing bug with validator index based on code review
* edited flag descriptions to better communicate usage
* fixing manual reference to flag name
* fixing code review comments
* fixing linting
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing comments and renaming functions
* fixing linting
* Update cmd/validator/flags/flags.go
* Update cmd/validator/flags/flags.go
* Update cmd/validator/flags/flags.go
* improving comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-21 13:48:02 -05:00
Raul Jordan
dc527a3c80
Remove Visibility Check Script for Bazel ( #10391 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-21 17:03:52 +00:00
Potuz
94f80bd208
Call FCU on update head after process attestation ( #10394 )
...
* Call FCU on update head after process attestation
* add test
* fix test
* terence review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-21 01:50:08 +00:00
terence tsao
c6bfefa0bc
Add notifyNewPayload to onBlockBatch ( #10392 )
2022-03-18 09:36:46 -07:00
Radosław Kapka
3446eaa5f2
Add missing tests to state retrieval ( #10390 )
2022-03-17 18:40:07 +00:00
terence tsao
193866c731
Add fcu to batch blk processing ( #10371 )
2022-03-17 07:35:50 -07:00
terence tsao
b90ce1b60f
Bellatrix fork choice spec tests ( #10381 )
...
* Add bellatrix forkchoice spec tests
* Update service.go
* better conversion
2022-03-17 05:30:44 +00:00
terence tsao
8449d24ed0
Fix BaseFeePerGas endianess ( #10376 )
...
* Fix base fee endianess and add more test entropys
* Update json_marshal_unmarshal_test.go
* Update setters_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-16 22:12:08 +00:00
Radosław Kapka
b92b01f379
API middleware support for bellatrix in produceBlockV2 ( #10374 )
2022-03-16 21:44:15 +00:00
terence tsao
bcd180ee4d
Remove deprecated set_optimistic_to_valid calls ( #10370 )
2022-03-16 21:14:13 +00:00
Raul Jordan
5f10e51a49
Add API Middleware Support for Fee Recipients Endpoint ( #10377 )
...
* add in success log
* add in info log
* uint64 for schema
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-16 20:02:26 +00:00
terence tsao
c4f03868ce
Update default fee warning ( #10378 )
...
* Add fcu to batch blk processing
* Log error only if is burned
* Revert some changes
* Burn address
2022-03-16 19:26:51 +00:00
james-prysm
d55c0d74dd
PrepareBeaconProposer API ( #10367 )
...
* intial commit implementing prepare beacon proposal
* removing files accidently checked in by goland
* removing files accidently checked in by goland
* Delete BUILD 2
* Delete armeabi_cc_toolchain_config 2.bzl
* Delete builtin_include_directory_paths 2
* Delete cc_toolchain_config 2.bzl
* Delete BUILD 2.bazel
* Delete cc_wrapper 2.sh
* Delete module 2.modulemap
* Delete BUILD 2
* Delete BUILD 2
* Delete WORKSPACE 2
* Delete cc_toolchain_config_linux_arm64 2.bzl
* Delete cc_toolchain_config_osx 2.bzl
* Delete cc_toolchain_config_windows 2.bzl
* Delete 0258716f94e00f9df0da869fd97f9e0d0c6ac83eb528677d918f0ac9be5f4b8d 2
* Delete test-unmarshal-bad 2.json
* Delete test-unmarshal-good 2.json
* adding simple unit tests
* removing duplicate imports
* adding bazel changes
* adding validation and switched to table driven tests
* updating based on comments
* adding to test retrieve from db
* fixing bazel
2022-03-16 11:17:41 -04:00
Potuz
807b71244b
Add database methods for optimistic sync ( #10357 )
...
* Add database methods for optimistic sync
* Add epoch comparison
* add extra epoch comparison
* Summary instead of block
* fix tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-15 20:52:59 +00:00
Potuz
2744eba391
Update optimisticCandidateBlock to specs version ( #10355 )
...
* Update optimisticCandidateBlock to specs version
* fix double import
* Change error message
2022-03-15 19:12:52 +00:00
Leo Lara
5507558678
Some improvements for the state package testing ( #10316 )
...
* Refactor to unify state getters block tests
* Add reference tests to Altair and Bellatrix versions ofthe state
* Fix function naming convetion
* Add state-native/v2/references_test.go and state-native/v3/references_test.go
* Gazelle run
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-03-15 18:32:09 +00:00
terence tsao
8cecd4e8bf
Log bellatrix fields ( #10365 )
...
* Log bellatrix fields
* Update log.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-15 14:02:39 +00:00
terence tsao
69a9388515
Spec test v1.1.10 ( #10298 )
...
* spectest
* uncomment shas
* Fc spec test service shouldn't not spawn attestation routine
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-03-15 13:17:51 +00:00
terence tsao
bd308b6d73
Update default fee recipient error log ( #10366 )
2022-03-14 20:35:56 -07:00
Radosław Kapka
9abea200a5
Add Bellatrix version to ProduceBlock API ( #10361 )
...
* Add Bellatrix version to `ProduceBlock` API
* fix errors
* fix test
* Revert "Auxiliary commit to revert individual files from 8cc6fc9ca3b6ddb67aeafeaddc2a2e1ca6610ded"
This reverts commit 6358ee92d899e8ee6587ad5503cebb40ac92add4.
# Conflicts:
# beacon-chain/blockchain/optimistic_sync_test.go
# beacon-chain/blockchain/pow_block_test.go
# beacon-chain/blockchain/testing/mock_engine.go
* use proper mock
* bzl
* fix build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-14 23:08:01 +00:00
terence tsao
730678bf21
Handle pre state Altair with valid payload ( #10364 )
...
* Handle pre state Altair with valid payload
* Handle pre state Altair with valid payload
2022-03-14 22:40:08 +00:00
kasey
0b1a777d62
ran gofmt @ v1.17, these are the resulting changes ( #10362 )
...
* ran gofmt @ v1.17, these are the resulting changes
* fix some flaky tests that are tripping up this PR
* gofmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-14 15:58:13 -05:00
terence tsao
5461c5b84f
Insert stored fee recipient for ForkchoiceUpdated call ( #10349 )
...
* Add default
* Add and use fee recipient in db
* Update BUILD.bazel
* Feedback
* Add basic addr check
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-14 18:44:40 +00:00
Preston Van Loon
03e7acbf9f
increase bazel java max mem to 4gb ( #10363 )
...
* increase bazel java max mem to 4gb
* DEBUG: set nocache and modify nogo to force any disk cache misses. Revert this commit after testing in CI
* Revert "DEBUG: set nocache and modify nogo to force any disk cache misses. Revert this commit after testing in CI"
This reverts commit dc41cce43d .
2022-03-14 17:53:42 +00:00
Potuz
6cc88e6454
enable optimistic sync ( #10358 )
...
* enable optimistic sync
* revert computation of HTR in notifyNewPayload
* fix tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-14 17:25:40 +00:00
terence tsao
65cea17268
Return early if ttd is not reached ( #10359 )
2022-03-14 16:38:05 +00:00
Preston Van Loon
aa86c94a91
Update bazel to 5.0.0 ( #10352 )
...
* Update to bazel 5
* Add new bazel 5 experimental flags to improve remote caching
* regen cross compile for bazel 5
* gazelle
* remove some old flags
* use heremtic builds sandbox
* minimal downloads for better disk usage
* Restore manual tags for darwin builds
2022-03-14 15:05:08 +00:00
Radosław Kapka
75bb25d515
Bellatrix publish block - API Middleware fixes ( #10348 )
...
* Bellatrix publish block - API Middleware fixes
* update field name
* correct docs
2022-03-14 13:36:46 +00:00
terence tsao
1e845bc276
Fix sync committee assignment for Bellatrix ( #10356 )
...
* Fix AltairCompatible to account for future state version
* Tests
* gaz
* More tests
* Update comments
* Rename to HigherThanAltairVersionAndEpoch
* HigherEqualThanAltairVersionAndEpoch
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-03-14 01:00:33 +00:00
Nishant Das
58f7e942f2
Fix Mnemonic Validation ( #10354 )
...
* fix mnemonic validation
* potuz's review
* Add fuzz test for wallet recover
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-03-14 07:30:11 +08:00
Potuz
3f1e3cf82f
remove optimistic control flag ( #10340 )
...
* remove optimistic control flag
* Rename
* More
* More
* redundant return
* fix conflict
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-12 17:32:04 +00:00
terence tsao
60003c481b
Add unlock to IsOptimistic returns ( #10341 )
...
* Add unlock to returns
* add regression test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-11 10:36:47 +00:00
Preston Van Loon
c1197d7881
Add static analysis for unsafe uint casting ( #10318 )
...
* Add static analysis for unsafe uint casting
* Fix violations of uintcast
* go mod tidy
* Add exclusion to nogo for darwin build
* Add test for math.Int
* Move some things to const so they are assured not to exceed int64
* Self review
* lint
* fix tests
* fix test
* Add init check for non 64 bit OS
* Move new deps from WORKSPACE to deps.bzl
* fix bazel build for go analysis runs
* Update BUILD.bazel
Remove TODO
* add math.AddInt method
* Add new test casts
* Add case where builtin functions and declared functions are covered
* Fix new findings
* cleanup
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-03-11 09:34:30 +00:00
Nishant Das
693cc79cc9
Minor Cleanup from #10255 ( #10337 )
...
* minor cleanup
* kasey's review
* kasey's review
2022-03-11 07:34:15 +00:00
kasey
23778959eb
this is safer if a goroutine require fails ( #10344 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-11 05:29:52 +00:00
kasey
92278e2255
fix TestValidator_WaitForKeymanagerInitialization_Web race ( #10343 )
...
* TestValidator_WaitForKeymanagerInitialization_Web
* gofmt
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-03-10 20:04:27 -06:00
james-prysm
c58ce41b3b
Flagutil: utility for json file from directory or url and unmarshal to struct ( #10333 )
...
* initial commit
* adding first testcase wip
* fixing test
* adding more unit tests
* adding bazel file
* adding more unit tests and file checks
* addressing comments
* refactoring based on comments
* added bazel
* fixing build
2022-03-10 14:25:26 -06:00
kasey
d3b09d1e9d
--curses=no for cleaner logs (no term refresh) ( #10334 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-10 18:05:36 +00:00
Michael Neuder
27082e2cd2
Adding ExtractKeystores to the Keymanager interface ( #10313 )
...
* adding ExtractKeystores to the Keymanager interface
* adding ExtractKeystore to mockKeymanager struct types
* bazel run //:gazelle -- fix
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-03-10 17:19:04 +00:00
terence tsao
12080727ea
Save and retrieve fee recipients for db ( #10336 )
...
* Can save fee recipients in db
* Update BUILD.bazel
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-03-10 15:05:10 +00:00
Potuz
a731b8c0bc
Boost proposer later ( #10338 )
...
* Boost Proposer after inserting block
* add regression test
2022-03-10 13:13:06 +00:00
Raul Jordan
f6eed74500
PrepareBeaconProposer Protobuf Schema ( #10332 )
...
* prepare v1 protos
* add in protos
* prepare beacon proposer
* stubs
* builds
* gaz
* build
* rem
* ssz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 21:40:26 +00:00
Potuz
329a4a600c
Add USE_PRYSM_MODERN environment variable ( #10229 )
...
* Add USE_PRYSM_MODERN environment variable
* fix deepsource
* change naming convention
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 21:00:12 +00:00
terence tsao
7ce712bb5e
Kiln run time changes ( #10321 )
...
* First take
* Update proposer_execution_payload.go
* Update optimistic_sync_test.go
* Add tests
* Update proposer_execution_payload.go
* Fix tests
* Add deprecation
* Fix bad merge
* New test
* Update beacon-chain/core/blocks/payload.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Proposer test can get and compare payload
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-03-09 20:26:23 +00:00
kasey
17a43c1158
Retrieving state by slot to always apply canonical block at slot, when available ( #10255 )
...
* new stategen.StateReplayer/ReplayerBuilder to give more fine-grained
control of replaying state+block history
* all rpc/api methods updated to use the new interface, return post-state
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-09 13:33:18 -06:00
Radosław Kapka
77b8b13eff
Bellatrix API support for block endpoints ( #10324 )
...
* refactor GetBlockV2
* Add bellatrix to GetBlockSSZV2
* Add bellatrix to ListBlockAttestations
* Add bellatrix to SubmitBlock
* gzl
* return error from SubmitBlock
* return nil
* Better code flow when getting blocks
* remove tautology
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-09 17:18:52 +00:00
Potuz
b59484b285
Export SetOptimisticToInvalid ( #10330 )
...
* temp
* export remove invalid blocks
2022-03-09 13:50:57 -03:00
Radosław Kapka
1964fb8146
Correct package name in features' README file ( #10329 )
2022-03-09 14:24:00 +00:00
Nishant Das
63825290cb
Handle Port Registration Better ( #10325 )
2022-03-09 13:52:50 +01:00
kmax.eth
1619d880d4
fix TestSyncHandlers_WaitTillSynced ( #10328 )
...
* fix TestLockUnlock_CleansUnused
* fix TestSyncHandlers_WaitTillSynced
The test is failing silently (while go test showing 'PASS') due to panic caused by feed type mismatch. As a result, intended testing logic is not exercised at all. There are a couuple fixes here:
1. fix the feed event type to be pointer
2. add seendCache to avoid nil pointer panic
3. fill block in beaconDB so validateBeaconBlockPubSub gets short cut
4. replace time.Sleep() with deterministic channel waiting
* handle cancel func
2022-03-09 05:42:03 +00:00
kmax.eth
af2b858aa2
fix TestLockUnlock_CleansUnused ( #10326 )
2022-03-09 04:08:28 +00:00
Potuz
57a323f083
Forkchoice featureflag ( #10299 )
...
* Compiling main beacon-chain binary
* Add feature flag
* passing protoarray tests
* passing nodetree tests
* passing blockchain package tests
* passing rpc tests
* go fmt
* re-export forkchoice store from blockchain package
* remove duplicated import
* remove unused var
* add nodetree rpc method
* remove slot from IsOptimisticForRoot
* release lock in IsOptimistic
* change package name
* Revert "change package name"
This reverts commit 679112f9ef .
* rename package
* Update doc
* Fix span names
* Terence + Raul review
* remove go:build flags
* add errors dep
* spec tests
* fix call to IsOptimisticForRoot
* fix test
* Fix conflict
* change name of function
* remove ctx from store.head
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-03-09 03:05:51 +00:00
Nishant Das
738f00129b
control test ( #10323 )
2022-03-08 07:58:19 -08:00
Radosław Kapka
3a03623094
E2E: Cleanup old Eth1 code ( #10320 )
2022-03-07 23:14:10 +00:00
terence tsao
cde58f6924
Rest of kiln changes ( #10319 )
...
* Update configs
* gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:47:08 +00:00
Preston Van Loon
78fe712e53
Validator: deduplicate fork logic for block proposals ( #10297 )
...
* Deduplicate block proposals
* fix tests, more dedup of tests
* Add godoc to BuildSignedBeaconBlock.
* Rename SignRequest_Object => SignRequestObject
* Fix error messages
* Add tests for new methods
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 19:18:54 +00:00
terence tsao
40e5a5d796
RPC: add prepare execution payload ( #10311 )
...
* Add prepare execution payload
* Add prepare execution payload
* Add prepare execution payload
* Update client.go
* Update proposer_execution_payload.go
* Update proposer_execution_payload_test.go
* Handle post bellatrix finalied blk
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_execution_payload.go
* Use BeaconBlockIsNil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-03-07 18:43:20 +00:00
Radosław Kapka
87507cbfe2
Support Bellatrix state in getStateV2 standard API ( #10314 )
2022-03-07 17:56:54 +01:00
Mohamed Zahoor
b516cfd998
cherry picked PR of #10233 ( #10301 )
...
* fix merge conflicts
* fix more merge conflicts
* fix fmt
* remove unnecessary cfg
* setting bad block if the bellatrix validation fails
* added an edge condition
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-07 13:19:07 +00:00
Radosław Kapka
f98d1ce64b
Run multiple go-ethereum nodes in e2e ( #10277 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-03-07 13:23:15 +01:00
Mohamed Zahoor
a103dd91c0
cherry picked PR for #10274 ( #10300 )
...
* ignore topic messages (except block topic) during optimistic sync
* address review comments
* nit pick fix
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-03-06 08:09:12 +00:00
terence tsao
74fe2cc8d0
Spawn attestation routine at a better place ( #10303 )
...
* Spawn attestation routine at a better place
* Revert
* Update service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 22:25:04 +00:00
Nishant Das
a4bbaac262
Add Better Error Logs for Context Deadlines ( #10310 )
...
* better log here too
* remove period
* Update beacon-chain/p2p/pubsub.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: Preston Van Loon <preston@prysmaticlabs.com >
2022-03-04 16:21:19 +00:00
Nishant Das
1af11885ee
Remove Support for 2d-list Hashers ( #10290 )
...
* add changes
* fix logic bug
* fix
* potuz's review
* Update beacon-chain/state/stateutil/eth1_root.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-04 15:19:07 +00:00
Nishant Das
1437cb8982
Update GoHashTree Library ( #10308 )
2022-03-04 14:18:52 +00:00
Nishant Das
0b559afe30
Better Error Log In Context Deadlines ( #10309 )
...
* add better error log
* radek's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-04 09:54:06 +00:00
Radosław Kapka
54915850a2
Refactor E2E port registration ( #10306 )
...
* Refactor e2e port registration
* uncomment tests
* explain calculation
* fix things
* change param to pointer
* fix errors
* unit test and constant
2022-03-04 09:26:28 +00:00
terence tsao
69618d157a
Bellatrix validator terminal block helpers ( #10305 )
...
* Add get transition block
* Update proposer_execution_payload.go
2022-03-03 15:00:11 -05:00
Nishant Das
fa750650ed
Disable Vectorized HTR from Our Dev Flag ( #10304 )
2022-03-03 03:49:26 +00:00
terence tsao
7303985232
Validator RPC: add optimistic status check ( #10291 )
...
* Add optimistic status check
* Simplify a bit more
* Update status_test.go
* Add non opt tests
* Update aggregator_test.go
* More tests
* Preston's feedback
2022-03-03 00:16:34 +00:00
Raul Jordan
958dd9d783
Check Engine API Transition Configuration in Background ( #10250 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
* check transition config
* check config differences
* check transition config in background
* gaz
* pass
* redundant
* fix up error handling and healthz
* simplify status
* gazelle
* build
* err config check
* test
* gaz
* Fix run time
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 21:38:51 +00:00
Preston Van Loon
a3f8ccd924
validator: Fix flaky test TestServer_RefreshJWTSecretOnFileChange ( #10296 )
2022-03-01 20:34:05 +00:00
terence tsao
d64f6cb7a8
Add engine methods to block processing ( #10285 )
...
* Add notify newPayload and forkchoiceUpdate
* Tests
* Raul's feedback
* Update optimistic_sync.go
* Simplify
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-03-01 16:43:06 +00:00
terence tsao
a9a75e0004
Release lock before return validatedTips ( #10289 )
...
* Release lock before return
* add test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-03-01 15:36:47 +00:00
Nishant Das
339540274b
Integration of Vectorized Sha256 In Prysm ( #10166 )
...
* add changes
* fix for vectorize
* fix bug
* add new bench
* use new algorithms
* add latest updates
* save progress
* hack even more
* add more changes
* change library
* go mod
* fix deps
* fix dumb bug
* add flag and remove redundant code
* clean up better
* remove those ones
* clean up benches
* clean up benches
* cleanup
* gaz
* revert change
* potuz's review
* potuz's review
* potuz's review
* gaz
* potuz's review
* remove cyclical import
* revert ide changes
* potuz's review
* return
2022-02-28 21:56:12 +08:00
Raul Jordan
12ba8f3645
Renaming Random in ExecutionPayloads to PrevRandao ( #10283 )
...
* rename proto
* p header
* regen
* regen ssz
* fix randao
* random name changes
* bazel builds
* bt
* incorrect prev randao
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-26 03:47:16 +00:00
Raul Jordan
f3a7f399c0
Engine API Client Authentication for the Merge via HTTP ( #10236 )
...
* round tripper with claims
* auth
* edit auth
* test out jwt
* passing
* jwt flag
* comment
* passing
* commentary
* fix up jwt parsing
* gaz
* update jwt libs
* tidy
* gaz
* lint
* tidy up
* comment too long
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-02-25 19:08:43 +00:00
james-prysm
6163e091a7
web3signer: fixes for e2e ( #10281 )
...
* fixing logs and caught bug in mappers
* Fix schema
* improving logging
* Update validator/keymanager/remote-web3signer/internal/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* adding logurus dependency
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-02-25 02:42:26 +00:00
terence tsao
2fb4ddcbe7
Engine API: add payload status handling and tests ( #10282 )
...
* Add status handling and tests
* Update client.go
* Fmt
* Update mock_engine_test.go
* Update client_test.go
2022-02-24 19:35:01 +00:00
Radosław Kapka
1c2e463a30
--api-timeout flag (#10260 )
...
* `--api-timeout` flag
* simplify code
* review feedback
* better error handling
* better docs
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-24 18:01:37 +00:00
james-prysm
01e9125761
web3signer: url parsing bug ( #10278 )
...
* adding in fixes for url
* fixing gazelle
* fixing wrong keymanager kind
* adding required scheme to urls
* fixing another unit test
* removing unused file
* adding new commit to retrigger deepsource ci
2022-02-24 10:24:11 -06:00
terence tsao
02a088d93c
Add validate_merge_block ( #10273 )
...
* Add
* Update pow_block.go
* Update BUILD.bazel
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* feedbacks
* Feedbacks
* Fmt
* Update BUILD.bazel
* Update BUILD.bazel
* Update pow_block_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-23 22:41:11 +00:00
terence tsao
8cadb2ac6f
Update IsOptimistic to always false ( #10276 )
...
* Update to always false
* Use epoch
* Update chain_info_test.go
* Update chain_info_test.go
2022-02-23 20:16:45 +00:00
Potuz
be722604f7
Fix logarithm of 2 ( #10275 )
...
* Fix logarithm of 2
* add regression test
* Update encoding/ssz/merkleize.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-02-23 12:44:04 +00:00
Raul Jordan
3bb2acfc7d
Update Web UI to v1.0.3 ( #10264 )
...
* update web UI version
* fixing format
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: James He <james@prysmaticlabs.com >
2022-02-22 18:26:15 +00:00
terence tsao
7719356b69
Add opt sync bool to IsOptimistic ( #10270 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-22 16:46:42 +00:00
Raul Jordan
75b9bdba7c
Small Comment Fix in Exchanging Transition Config ( #10271 )
2022-02-22 16:16:02 +00:00
Nishant Das
525c818672
Remove SSZ Cache ( #10256 )
...
* remove ssz cache
* gaz
* lint
* analyze more
* fix
2022-02-22 17:27:51 +08:00
terence tsao
a55fdf8949
Use type string for total_difficulty ( #10265 )
...
* Use string for difficulty
* fix go
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-02-21 14:03:12 +00:00
Preston Van Loon
7f41b69281
Wrapper: Update block interface and reorganize fork logic ( #10267 )
...
* Add ssz.HashRoot interface composition to BeaconBlock interface, move fork specific logic into it's own files
* Remove needless underscore
2022-02-20 20:53:05 +00:00
Preston Van Loon
c5189a6862
Deduplicate TestProposer_ProposeBlock_OK ( #10266 )
...
* Deduplicate tests for TestProposer_ProposeBlock
* remove erroneous save of block
* ensure block root is returned
2022-02-19 22:52:03 +00:00
Leo Lara
b4b976c28b
Experimental prototype of Apple M1 processor support ( #10192 )
...
* Experimental prototype of Apple M1 processor support
* Enable Apple M1 compilation of herumi MCL by adding a precompiled library
* Renable nogo
* Fix by gazelle
* Update go.mod to reflect go 1.17.6 changes in WORKSPACE
* go mod tidy
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-02-19 18:17:08 +00:00
Nishant Das
ced24892a5
Cleanup Powchain Service ( #10259 )
...
* add cleanup
* gaz
* Fix test build
2022-02-18 14:13:31 +00:00
terence tsao
49f989e342
Fix base fee endianness ( #10253 )
2022-02-16 17:48:55 +00:00
Leo Lara
3003f08770
Remove unnecessary target of third_party/herumi/bls.BUILD ( #10252 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-02-16 16:35:19 +00:00
terence tsao
0232b5f8f5
Regen pbs ( #10227 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-02-16 10:06:41 -06:00
terence tsao
90a15b2fbe
Handle PayloadStatus UnmarshalJSON nil cases ( #10249 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-16 01:24:50 +00:00
Raul Jordan
0f58c9a925
Exchange Transition Configuration for Engine API ( #10248 )
...
* transition proto
* gen pb
* builds
* impl transition config
* begin tests
* transition config messed up
* amend proto
* use str
* passing
* gaz
* config
* client test
* pb
* set to 0
* rem log
* gaz
2022-02-16 00:56:23 +00:00
terence tsao
6311cfd8ab
Fix payloadStatusJSON fields ( #10246 )
...
* Use pointers
* Use pointers
* Use pointers
* Update json_marshal_unmarshal.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-15 23:26:58 +00:00
Radosław Kapka
6dcf47675b
E2E BellatrixE2EForkEpoch constant ( #10240 )
...
* Add `BellatrixE2EForkEpoch` constant
* change epoch
* Config param
* revert e2e update
* disable linter
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-15 21:06:14 +00:00
terence tsao
72aa782849
PayloadStatus reserve 0 enum (#10247 )
...
* Leave 0 as UNKNOWN
* Leave 0 as UNKNOWN
2022-02-15 20:32:39 +00:00
terence tsao
cc637bad4a
Fix ForkchoiceUpdatedResponse json tag ( #10243 )
2022-02-15 15:49:36 +00:00
Potuz
f5719f8c8e
Fix updateCanonicalNodes ( #10241 )
...
* Fix updateCanonicalNodes
* fix logic
* terence's review
2022-02-14 21:30:26 +00:00
Rootul Patel
f550a964f5
Add path to Keystore ( #10152 )
...
* Add failing test
* Add path to keystore
* Assert encoded contains "path"
* Fix lint
Ran `bazel run //:gazelle -- fix`
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-02-14 09:57:15 -06:00
Radosław Kapka
c5c039fd6b
Unify GenesisValidator(s)Root throughout the codebase ( #10230 )
...
* Unify `GenesisValidator(s)Root` throughout the codebase
* comments and literals
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-14 13:34:38 +00:00
Radosław Kapka
4d9947543f
Native state feature flag ( #10232 )
...
* add flag
* working version
* rename flag
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 12:33:02 +00:00
Michael Neuder
7370c42bae
Adding nil error check to connection status for ETH1 nodes ( #10186 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-14 10:21:45 +00:00
Radosław Kapka
3c76cc3af5
Return state interface from native state constructors ( #10208 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-14 17:51:22 +08:00
terence tsao
28af5bc601
Fix eth_getBlockByHash call ( #10239 )
...
* Update client.go
* Update client_test.go
2022-02-13 16:33:11 +00:00
terence tsao
c9f299b50a
Clean up fork choice ( #10226 )
...
* Clean up fork choice
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/store_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update store.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-02-12 03:33:46 +00:00
terence tsao
9dfb385160
Pad fields to correct length ( #10237 )
...
* Pad fields to correct length
* Use constants
* builds
* Fix test
* Update BUILD.bazel
* tests
* passing
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-12 01:58:09 +00:00
Raul Jordan
b1774efeb7
Fix JSON Marshal/Unmarshal for Execution Block ( #10238 )
2022-02-12 01:06:28 +00:00
Potuz
4b3a723166
Do not stop on error loading synced tips ( #10235 )
...
* Do not stop on error loading synced tips
* Terence's review
* Update beacon-chain/blockchain/optimistic_sync.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 21:46:53 +00:00
terence tsao
50f253619e
Fix engine client method names ( #10234 )
...
* Fix engine client method names
* Typo
2022-02-11 16:12:11 -05:00
james-prysm
753afb4fb2
small fix for web3signer ( #10223 )
2022-02-11 09:41:31 -05:00
Leo Lara
1835f54197
Refactor for DRY state getters_validator_test and getters_test ( #10117 )
...
* Refactor for DRY state getters_validator_test and getters_test
* Add BUILD.bazel to beacon-chain/state/testing
* Handle type assertion error in beacon-chain/state tests
* Fix with gazelle
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-02-11 14:48:29 +08:00
terence tsao
26a2311c82
Clean up outdated bellatrix code ( #10225 )
...
* Rm outdated merge code
* Update config_test.go
* Native
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-11 04:40:12 +00:00
Potuz
9f419bee7d
Remove unnecessary reassignement ( #10224 )
2022-02-10 23:51:20 -03:00
james-prysm
d04eaf8fa0
Better DB Logging ( #10215 )
...
* initial commit
* initial commit
* reverting change
* reverting change
* Update beacon-chain/node/node.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/db/kv/kv.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 23:15:01 +00:00
Potuz
82ceb51548
Load Synced Tips when starting from Finalized State ( #10196 )
...
* Load Synced Tips when starting from Finalized State
* Terence's review #1
* Fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 22:18:42 +00:00
Potuz
6a2ef13b87
add metrics for synced tips ( #10221 )
...
* add metrics for synced tips
* Update beacon-chain/forkchoice/protoarray/metrics.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 18:48:46 +00:00
Potuz
72a2dd004b
Fix integer overflow ( #10222 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-10 15:20:36 -03:00
Raul Jordan
1a0e16a48b
Initialize the Engine API Client in the Beacon Chain's Powchain Service ( #10217 )
...
* define engine caller
* gaz
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:46:31 +00:00
Nishant Das
bff5c1e1a9
Handle Bellatrix Fork Epochs Correctly ( #10219 )
...
* handle it properly
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/sync/fork_watcher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-10 16:15:55 +00:00
Nishant Das
3f5ce0cdca
Handle a ZeroHash as our Eth1 Genesis Block Root ( #10218 )
2022-02-10 11:28:57 +00:00
terence tsao
d51b52d432
Add pow block protobuf ( #10205 )
...
* Add pow_block protobuf
* Revert hash changes
This reverts commit 4afb280385 .
* Revert "Add pow_block protobuf"
This reverts commit 4afb280385 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 22:27:30 +00:00
Raul Jordan
7b5a821c81
Implement Execution Engine Client ( #10185 )
...
* add in fixtures
* handle real fixtures
* marshaling issues
* ensure error handling works
* begin http client test
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* fix conf
* http tests
* sync
* client tests passing
* deepsource
* gaz
* item
* exec block by hash
* begin tests
* http tests passing
* payload id bytes
* proper json encode decode for payload id
* gaz
* proper marshal
* merge engine client
* use big ints
* passes
* confirmed passing
* add in functional methods
* deepsource
* pb
* Update beacon-chain/powchain/engine-api-client/v1/client_test.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* latest
* tests passing again
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:54:56 +00:00
Mohamed Zahoor
f89265f2f7
Adding a new method in HeaderFetcher ( #10212 )
...
* Is optimisyic for root
* add the function in mock chainservice also
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 20:21:15 +00:00
james-prysm
c731b715ed
Keymanager-Kind: fix cli kind parsing and allow for backward compatability ( #10211 )
...
* initial commit with unit tests
* reverting and adding in comments
2022-02-09 14:40:52 -05:00
Radosław Kapka
2a68c69d8f
Beacon Node API Postman collection ( #10213 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-02-09 18:42:23 +00:00
terence tsao
a82fd7bf68
Fix merge transition configs ( #10206 )
...
* Add proper merge configs
* Switch to bytes
* Use string
* Update mainnet_config.go
* Rm unused
* Fix test
* Update config_test.go
* Update beacon-chain/blockchain/pow_block.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update pow_block_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 18:15:29 +00:00
james-prysm
9c540627ab
default allowList for validator ( #10210 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-02-09 17:18:49 +00:00
james-prysm
11f50453fc
Keymanager api postman test collection ( #10209 )
...
* initial commit
* adding keymanager api repo url
* updated postman collection
* removing unused folder
* removing validator build
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update hack/keymanager-api/README.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-02-09 16:48:08 +00:00
Potuz
5f8b01ccda
Make UpdateSyncedTips safe for context cancellation ( #10174 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-09 14:54:27 +00:00
Nishant Das
d800107927
Add Peer Scorer to Dev Mode ( #10207 )
2022-02-09 13:51:59 +01:00
Nishant Das
d3d5cfca0b
Peer Score Evaluator ( #9717 )
...
* eval stuff
* change up
* update dep
* go mod tidy
* gaz
2022-02-09 09:53:25 +00:00
Potuz
18ef760ee5
Add DeleteBlock() ( #10203 )
...
* Add DeleteBlock()
* Raul review #1
* Update comments
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-08 23:26:26 +00:00
james-prysm
14e3e80df3
Keymanager api alignment ( #10176 )
...
* keymanager-api
* import updates to standards
* adding in more unit tests and code fixes to improve api experience
* deleting accidently generated files
* deleting accidently generated files
* adding in more test coverage
* fixing linter issue
* removing incorrect unit tests
* improving logic for accounts import
* linter fix
* addressing review comments
* fixing based on comments
* fixing nonzero root
* fixing protos
* regen protos
* adjusting protos again
* updating api specs
* fixing code and unit tests after specs changed
* fixing imports
* adding in required changes for api middleware also adding unit tests to catch changes for protos
* fixing deepsource issues
* fixing linting
* seeing if using pointers helps
* addressing comments
* updating bazel build
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-02-08 13:13:36 -06:00
Raul Jordan
3bea0e7896
ExecutionBlock Protobuf Type for the Merge ( #10201 )
...
* exec block
* exec block
* base fee
* regen
* exec block test
* fmt
* bytes for big ints
* engine pb
* passing
* add size
* bytes
* size
* size bytes
* passing
2022-02-08 18:06:02 +00:00
Radosław Kapka
8455656597
Use beacon state interfaces instead of concrete structs ( #10195 )
...
* return interface from testing/util
* remove usages of v1
* return interface from InitializeFromProto
* return interface from InitializeFromProto
* fix test
* fix interface visibility
* more fixes
* use InitializeFromProtoUnsafe in testing/util
* return early error from mock
* v2
* fix tests
* remove unnecessary assertion
* use struct in nil state test
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 7d70238a301209f6dbfc8ff1d81b16e33b0bd67d.
* use struct in sync committee test
* v3
* use InitializeFromProtoUnsafe in mock
* use version information
* Revert "Auxiliary commit to revert individual files from 6bb528c2c5df2446ad18450009f63f44318d41a9"
This reverts commit 5d5e6f2884d21caec7530c16ad2a0d0d27c44aa1.
* revert changes to ClearPreGenesisData
* fix build error
* remove error from PreGenesisState
* bzl
2022-02-08 09:30:06 +00:00
terence tsao
af8bafd895
Spectest 1.1.9 ( #10199 )
2022-02-07 20:50:11 -08:00
terence tsao
c538a6c068
Add propose bellatrix block ( #10189 )
...
* Add propose bellatrix block
* Update BUILD.bazel
2022-02-08 01:29:11 +00:00
Raul Jordan
d5eb8392b6
Engine API Client Custom Marshaling ( #10188 )
...
* custom type marshaling
* gaz
* custom type
* marshalers
* builds
* builds
* add to build file
* regen
* only root types
* bytes hash
* regen
* bytes hash
* regen
* regen
* alias magic
* revert proto
* more alias magic
* revert build files
* regen
* define marshal methods
* tests passing
* hexbytes
* rem
* rem
* comment
* gaz
* data
* builds
* passing
2022-02-07 17:13:01 +00:00
Potuz
4906a0e6de
add isOptimisticCandidateBlock and IsExecutionBlock ( #10191 )
...
* add isOptimisticCandidateBlock and IsExecutionBlock
* remove check
* fix tests
* Align with spec, reuse helper `ExecutionBlock`
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-07 01:26:20 +00:00
terence tsao
168e06e607
Save sync tips to DB ( #10171 )
...
* Save sync tips to DB
* Fix build
* Update process_block_test.go
* Copy map
* Revert back to nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 18:00:47 +00:00
Potuz
cf18d5dd42
Add SafeSlotsToImportOptimistically beacon configuration flag ( #10190 )
...
* Add SafeSlotsToImportOptimistically beacon configuration flag
* fix e2e
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-06 03:14:56 +00:00
Potuz
aeb6940935
Prune synced tips ( #10143 )
...
* Prune synced tips
* Terence's minor cleanups
* Update optimistic_sync.go
* go fmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-05 20:24:02 +00:00
Potuz
4020a603b6
Invalid synced tips ( #10154 )
...
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
* remove invalid nodes from forkchoice
* Update beacon-chain/forkchoice/protoarray/optimistic_sync.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Add check for tip status
* Terence's minor cleanups
* Potus' feedbacks
* Update optimistic_sync.go
* Add erorr
* Synced
* update weights
* Add context error check
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 22:57:15 +00:00
terence tsao
3a5cfab5f2
Add IsOptimistic chain info getter ( #10184 )
...
* Add chain info getter
* Interface
* Test
* Update mock.go
* Go fmt
* Update beacon-chain/blockchain/testing/mock.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-02-03 21:30:07 +00:00
james-prysm
8e5ba13352
Fix Small Bug in Genesis Validators Root Validation Func ( #10183 )
...
* initial commit
* switching to table driven test
2022-02-03 20:58:25 +00:00
Nishant Das
e7e2f7850d
Cleanup Multiclient E2E ( #10180 )
2022-02-03 14:14:26 +01:00
terence tsao
c8748260fd
Implement is_valid_terminal_pow_block ( #10172 )
...
* add validator terminal block difficulties
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-03 05:28:23 +00:00
Nishant Das
a70febbf56
E2E Config Cleanup ( #10178 )
2022-02-03 04:53:09 +00:00
Raul Jordan
55ce1ccc33
Engine API Client Skeleton and Configuration ( #10177 )
2022-02-02 19:46:27 -08:00
Preston Van Loon
28e0dc5d09
Tool to print current eth1data votes ( #9335 )
...
* Initial progress on eth1data votes reporting tool
* gofmt
* add pyrmont genesis time to help txt
* Fix eth1voting tool
* correct Prater genesis time
* Update so it builds
* Add a README
* gofmt
Co-authored-by: rkapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 20:41:14 +00:00
Nishant Das
2b0f74904e
Multiclient E2E With Lighthouse ( #10020 )
...
* save work
* current progress
* fix it more
* save progress
* fixes so far
* add signature test
* fix up changes so far
* change to latest
* update lighthouse version
* fix build
* fix again
* do one
* clean up
* fix build
* fix it
* fix test
* change tag
* remove e2e
* Update config/params/testnet_e2e_config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* update
* Update sha
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-02-02 19:13:52 +00:00
Nishant Das
5cf976e492
Merge State Cleanup ( #10011 )
...
* state related cleanup
* remove unused imports
* radek's review
* fix for native state
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 17:51:24 +00:00
Nishant Das
80aa4f483c
Make Opt Max Cover Default ( #10109 )
...
* make default
* radek's review
* clean up
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 16:26:48 +00:00
terence tsao
fb92d518f9
Remove merge setting cli flags ( #10162 )
...
* Rm merge client setting
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 15:33:48 +00:00
Nishant Das
1774188a17
Fix Certain Edge Cases With the Analyzer ( #10164 )
...
* fix analyzer
* fix other deadlock
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-02-02 14:11:31 +00:00
Radosław Kapka
ea31f096b5
Native beacon state: fieldtrie package ( #10146 )
...
* Native beacon state: `fieldtrie` package
* reuse ProofFromMerkleLayers
* more reuse + fixes
* more reuse + fixes
* move validateIndices to helpers
* remove TestAppendBeyondIndicesLimit
* do not duplicate package
* correct errors
* handle32ByteArrays function
* type switch
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-02-02 12:18:06 +00:00
Nishant Das
ea1698c1b3
Make Next Slot Cache Default ( #10110 )
...
* deprecate all of it
* handle empty slice
* fix bad bug
* fix it
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-02-02 11:40:46 +00:00
Nishant Das
0802c8fe66
add new methods in ( #10173 )
2022-02-02 14:56:07 +08:00
Raul Jordan
4322185d80
Use Execution Payload Defined in Engine V1 Namespace ( #10170 )
...
* payload use
* incl
* cloners
* regen pb
* gen ssz
* use proper payload
* broken imports
* build
* state
* builds
* proper engine
* builds
* fmt
* baz
* ssz
* baz
* fmt
* regen ssz
* receipts root
* regen pb
* ssz
* receipts root
* ci lint
* proto
* test pkg
* bazel
2022-02-02 03:30:35 +00:00
Hugo Masclet
cab0a4c9df
Fix typo in CONTRIBUTING.md ( #10168 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-02-02 00:01:12 +00:00
Michael Neuder
8b2b109939
Rename imported keymanager to local. ( #10155 )
...
* imported -> local
* reverting to the state of the PR at eb1e3c3d1
* use changes from develop
* del
* rem patch
* patch
* rename to local
* gazelle
* add back build
* imported rename
* gaz
* local
* merge fix + remove proto changes
* comment revert
* build
* gofmt and one new reference
* gofmt pt2
* Update validator/accounts/wallet_edit.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/rpc/accounts.go
* rename
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-02-01 19:54:19 +00:00
james-prysm
59be30e9f4
Web3Signer: metrics, tracing, and code coverage ( #10161 )
...
* initial commit for metrics, tracing, and code coverage
* fixing unit test, logs, and naming conventions
* Update validator/keymanager/remote-web3signer/internal/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/internal/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* adding required dependency
* adding more error annotations
* adding in negative test
* fixing bazel build
* gaz
* Update validator/client/validator_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/internal/client.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/validator_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing review comments
* Update validator/keymanager/remote-web3signer/internal/client_test.go
* reverting channel direction
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-02-01 18:28:41 +00:00
Mohamed Zahoor
b27d535ade
Storing synced tips in DB ( #10136 )
...
* DB support for storing synced tips
* gazel fix
* changed the synced_tips to map
* import formatting
* added function docs
* fix potuz comments
* fix prestons comment
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-02-01 16:17:28 +00:00
Nishant Das
e83c9d5862
Revert "Replace a Few IntFlags with Uint64Flags ( #9959 )" ( #10163 )
...
* Revert "Replace a Few IntFlags with Uint64Flags (#9959 )"
This reverts commit 790bf03123 .
* fix
* fix
2022-02-01 08:51:17 +00:00
Raul Jordan
eef2122a9e
Engine API Protobuf Definitions ( #10150 )
...
* define proto types for engine api
* proto lint
* prettify
* build bazel
* generated pb
* txs field
* regen
* ssz gen marshal
* fastssz
* ssz
* fmt
* json marshal unmarshal custom
* exec json tests
* passing tests
* deepsource
* gaz
* gaz
* deps
* ssz max
* regen proto
* regen ssz
2022-02-01 01:47:34 +00:00
Radosław Kapka
6406afc6cf
Native beacon state: v3 ( #10139 )
...
* Native beacon state: v3
* nogo_config
* remove duplicated bazel rule
* gzl
* fix unnecessary assignment
* review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-02-01 08:32:39 +08:00
terence tsao
8a01d412f5
Implement fork choice spec tests ( #10159 )
...
* starting
* Reimplement store
* begin on proposer boost
* implement fork choice proposer boost algorithm
* boosting
* gaz
* add mutexes and previous root
* comment on compute proposer boost
* safe
* rem todo
* reset and add tests
* unit test for proposer boost score
* boost works
* Can process block
* Basic test case passing
* ex ante
* test
* propoer test
* More progresses
* More fixes
* rm unused pieces
* Refactor, add phase 0
* locks
* vanilla ex-ante attack
* test similar to spec test
* works works works
* boost test working for num votes > proposer boost weight
* commentary fixes
* rem unused
* comments
* Proposer boost use store time
* Reset proposer root
* debugging
* passing
* Rm unused visibility imports
* Move update head to better place
* Fix deepsrc complains
* Fix more complains
* Raul's feedback
* Use correct byte lengths
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-31 19:03:48 +00:00
james-prysm
aed6e13498
Web3Signer: CLI implementation ( #10056 )
...
* initial commit for cli integration of web3signer
* resolving conflicts and execution
* remove aggregation slot from proto
* rem aggregation slot
* define a sync message block root struct
* fix sync message name
* sync message block root struct
* amend where sync committee block root is used
* altered switch statement to return correct json request by type
* fixing fork data import, types, and unit tests
* reverting unwanted changes
* reverting more unwanted changes
* fixing deepsource issues
* fixing formatting
* more fixes for deepsource and code clean up
* only want to fetch once for fetch validating public keys
* adding more comments
* new unit tests for requests and fixing a mapper issue
* Update validator/client/validator.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/accounts/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* adjusting comment
* adjusting comment
* fixing import organization
* including more unit tests
* adding new cli edit
* adding in checks for wallet initialize
* adding web3signer flags to main.go
* some how resolved files did not save correctly
* adding in check to make sure web flag only works with types imported and derived
* Update validator/client/sync_committee.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/accounts/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/main.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/wallet/wallet.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* reverting changes that accidently got checked in
* reverting
* reverting
* continuing to revert unintenteded changes
* reverting
* removing more unneeded changes
* addressing review comment
* initial refactor
* adding in more clarifying comments
* fixing mock
* resolving desource issues
* addressing gosec scan for helper go file
* addressing gosec
* trying to fix bazel build
* removal of interface to fix build
* fixing maligned struct
* addressing deepsource
* fixing deepsource
* addressing efficiency of type checking
* fixing bazel test failure
* fixing go linter errors
* gaz
* web changes
* add w3signer
* new kind
* proper use
* align
* adding prysm validator flags to help flags list
* addressing root comment
* ci lint
* fixing standardapi tests
* fixing accounts_test after removal of keymanager from rpc server
* fixing more unit tests
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update cmd/validator/flags/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing missed err checks
* fixing mock tests
* fixing gofmt
* unskipping minimal e2e test and removing related TODOs
* Update testing/endtoend/components/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update testing/endtoend/components/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* adding some error wrapers to clarify failure point
* fixing bazel build with new error checks
* taking preston's advice to make test fail faster to understand what's going on with the test
* checking if genesis validators root is not zero hash
* adding check for genesis validators root giving zero hash
* fixing missing dependency
* adding check for wallet
* log all
* fixing errors for http responses
* switching marshal to pretty print
* adding pretty sign request test
* fixing base url setting
* adding in check for web3signer and temporary wallet instead of having to open the wallet
* refactoring web3signer to not require wallet
* bazel build fix
* fixing gazelle build
* adding content type of request
* fixing more bazel
* removing unused code
* removing unused comments
* adding skip test back in
* addressing a validation and error message
* fix parse
* body
* fixing logic for datadir
* improving error handling
* show resp
* fix
* sign resp as str
* point of pointer remove
* sign resp
* unmarshal sig resp
* read body as str
* adding more verbose logging
* removing unused result
* fixing unit test
* reconfiguring files to properly nest code and mocks
* fix build issue
* using context when using client function calls
* fixing based on suggestion
* addressing comments
* gaz
* removing defined max timeout
* reverting json print pretty
* Update validator/accounts/wallet_edit.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* removing unneeded code restrictions
* should not introduce new code that may impact existing key manager types
* adjusting comments
* adding in json validation
* running go mod tidy
* some logging
* more logs
* fixing typo
* remove logs
* testing without byte trim
* fixing order or properties
* gaz
* tidy
* reverting some logs
* removing the confusing comments
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/client/aggregate.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing pr comments
* editing bytes test
* Run gazelle update-repos
* run gazelle
* improving unit test coverage
* fixing text
* fixing a potential escaped error
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-31 10:44:17 -06:00
Potuz
26ec352bdc
Update synced tips ( #10129 )
...
* add synced_tips structure
* create optimisticStore type
* Add UpdateSyncedTips
* use context
* update comment
* use better context cancellation
* reinsert removed error from different PR
* Minor clean ups
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-01-31 15:05:05 +00:00
Nishant Das
ce712a1a3e
Fix P2P Test ( #10157 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-31 12:23:25 +00:00
Preston Van Loon
98470fdb13
Update rules_go to v0.29.0 ( #10064 )
...
* Update rules_go, delete patch, fix analyzers, remove old deployContract code, and prune old dependency which was broken in rules_go update
* Undo some WORKSPACE diffs
* Gazelle
* remove nofuzz, fix build issue
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-31 07:06:07 +00:00
Preston Van Loon
ef906cf704
Update fuzzbuzz.yaml ( #10151 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-29 16:55:31 +00:00
Raul Jordan
65ec437ce5
Fork Choice Proposer Boost Changes ( #10083 )
...
* begin on proposer boost
* implement fork choice proposer boost algorithm
* boosting
* gaz
* add mutexes and previous root
* comment on compute proposer boost
* safe
* rem todo
* reset and add tests
* unit test for proposer boost score
* boost works
* ex ante
* test
* propoer test
* vanilla ex-ante attack
* test similar to spec test
* works works works
* boost test working for num votes > proposer boost weight
* commentary fixes
* rem unused
* comments
* boost necessary to sandwich unit test
* sad path
* gaz
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/forkchoice/protoarray/proposer_boost_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* gaz
* radek comments
* reset boosted root in on new slot
* pass
* broken tests
* cfg test
* modify e2e config
* Revert e2e changes
* Test
* Test again
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-01-29 16:32:01 +00:00
Preston Van Loon
58733a9f40
go 1.18 fuzz tests: initial testing ( #10063 )
...
* Add basic fuzz test
* Add a few tests for HTR utils
* gofmt
* Add requirement for fuzz gotag
* Run gaz and fix tags
* Update pubsub_fuzz_test.go
I'll fix this later
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-29 08:01:58 +00:00
terence tsao
762ea6dce1
State balance cache: handle input zeros ( #10144 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-28 17:14:13 +00:00
terence tsao
eef1730f9e
Bellatrix sync changes ( #10097 )
...
* Add bellatrix sync changes
* Fix tests
* Update validate_beacon_blocks.go
* check state and block versions
* Sync with develop
* Update rpc_chunked_response_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-28 16:26:52 +00:00
Potuz
de7f7d783e
Remove unused code ( #10142 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-01-28 14:52:30 +00:00
Nishant Das
5eafb80091
fix it ( #10145 )
2022-01-28 12:07:41 +08:00
Potuz
cb0c382bf3
Fix Fork Choice prunning ( #10137 )
...
* Fix Fork Choice prunning
* Use copy node. Update comments and var names.
* rm unused err var
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-01-27 19:17:19 +00:00
Radosław Kapka
15485f50c3
Fix native state imports ( #10140 )
2022-01-27 11:02:16 +00:00
Radosław Kapka
9ee00f09a1
Native beacon state: v2 ( #10121 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-27 09:42:32 +01:00
Radosław Kapka
72817a6d0e
Unify validator status response in RPC ( #10128 )
2022-01-26 14:23:53 -05:00
Preston Van Loon
943dec525c
Refactor mock test helpers ( #10133 )
...
* Delete deploy contract tool. Move mock to its own package as testonly with some helper functions
* gofmt contracts/deposit/mock/mock.go
* move stategen mock.go to its on testonly pkg
* move password_reader_mock.go to mock testonly package
* move mock keymanager to its own testonly package
* move attestations mock
* move voluntaryexits mock
* Move slashings mock to mock pkg
* move the slasher mock
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-26 14:48:20 +00:00
Leo Lara
d9799e6b6c
#10036 Replace codename Merge with Bellatrix (2nd step) ( #10116 )
...
* Rename BeaconBlockBodyMerge to BeaconBlockBodyBellatrix
* Rename SignedBeaconBlockMerge to SignedBeaconBlockBellatrix
* Rename CopyBeaconBlockMerge to CopyBeaconBlockMerge
* Rename NewBeaconBlockMerge to NewBeaconBlockBellatrix
* Rename BeaconBlockMerge to BeaconBlockBellatrix
* Rename some comments and strings in pkg proto: Merge -> Bellatrix
* Rename PbMergeBlock to PbBellatrixBlock
* Many renames of merge -> bellatrix in proto package
* Rename some Merge -> Bellatrix in beacon chain package
* More names
* Fix formating in config/params/config.go
* Rename Merge -> Bellatrix in proto/prysm/storage
* Several renames and corrections Merge -> Bellatrix
Co-authored-by: Potuz <potuz@potuz.net >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@potuz.net >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-26 07:24:47 +00:00
Potuz
f0fd29d367
Is optimistic ( #10124 )
...
* add synced_tips structure
* create optimisticStore type
* Add ForkChoice.Optimistic()
Adds the logic implementing whether a synced block is optimistic or not.
* Terence's bug catch
* Reinforce warning
* Preston's review
* add comment on optimistic sync
2022-01-26 01:42:18 +00:00
terence tsao
22982e5221
Add on_tick from spec ( #10130 )
...
* Add `on_tick` from spec
* Update BUILD.bazel
2022-01-25 22:07:57 +00:00
terence tsao
5a505509c3
Use store in blockchain service ( #10125 )
...
* Use store in blockchain service
* handle nil cases
2022-01-25 18:47:39 +00:00
Radosław Kapka
588658a649
Extract conditional slot processing to new function ( #10114 )
...
* Extract conditional slot processing to new function
* rename function
2022-01-25 14:52:18 +00:00
terence tsao
ae31eed013
Add blockchain store for checkpoints ( #10118 )
...
* Add store with tests
* Rm genesis time
* Previous finalized
* Go fmt
* Update beacon-chain/blockchain/store/type.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-24 19:53:05 +00:00
Nishant Das
e26cde5e09
Make Balance Trie Computation Default ( #10112 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-24 11:36:10 +00:00
Radosław Kapka
5cc201288d
Native beacon state: v1 ( #10086 )
2022-01-24 11:24:38 +01:00
Nishant Das
b4fa626aff
Use Batch Decompression For Signatures ( #10105 )
...
* use batch decompress method
* terence's review
* gosimple
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-01-21 22:57:29 +00:00
Nishant Das
498e5efed1
Make Get Block Optimization Default ( #10113 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-01-21 22:22:44 +00:00
Nishant Das
f563d00e79
Filter Duplicates Messages For Sync Contributions ( #10106 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-21 18:25:59 +00:00
Nishant Das
ff50448ca2
Make Batch Verification Of Gossip Default ( #10111 )
...
* make default
* add it back
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-21 17:26:42 +00:00
Preston Van Loon
26120e26cb
Resolve issues with G304 ( #10115 )
2022-01-21 16:52:31 +00:00
terence tsao
8d610319bc
Remove commented code ( #10104 )
...
* Update service.go
* go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 18:15:05 +00:00
terence tsao
288b38be8e
Bellatrix p2p changes ( #10072 )
...
* Add `process_execution_payload` to `process_block`
* bring in bellatrix p2p changes
* lint
* fix testcase to use MaxChunkSize as config to change allowed size instead of config
* add left out config params
* Fix TestForkSchedule_CorrectNumberOfForks
* fixed Nishant's comments
* gofmt
* add switch case
Co-authored-by: Mohamed Zahoor <zahoor@zahoor.in >
Co-authored-by: Zahoor Mohamed <zahoor@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-20 22:12:15 +08:00
Nishant Das
af06bb9737
Do Not Copy State During Upgrade ( #10102 )
...
* no copy
* no copy
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 06:54:21 +00:00
Nishant Das
52f1190b17
Cleanup Up Resources Correctly ( #10103 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 06:21:06 +00:00
Preston Van Loon
7df01feb58
Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing ( #10065 )
...
* Remove libfuzzer / afl based builds in favor of go 1.18 fuzz testing
* rm beacon-fuzz archive
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-20 04:51:02 +00:00
Nishant Das
49c73e65a1
make it better ( #10101 )
2022-01-20 10:37:27 +08:00
terence tsao
06c3306ac2
Update stategen for Bellatrix ( #10089 )
...
* Update stategen to for Bellatrix
* Update BUILD.bazel
* Update replay.go
2022-01-19 22:18:11 +00:00
Preston Van Loon
c3228cd5a7
e2e: Add web3signer component ( #10088 )
...
* Add initial web3signer binary
* Add support for web3signer component in e2e
* revert some changes
* Reference https://github.com/ConsenSys/web3signer/issues/485 in commentary
* gofmt
* Add notice about java 11 requirement
* Sec issue, revert to 0750 permissions
* remove unused param
* remove unused import
* use hexutil
* Fix yaml struct tags. See https://github.com/ConsenSys/web3signer/issues/485\#issuecomment-1015994840
* fmt
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-19 16:22:23 +00:00
james-prysm
8da8855ad5
Web3Signer: Sign Method Implementation ( #10084 )
...
* breaking up changes from cli pr
* reverting some changes, adding in changes from remote-web3signer
* adding raul's change
* adding fork info to signing calls
* fixing imports
* gaz
* fixing gofmt
* removing unneeded comment
* Update validator/client/aggregate.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/client/sync_committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing comments
* revert proto changes
* proto changes
* reserve
* reserve
* switching to passing slot from passing fork, using slot to find the fork
* removing unneeded check
* fixing missed unit test
* optional
* optional
* gaz
* improving some definitions with constants
* improving some definitions with constants
* rem opt
* rem
* gaz
* moving mocks to its own folder
* adding in bazel field to fix
* fixing type check error
* fixing build
* fixing strict imports
* fixing dependencies
* changing bazel build
* changing bazel build
* changing bazel build
* removing testing only dependency
* removing dependency on testing util package
* update bazel build
* Update checktags_test.go
* Update active_balance.go
* Update sync_committee_minimal.go
* Update sync_committee_mainnet.go
* Update active_balance_disabled.go
* Update committee.go
* Update committee_disabled.go
* Update sync_committee.pb.gw.go
* Update powchain.pb.gw.go
* Update proposer_indices.go
* Update proposer_indices_disabled.go
* Update sync_committee.go
* Update mainnet.go
* Update p2p_messages.pb.gw.go
* Update finalized_block_root_container.pb.gw.go
* Update beacon_block.pb.gw.go
* Update attestation.pb.gw.go
* Update secret_key_test.go
* Update beacon_state.pb.gw.go
* Update version.pb.gw.go
* Update sync_committee.pb.gw.go
* Update sync_committee_disabled.go
* Update mainnet_test.go
* Update minimal.go
* Update signature_test.go
* Update gocast.go
* Update cgo_symbolizer.go
* Update validator.pb.gw.go
* Update beacon_state.pb.gw.go
* Update signature.go
* Update public_key_test.go
* Update minimal_test.go
* Update checktags_test.go
* Update bls_benchmark_test.go
* Update public_key.go
* Update secret_key.go
* Update aliases.go
* Update init.go
* Update stub.go
* Update journald_linux.go
* Update attestation.pb.gw.go
* Update config_utils_develop.go
* Update stub.go
* Update stub.go
* Update beacon_block.pb.gw.go
* Update validator.pb.gw.go
* Update node.pb.gw.go
* Update config_utils_prod.go
* Update journald.go
* Update beacon_block.pb.gw.go
* Update beacon_chain.pb.gw.go
* Update beacon_state.pb.gw.go
* Update events.pb.gw.go
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing comments from review
* updating length of comment
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update stub.go
revert changes
* Update validator/client/aggregate_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing final comments
* fixing gofmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-18 14:31:58 -06:00
Mohamed Zahoor
4ca04dcc4b
Add storage wrapper for BeaconState ( #9963 )
...
* adding proto wrapper for BeaconState
* remove BUILD.bazel file spelling mistake
* address terence review comments
* remove capitalization
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* renamed as storage, use v1alpha1 ojects
* fix lint in the generated file
* store state as ssz bytes
* added a seperate version for managing storage
* goimports generated files to satisfy lint
* changed proto to oneof
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-01-18 15:21:56 +00:00
Radosław Kapka
68ef8ae99a
Remove CanonicalStateChan ( #10093 )
...
(cherry picked from commit 69a2ffd7c9 )
2022-01-18 14:24:47 +00:00
Leo Lara
64c02c405b
Move ErrNilValidatorsInState from one in each state version to a common one ( #10074 )
...
To increase DRY and enable DRY in tests and other users of the Beacon Chain state package,
an error that was duplicated unnecessarily in each version of the state is moved to the root
Beacon Chain state package.
2022-01-18 08:19:20 +00:00
terence tsao
33d1ae0792
Eth2api: GetBlockSSZ supports bellatrix block ( #10077 )
...
* add rpc and tests
* rename
2022-01-17 02:30:09 +00:00
Preston Van Loon
182bd615ac
refactoring: Deduplicate code ( #10090 )
...
* Deduplicate sync committee indices from state
* Deduplicate code in listblocks RPC endpoints, which only differ in response object
* Deduplicate test code in config/fieldparams
* Delete stale benchmark target. This is already included in go_default_test
* deduplicate test cases in TestIsSlashableValidator_OK and fix blst
BUILD file
* Deduplicate TestStore_IsFinalizedChildBlock
* Revert crypto/bls/blst/BUILD.bazel
* Deduplicate TestStore_SaveBlock_NoDuplicates
* Use a generic wrapper for beacon blocks to streamline test
* Deduplicate TestStore_BlocksCRUD
* Deduplicate TestStore_BlocksHandleZeroCase
* Deduplicate TestStore_BlocksBatchDelete
* deduplicate TestStore_BlocksHandleInvalidEndSlot
* Deduplicate TestStore_BlocksCRUD_NoCache
* Deduplicate common block test setup. Make TestStore_Blocks_FiltersCorrectly support multiple forks in test
* Deduplicate the rest of these tests
* lint
* Deprecation warning
* Add test for WrappedSignedBeaconBlock
* Test error path
2022-01-16 18:44:42 +00:00
terence tsao
3c54eb1cf6
Add propose block bellatrix ( #10085 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-14 21:24:22 +00:00
Michael Neuder
9166f40a04
Eth1 connections ( #10073 )
...
* Adding Eth1 connections data message to service definition
* PoC implementation for ETH1 connections RPC
* naming revisions
* cleanup
* register powchain info fetcher
* regenerate protos
* gazelle Bazel
* fixing comments
Co-authored-by: Michael Neuder <michaelneuder@Michaels-MacBook-Pro.local >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-14 11:13:04 -05:00
Preston Van Loon
98990ba280
p2p: Update libp2p and libp2p-pubsub ( #10082 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-14 14:06:20 +00:00
Radosław Kapka
9ace518539
Custom types for the native beacon state ( #10080 )
...
* custom-types package
* split types into distinct files
2022-01-14 13:25:41 +00:00
Chase Jeter
0ea4b02b8b
Added analyzer for detecting recursive/nested mutex read locks. ( #10066 )
...
* Added analyzer for detecting recursive/nested mutex read locks.
* Added type assertion checks and removed unused 'iTypes' directory
* Clean up
* Bazel file fixes
* Cleaned up code and added comments.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-14 17:12:21 +08:00
Radosław Kapka
d73794ce72
Make Radek and Nishant code owners of duplicated state code ( #10079 )
...
* Make Radek and Nishant code owners of the native state feature
* newline
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-13 21:16:42 +00:00
Preston Van Loon
2ad0ad5877
Spectests: Refactor ssz_static tests to deduplicate code and test custom HTR ( #10081 )
...
* Copy over refactoring efforts from PR #9402
* Remove unused type
* godoc commentary
* Better example err msg
* Better example err msg
2022-01-13 19:52:39 +00:00
Radosław Kapka
963acefe12
Split state package into state-proto and state-native ( #10069 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: Dan Loewenherz <dloewenherz.adm@gmail.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: Fredrik Svantes <fredrik@ethereum.org >
Co-authored-by: Leo Lara <leolara@users.noreply.github.com >
2022-01-13 12:23:53 +01:00
Radosław Kapka
0ee85bcbab
Do not reuse endpoint struct between API Middleware requests ( #10076 )
2022-01-12 18:58:32 +00:00
Preston Van Loon
5fb0bcfacd
tools/deployContract: Remove specific k8s code ( #10075 )
2022-01-12 18:31:38 +00:00
james-prysm
f52a214cce
Web3Signer: Object Mapper and Types ( #10061 )
...
* initial commit
* fixing some types and renaming file
* initial map function commit and moving to a v1 folder
* adding in remaining mapper functions and comments for types and initial commit on unit tests
* adding readme
* fixing unit tests and errors caught
* fixed a few missed properties and names
* updating error handling to be more descriptive
* Update validator/keymanager/remote-web3signer/client_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/v1/custom_mappers.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/v1/custom_mappers.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* fixing comments
* fixing comments
* adding more error checks
* Update validator/keymanager/remote-web3signer/client.go
* fmt and bazel build
* fixing unit tests
* lint needed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-11 17:15:40 -05:00
terence tsao
88b94eae18
Export reverse byte order function ( #10040 )
...
* Reverse byte order
* Update BUILD.bazel
* Go imports
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-11 18:42:03 +00:00
Potuz
3d02addfe4
Update README.md ( #10071 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-01-11 16:32:07 +00:00
Raul Jordan
53f7030871
Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs ( #10032 )
...
* handle trie recomputes
* recomp
* state trie
* args
* deep source
* amend test
* proofs test more fixes
* tests pass
2022-01-11 17:36:03 +08:00
terence tsao
84335b0084
Bellatrix spec tests ( #10014 )
...
* Add merge spectests
* fix build
* gazelle
* operation
* all tests should pass
* go fmt
* fix test
* fix dependency
* rm unused constants
* rename to bellatrix
* Gaz
* Rm unused files
* Use Bellatrix for test names
* Add more spec tests
* Gaz and fix test
* sync with dev
* Preston's feedback
* Go fmt
* sync with dev
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-10 18:27:08 +00:00
Leo Lara
b1c2454658
#10036 Replace codename Merge with Bellatrix (1st step) ( #10044 )
...
* Rename BeaconStateMerge to BeaconStateBellatrix
* Rename version.Merge to version.Bellatrix
* Rename ComputeFieldRootsWithHasherMerge to ComputeFieldRootsWithHasherBellatrix
* Rename test names to Bellatrix
* Rename comments and strings to Bellatrix
* Fix formatting in a few files
* Revert wrong renaming in test name
* Revert renaming to Bellatrix in mainnet_config.go
* Revert renaming of db key without migration
* Regenerate from proto changes
* Rename new use of already renamed symbols
* gofmt and goimports after regenerating protofiles
* revert weird imports
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-01-10 16:47:30 +00:00
Fredrik Svantes
29a8b6c08f
Updating from buster to bullseye ( #10025 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-10 15:48:43 +00:00
Radosław Kapka
3bce9df382
Allow comma-separated event topics ( #10052 )
2022-01-07 17:17:29 +00:00
terence tsao
8ee3019954
Can upgrade to Bellatrix in process slots ( #10062 )
...
* Add `process_execution_payload` to `process_block`
* Add upgrade bellatrix to process slots
* Add upgrade bellatrix to process slots
* gazelle
2022-01-07 16:47:33 +00:00
terence tsao
ef1227b14c
Add process_execution_payload to process_block ( #10060 )
2022-01-06 19:36:39 +00:00
Preston Van Loon
80b7f691ae
p2p: no alloc extract of gossip digest ( #10055 )
...
* Extract gossip topic without a full copy via strings.Split
* Add basic benchmark
* gofmt
* Add empty topic test case
* Remove nl
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-06 18:17:51 +00:00
terence tsao
c69bce5d84
Use fieldparams for BLS public key ( #10042 )
...
* Use fieldparams for pubkey length
* Fix validator tests
* fix more tests
* fix mock validator
* Fix typo
* bunch of typos
* Update bytes.go
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-06 17:33:08 +00:00
Fredrik Svantes
ad06230291
Updating eip3076_spec_tests and eth_networks URLs ( #10057 )
...
From old eth2-clients to new eth-clients
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-06 16:58:37 +00:00
terence tsao
a1a301ad5d
process payload ( #10054 )
2022-01-06 08:22:38 -08:00
james-prysm
d28ae62d02
Web3signer keymanager: key manager implementation ( #10016 )
...
* initial commit for work on web3signer-keymanager
* WIP key manager client
* adding in more valid unit tests
* refactoring some of my code to work better with current implementations
* adding comments, some error situations and fixing unit tests
* updating go.mod
* gaz
* addressing sandbox errors on test
* fixing more sand box debug items
* missed yet another error case on my test
* reverting go.mod
* addressing comments
* missed removal of unit test
* removing some deepsource issues
* adjusting based on review comments
* addressing comments
* adding the missed types
* changing public keys to only pull once
* fixing commented code format
* gaz
* Update validator/keymanager/remote-web3signer/keymanager.go
updating comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/client.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* fixing conflicts
* addressing comments
* fixing deepsource issues
* more deep source issue fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-01-05 14:32:46 -06:00
terence tsao
d6a02833dc
Add HTR for txs ( #10030 )
...
* Add htr for txs
* gaz
* minimal
* test pack
2022-01-05 18:36:39 +00:00
terence tsao
fade8aa7a9
Add validate payload helpers ( #10028 )
...
* Add merge complete helper
* Update BUILD.bazel
* minimal
* Add validate payload helpers
* gaz
* update tests
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-01-05 15:28:58 +00:00
terence tsao
8604832499
Use prysm require test lib ( #10039 )
...
* Use prysm require test lib
* Fix typo
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-05 07:06:51 +00:00
terence tsao
ceabee0198
Update Transactions and ExtraData non empty check ( #10049 )
2022-01-03 23:53:39 +01:00
terence tsao
ebedf481f8
Update bazel version to 4.2.2 ( #10045 )
2021-12-27 23:51:23 +00:00
terence tsao
9f27af43cb
Spectest 1.1.8 ( #10041 )
...
* Update spec test to v1.1.8
* Update names
* Update network repo
* Update WORKSPACE
* Better names
* Update beacon-chain/core/time/slot_epoch.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-12-26 23:18:28 +00:00
terence tsao
09690590f0
Update spec test to v1.1.7 ( #10033 )
2021-12-23 21:33:41 +00:00
terence tsao
e3c8491177
Add is_execution_enabled helper ( #10027 )
2021-12-22 15:03:54 -08:00
terence tsao
bfc90e9abb
Add is_merge_block helper ( #10026 )
...
* Add merge complete helper
* Update BUILD.bazel
* minimal
* Add is_merge_block helper
* rename to `IsMergeBlock`
2021-12-22 15:52:50 +00:00
Raul Jordan
d173a6e695
Merkle Proof Support for BeaconState Finalized Root and Sync Committees ( #10029 )
2021-12-19 17:02:42 -08:00
Potuz
7f857ae23a
Fix sync commitee endpoint ( #10015 )
2021-12-18 17:04:30 +01:00
terence tsao
23e39d3d64
Fix state alias v3 ( #10022 )
2021-12-16 22:44:43 +00:00
terence tsao
ec65c442c4
Minor cleanups on monitor service ( #10013 )
...
* Minor cleanups on monitor service
* Update tests
* Update process_block_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-15 20:42:20 +00:00
terence tsao
b38b0186b8
Use signature length from fieldparams ( #10019 )
...
* Use bls sig length from fieldparams
* fmt
* fix tests
* fix tests
* fix tests
* Update tags_test.go
* fix tests
* Update BUILD.bazel
2021-12-15 15:14:30 -05:00
terence tsao
4bf935928b
Use field params root length ( #10012 )
...
* Use config length 32
* Add root length to minimal
* Fix build
* Gaz
2021-12-14 18:42:05 +00:00
terence tsao
acc4ee8d9d
Add beacon state upgrade to merge version helper function ( #9981 )
2021-12-14 01:18:27 -08:00
terence tsao
7b7ed87ad8
Add more merge processing (non substrantive) ( #10000 )
...
* Add more merge processing
* Update tests
* raul's feedback
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-12-13 18:04:37 +00:00
Nishant Das
5ab88da183
Use Static Sizes for State Fields ( #10007 )
2021-12-13 10:16:23 +01:00
Raul Jordan
d6338f6042
Update Web UI Version to v1.0.2 ( #10009 )
...
* latest web ui
* fmt
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-12-11 11:36:00 -06:00
Antonio Sanso
c84c6ab547
Add Missing spec tests in sss_static.go ( #10003 )
...
* Update ssz_static.go
* Update ssz_static.go
* Update testing/spectest/shared/phase0/ssz_static/ssz_static.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Add Missing spec tests in sss_static.go
* Update testing/spectest/shared/altair/ssz_static/ssz_static.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-12-10 15:18:57 -06:00
Radosław Kapka
52d8a1646f
Standardize config overriding in tests across repo ( #9998 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-10 04:18:47 +00:00
kasey
3c61cc7d8a
allow checkpoint or genesis origin; refactoring ( #9976 )
...
* allow checkpoint or genesis origin; refactoring
some quick readability improvements and simplifying the logic enforcing
the startup ordering of the attestation processing routine
* address PR feedback
* gofmt
* Update beacon-chain/blockchain/receive_attestation.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Apply suggestions from code review
use log.WithError for aggregation friendliness
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: kasey <kasey@users.noreply.github.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-09 22:23:00 +00:00
Raul Jordan
37ca409cc1
Add More Fields to Remote Signer Sign Request ( #10004 )
...
* add in new fields
* sign request added
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-09 21:53:54 +00:00
Raul Jordan
b381ad49b5
Add Justifications for Gosec Ignored ( #10005 )
...
* pin gosec
* edit
* go back to master
* justifications
* Update crypto/bls/blst/signature.go
* proper format
* gosec
2021-12-09 19:40:48 +00:00
james-prysm
00c3a7dcaf
Web3signer: Add an HTTP Client Wrapper to Interact with Remote Server ( #9991 )
...
* initial commit for web3signer code work in progress
* adding more functions for web3signer
* more improvements to unit tests and web3signer functions
* fixing unit test
* removing path construction
* fixing failing unit test
* adding more happy path unit tests
* fixing unit tests
* temp removing keymanagerfiles being wip
* removing some comments
* Update validator/keymanager/remote-web3signer/client.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update validator/keymanager/remote-web3signer/client.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* making errors lowercase
* addressing review comments
* missed resolving a conflict
* addressing deepsource issues
* bazel test and gazelle
* no lint
* deadcode
* addressing comments
* fixing comments
* small fix for readability
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-12-09 09:33:53 -06:00
james-prysm
d66edc9670
fix cors middleware ( #9999 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-12-08 17:13:28 -05:00
Raul Jordan
4b249607da
Return ERROR Status in ImportKeystores standard API endpoint if slashing protection fails ( #9995 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-08 19:52:05 +00:00
Radosław Kapka
02483ba89c
Add missing config cleanup in tests ( #9996 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-08 19:24:16 +00:00
terence tsao
9629c354f1
Use merge configs for processing ( #9982 )
2021-12-08 11:02:53 -08:00
Raul Jordan
886332c8fa
Add Safe Sub64 Method ( #9993 )
...
* add sub 64
* add sub
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-08 09:44:54 +00:00
Raul Jordan
424c8f6b46
API Middleware for Keymanager Standard API Endpoints ( #9936 )
...
* begin the middleware approach
* attempt middleware
* middleware works in tandem with web ui
* handle delete as well
* delete request
* DELETE working
* tool to perform imports
* functioning
* commentary
* build
* gaz
* smol test
* enable keymanager api use protonames
* edit
* one rule
* rem gw
* Fix custom compiler
(cherry picked from commit 3b1f65919e04ddf7e07c8f60cba1be883a736476)
* gen proto
* imports
* Update validator/node/node.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* remaining comments
* update item
* rpc
* add
* run gateway
* simplify
* rem flag
* deep source
Co-authored-by: prestonvanloon <preston@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-12-07 20:26:21 +00:00
terence tsao
cee3b626f3
make db merge compatible ( #9987 )
...
* make db merge compatible
* util merge.go per @rauljordan
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-07 18:51:05 +00:00
Radosław Kapka
5569a68452
Code cleanup ( #9992 )
...
* Value assigned to a variable is never read before being overwritten
* The result of append is not used anywhere
* Suspicious assignment of range-loop vars detected
* Unused method receiver detected
* Revert "Auxiliary commit to revert individual files from 54edcb445484a2e5d79612e19af8e949b8861253"
This reverts commit bbd1e1beabf7b0c5cfc4f514dcc820062ad6c063.
* Method modifies receiver
* Fix test
* Duplicate imports detected
* Incorrectly formatted error string
* Types of function parameters can be combined
* One more "Unused method receiver detected"
* Unused parameter detected in function
2021-12-07 17:52:39 +00:00
Raul Jordan
1eff00fb33
Display Num Pruned Items in Slasher Only When Actually Prunes ( #9989 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-07 14:38:19 +00:00
terence tsao
2bcda2e021
Add more merge related protobufs ( #9986 )
...
* Add merge protos
* Update proto/eth/v2/beacon_block.proto
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-12-07 08:08:14 +00:00
Raul Jordan
98fea2e94d
Slasher Significant Optimizations ( #9833 )
...
* optimizations to slasher runtime
* remove unnecessary code
* test for epoch update
* commentary
* Gaz
* fmt
* amend test
* better logging
* better logs
* log
* div 0
* more logging
* no log
* use map instead
* passing
* comments
* passing
* for select loop wait for init
* sub
* srv
* debug
* fix panic
* gaz
* builds
* sim gen
* ineff
* commentary
* data
* log
* base
* try
* rem logs
* sim logs
* fix wait for sync event
* ev
* init
* init
* Update beacon-chain/slasher/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* comments
* elapsed
* Update testing/slasher/simulator/simulator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* timeout
* inner cancel
* ctx err everywhere
* Add context aware to several potentially long running db operations
* Fix missing param after updating with develop
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-12-06 21:45:38 +00:00
Radosław Kapka
e53be1acbe
Do not rely on peer order in TestDebugServer_ListPeers ( #9988 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-12-06 19:29:48 +00:00
Nishant Das
c9f5f8dad5
Use Cached Finalized State When Pruning Deposits ( #9985 )
...
* use cached finalized state
* Minor grammar edits
* fmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-12-06 12:38:23 +00:00
terence tsao
03bf463d0f
Remove unused validator proto imports ( #9983 )
2021-12-04 21:05:54 +01:00
terence tsao
afb49aaeb9
Add and use merge penalty params ( #9878 )
...
* Add and use merge penalty params
* add attester slashing test
* Update config_test.go
* Use DeterministicGenesisStateMerge
2021-12-03 22:00:34 +00:00
Potuz
1fd65ad7fd
typos ( #9979 )
2021-12-03 20:18:43 +00:00
Potuz
b1df3b55b0
more typos ( #9980 )
2021-12-03 16:31:30 -03:00
Preston Van Loon
3767574c77
stateutil: Reduce allocations by specifying slice capacity eager ( #9977 )
...
* Reduce allocations by specifying slice capacity eager
* gofmt
2021-12-03 09:06:05 +00:00
Raul Jordan
d3c97da4e1
Ensure Slashing Protection Exports and Keymanager API Work According to Spec ( #9938 )
...
* password compliance
* delete keys tests
* changes to slashing protection exports
* export tests pass
* fix up failures
* gaz
* table driven tests for delete keystores
* comment
* rem deletion logic
* look ma, no db
* fix up tests
* ineff
* gaz
* broken test fix
* Update validator/keymanager/imported/delete.go
* rem
2021-12-02 09:58:49 -05:00
Raul Jordan
1d216a8737
Filter Errored Keys from Returned Slashing Protection History in Standard API ( #9968 )
...
* add err condition
* naming
2021-12-02 03:32:34 +00:00
Raul Jordan
790bf03123
Replace a Few IntFlags with Uint64Flags ( #9959 )
...
* use uints instead of ints
* fix method
* fix
* fix
* builds
* deepsource
* deep source
2021-12-01 23:34:53 +00:00
Preston Van Loon
ab60b1c7b2
Update go-ethereum to v1.10.13 ( #9967 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-01 19:31:21 +00:00
Nishant Das
236a5c4167
Cleanup From Deepsource ( #9961 )
...
* ds cleanup
* fix
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-01 18:56:07 +00:00
Nishant Das
5e2229ce9d
Update Libp2p to v0.15.1 ( #9960 )
...
* fix deps
* tidy it all
* fix build
* remove tls patch
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-01 18:09:34 +00:00
Potuz
6ffba5c769
Add v1alpha1_to_v2.go ( #9966 )
...
* Add v1alpha1_to_v2.go
* add tests
* gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-12-01 17:39:43 +00:00
Potuz
3e61763bd7
fix operation precedence ( #9965 )
2021-12-01 17:14:08 +00:00
terence tsao
23bdce2354
Fix grpc client connected... logging ( #9956 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-12-01 14:45:39 +00:00
Nishant Das
d94bf32dcf
Faster Doppelganger Check ( #9964 )
...
* faster check
* potuz's review
* potuz's review
2021-12-01 12:37:10 +00:00
Nishant Das
7cbef104b0
Remove Balances Timeout ( #9957 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-12-01 04:03:26 +00:00
Potuz
cd6d0d9cf1
Monitor aggregated logs ( #9943 )
2021-12-01 03:35:55 +00:00
Potuz
afbe02697d
Monitor service ( #9933 )
...
* Add a service for the monitor
* Do not block service start
* gaz
* move channel subscription outide go routine
* add service start test
* fix panic on node tests
* Radek's first pass
* Radek's take 2
* uncap error messages
* revert reversal
* Terence take 1
* gaz
* Missing locks found by Terence
* Track via bool not empty interface
* Add tests for every function
* fix allocation of slice
* Minor cleanups
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-30 19:27:03 -03:00
terence tsao
2c921ec628
Update spec tests to v1.1.6 ( #9955 )
...
* Update spec test to v1.1.6
* Update spec test to v1.1.6
2021-11-30 21:21:59 +00:00
terence tsao
0e72938914
Uncap error messages ( #9952 )
2021-11-30 07:41:07 -08:00
Potuz
71d55d1cff
Check for syncstatus before performing a voluntary exit ( #9951 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-11-30 10:40:59 +00:00
terence tsao
d8aa0f8827
Alter config filed name to devnet if it's not populated in file ( #9949 )
2021-11-29 19:27:26 -08:00
Nishant Das
37bc407b56
Refactor States To Allow for Single Cached Hasher ( #9922 )
...
* initial changes
* gaz
* unexport and add in godoc
* nocache
* fix edge case
* fix bad implementation
* fix build file
* add it in
* terence's review
* gaz
* fix build
* Apply suggestions from code review
remove assigned ctx
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-29 16:30:17 +00:00
Potuz
5983d0a397
Allow requests for next sync committee ( #9945 )
...
* Allow requests for next sync committee
* fix deepsource and variable rename
* Minor cleanup
* Potuz's comments
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-28 17:34:24 +00:00
terence tsao
85faecf2ca
Add test utility merge state ( #9944 )
...
* Add test utility merge state
* gaz
* gaz
2021-11-26 15:53:25 +00:00
terence tsao
f42227aa04
Rest of the merge state implementation ( #9939 )
...
* Add rest of the state implementations
* Update BUILD.bazel
* Update state_trie_test.go
* fix test
* fix test
* Update beacon-chain/state/v3/state_trie.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Update beacon-chain/state/v3/state_trie.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* add ctx
* go fmt
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2021-11-25 17:41:05 -03:00
terence tsao
c9d5b4ba0e
Add merge beacon block wrappers ( #9906 )
2021-11-24 14:26:17 -08:00
Potuz
fed004686b
Add verbosity to aggregation logs ( #9937 )
2021-11-24 11:35:45 -08:00
Raul Jordan
4ae7513835
Import Keystores Standard API Implementation ( #9924 )
...
* begin
* rem deleted code
* delete keystores all tests
* surface errors to user
* add in changes
* del
* tests
* slice
* begin import process
* add import keystores logic
* unit tests for import
* tests for all import keystores keymanager issues
* change proto
* pbs
* renaming works
* use proper request
* pb
* comment
* gaz
* fix up cli cmd
* test
* add gw
* precond
* tests
* radek comments
2021-11-24 10:40:49 -05:00
Nishant Das
1d53fd2fd3
revert change ( #9931 )
2021-11-24 07:09:15 -08:00
Potuz
a2c1185032
Monitor sync committee ( #9923 )
...
* Add sync committeee contributions to monitor
* gaz
* Raul's review
* Added lock around TrackedValidators
* add comment to trackedIndex
* add missing locks because of trackedIndex
* Terence fixes 2
* moved TrackedValidator to service from config
* Terence comment fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-11-24 09:56:34 +08:00
terence tsao
448d62d6e3
Add merge beacon chain objects and generate ssz.go ( #9929 )
2021-11-23 23:34:31 +00:00
terence tsao
4858de7875
Use prysmaticlabs/fastssz ( #9928 )
...
* Use prysmaticlabs/fastssz
* Generated code
2021-11-23 21:28:24 +00:00
terence tsao
cd1e3f2b3e
Rename coinbase to fee recipient ( #9918 )
...
* Rename coinbase to fee recipient
* Fix imports
* Update field name
* Fee receipient
* Fix goimports
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-23 17:49:06 +00:00
Nishant Das
6f20d17d15
Rename To Signature Batch ( #9926 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-11-23 17:57:06 +01:00
terence tsao
94fd99f5cd
Add getters and setters for beacon state v3 (part 2) ( #9916 )
2021-11-22 15:56:23 -08:00
Potuz
d4a420ddfd
Monitor blocks ( #9910 )
...
* Add proposer logging to validator monitor
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-22 18:20:31 -03:00
terence tsao
838b19e985
Add getters and setters for beacon state v3 (part 1) ( #9915 )
2021-11-22 09:37:55 -08:00
Potuz
788338a004
Stop packing deposits early if we reach max allowed ( #9806 )
...
* Stop packing deposits early if we reach max allowed
* Add logs to proposals without deposits
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_deposits.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_deposits.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_deposits.go
* reinsert debug log
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-11-20 14:14:07 +00:00
kasey
39c33b82ad
Switch to lazy state balance cache ( #9822 )
...
* quick lazy balance cache proof of concept
* WIP refactoring to use lazy cache
* updating tests to use functional opts
* updating the rest of the tests, all passing
* use mock stategen where possible
reduces the number of test cases that require db setup
* rename test opt method for clear link
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* test assumption that zerohash is in db
* remove unused MockDB (mocking stategen instead)
* fix cache bug, switch to sync.Mutex
* improve test coverage for the state cache
* uncomment failing genesis test for discussion
* gofmt
* remove unused Service struct member
* cleanup unused func input
* combining type declaration in signature
* don't export the state cache constructor
* work around blockchain deps w/ new file
service_test brings in a ton of dependencies that make bazel rules
for blockchain complex, so just sticking these mocks in their own
file simplifies things.
* gofmt
* remove intentionally failing test
this test established that the zero root can't be used to look up the
state, resulting in a change in another PR to update stategen to use the
GenesisState db method instead when the zero root is detected.
* fixed error introduced by develop refresh
* fix import ordering
* appease deepsource
* remove unused function
* godoc comments on new requires/assert
* defensive constructor per terence's PR comment
* more differentiated balance cache metric names
Co-authored-by: kasey <kasey@users.noreply.github.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-19 15:59:26 +00:00
Potuz
905e0f4c1c
Monitor metrics ( #9921 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-11-19 15:34:28 +00:00
Nishant Das
0ade1f121d
Add Balance Field Trie ( #9793 )
...
* save stuff
* fix in v1
* clean up more
* fix bugs
* add comments and clean up
* add flag + test
* add tests
* fmt
* radek's review
* gaz
* kasey's review
* gaz and new conditional
* improve naming
2021-11-19 20:01:15 +08:00
Raul Jordan
ee52f8dff3
Implement Validator Standard Key Manager API Delete Keystores ( #9886 )
...
* begin
* implement delete and filter export history
* rem deleted code
* delete keystores all tests
* gaz
* test
* double import fix
* test
* surface errors to user
* add in changes
* edit proto
* edit
* del
* tests
* gaz
* slice
* duplicate key found in request
2021-11-19 04:11:54 +00:00
Potuz
50159c2e48
Monitor attestations ( #9901 )
...
Log attestation performance on the validator monitor
2021-11-18 22:14:56 -03:00
Preston Van Loon
cae58bbbd8
Unskip v2 end to end check for prior release ( #9920 )
2021-11-18 23:17:19 +00:00
Raul Jordan
9b37418761
Warn Users In Case Slashing Protection Exports are Empty ( #9919 )
...
* export text
* Update cmd/validator/slashing-protection/export.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2021-11-18 20:49:19 +00:00
Raul Jordan
a78cdf86cc
Warn Users if Slashing Protection History is Empty ( #9909 )
...
* warning in case not found
* better comment
* fatal
2021-11-17 15:39:43 +00:00
Nishant Das
1c4ea75a18
Prevent Reprocessing of a Block From Our Pending Queue ( #9904 )
...
* fix bugs
* test
* raul's review
2021-11-17 10:05:50 -05:00
terence tsao
6f4c80531c
Add field roots for beacon state v3 ( #9914 )
...
* Add field roots for beacon state
* Update BUILD.bazel
* Adding an exception for state v3
* fix deadcode
Co-authored-by: nisdas <nishdas93@gmail.com >
2021-11-17 09:04:49 +00:00
terence tsao
e3246922eb
Add merge state type definitions ( #9908 )
2021-11-16 08:36:13 -08:00
Nishant Das
5962363847
Add in Deposit Map To Cache ( #9885 )
...
* add in map + tests
* tes
* raul's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-16 02:07:42 +00:00
Potuz
5e8cf9cd28
Monitor exits ( #9899 )
...
* Validator monitor process slashings
* Preston's comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* add test for tracked index
* Prestons requested changes
* Process voluntary exits in validator monitor
* Address Reviewers' comments
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-15 19:45:18 +00:00
Raul Jordan
b5ca09bce6
Add Network Flags to Slashing Protection Export Command ( #9907 )
2021-11-15 19:21:54 +00:00
terence tsao
720ee3f2a4
Add merge state protobuf ( #9888 )
...
* Add beacon state protobuf
* Update proto/prysm/v1alpha1/beacon_state.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/prysm/v1alpha1/beacon_state.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Regenerate pbs
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-15 18:53:43 +00:00
Potuz
3d139d35f6
Validator monitor process slashings ( #9898 )
...
* Validator monitor process slashings
* Preston's comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* add test for tracked index
* Prestons requested changes
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-11-15 17:39:55 +00:00
terence tsao
ea38969af2
Register start-up state when interop mode ( #9900 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-15 16:32:54 +00:00
terence tsao
f753ce81cc
Add merge block protobuf ( #9887 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-15 15:42:18 +00:00
Nishant Das
9d678b0c47
Clean Up Methods In Prysm ( #9903 )
...
* clean up
* go simple
2021-11-15 10:13:52 -05:00
Nishant Das
4a4a7e97df
handle canceled contexts ( #9893 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-13 16:03:27 +08:00
Nishant Das
652b1617ed
Use Next Slot Cache In More Places ( #9884 )
...
* add changes
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-12 23:46:06 +00:00
Nishant Das
42edc4f8dd
Improve RNG Documentation ( #9892 )
...
* add comments
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-12 20:30:09 +00:00
terence tsao
70d5bc448f
Add cli override setting for merge ( #9891 )
2021-11-12 12:01:14 -08:00
Preston Van Loon
d1159308c8
Update security.txt ( #9896 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-12 15:55:45 +00:00
Nishant Das
e01298bd08
Remove Superflous Errors From Parameter Registration ( #9894 )
2021-11-12 15:28:21 +00:00
terence tsao
2bcb62db28
Remove unused import ( #9890 )
2021-11-11 22:54:48 +00:00
terence tsao
672fb72a7f
Update spec tests to v1.1.5 ( #9875 )
...
* Update spec tests to v1.1.5
* Ignore `TERMINAL_BLOCK_HASH_ACTIVATION_EPOCH`
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-10 02:41:16 +00:00
terence tsao
7fbd5b06da
time pkg: can upgrade to merge helper ( #9879 )
...
* Helper: can upgrade to merge
* Typo
2021-11-09 18:36:50 +00:00
Raul Jordan
0fb91437fc
Group Slashing Protection History Packages Idiomatically ( #9873 )
...
* rename
* gaz
* gaz
* Gaz
* rename
* edit
* gaz
* gaz
* build
* fix
* build
* fix up
* fix
* gaz
* cli import export
* gaz
* flag
* rev
* comm
* package renames
* radek
2021-11-09 16:49:28 +00:00
Raul Jordan
6e731bdedd
Implement List Keystores for Standard API ( #9863 )
...
* start api
* keystores list
* gaz
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-11-08 19:08:17 +00:00
Dan Loewenherz
40eb718ba2
Fix typos: repones -> response, attestion -> attestation ( #9868 )
...
* Fix typo: repones -> response
* Fix typo: attestion -> attestation
2021-11-07 11:02:01 -06:00
terence tsao
e1840f7523
Share finalized state at start up ( #9843 )
...
* Reuse finalized beacon state at startup
* Better logging for replay
* Update tests
* Fix lint
* Add `WithFinalizedStateAtStartup`
* Update service.go
* Remove unused fields
* Update service_test.go
* Update service_test.go
* Update service_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-06 13:45:16 +00:00
terence tsao
b07e1ba7a4
GenesisState when zero hash tests ( #9866 )
2021-11-06 06:57:54 +01:00
Raul Jordan
233171d17c
[Service Config Revamp] - Sync Service With Functional Options ( #9859 )
...
* sync config refactor
* rem
* rem
* testing
* gaz
* next
* fuzz
* build
* fuzz
* rev
* log
* cfg
2021-11-05 19:08:58 +00:00
kasey
2b0e132201
fix #9851 using GenesisState when zero hash in stategen StateByRoot/StateByRootInitialSync ( #9852 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-05 18:14:37 +00:00
Raul Jordan
ad9e5331f5
Update Prysm Web to Use v1.0.1 ( #9858 )
...
* update web
* site data update
* fmt
2021-11-04 16:12:32 -04:00
terence tsao
341a2f1ea3
Use math.MaxUint64 ( #9857 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-04 18:48:09 +00:00
Raul Jordan
7974fe01cd
[Service Revamp] - Powchain Service With Functional Options ( #9856 )
...
* begin powchain service refactor
* begin refactor
* powchain passes
* options pkg
* gaz
* rev
* rev
* comments
* move to right place
* bazel powchain
* fix test
* log
* contract addr
* happy path and comments
* gaz
* new service
2021-11-04 14:19:44 -04:00
Raul Jordan
ae56f643eb
Rename Web UI Performance Endpoint to Summary ( #9855 )
...
* rename endpoint
* rename endpoint
2021-11-04 15:13:16 +00:00
terence tsao
2ea09b621e
Simplify should update justified ( #9837 )
...
* Simplify should update justified
* Update tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-03 22:29:03 +00:00
terence tsao
40fedee137
Use prev epoch source naming correctly ( #9840 )
...
* Use prev epoch source correctly
* Update epoch_precompute_test.go
* Update type.go
* Update tests
* Gazelle
* Move version to read only
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-11-03 21:50:41 +00:00
kasey
7cdddcb015
Weak subjectivity verification refactor ( #9832 )
...
* weak subjectivity verification refactor
This separates weak subjectivity verification into a
distinct type which does not have a dependency on
blockchain.Service
* remove unused variable
* saving enqueued init blocks before ws verify
* remove TODO, handled in previous commit
* accept suggested comment change
start comment w/ name of function NewWeakSubjectivityVerifier
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* update log w/ Raul's suggested language
* explicit zero value for clarity
* add comments clarifying how we adhere to spec
* more clear TODO per Raul's feedback
* gofmt
Co-authored-by: kasey <kasey@users.noreply.github.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-11-03 15:07:46 +00:00
Raul Jordan
4440ac199f
Empty Genesis Validators Root Check in Slashing Protection Export ( #9849 )
...
* test for empty genesis validators root
* precod
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-03 14:16:57 +00:00
Radosław Kapka
d78428c49e
Return proper responses from KeyManagement service ( #9846 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-02 15:46:11 +00:00
Raul Jordan
2e45fada34
Validate Password on RPC CreateWallet Request ( #9848 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-02 15:20:43 +00:00
Raul Jordan
4c18d291f4
Rename Interop-Cold-Start Package to Deterministic-Genesis ( #9841 )
...
* rename interop-cold-start
* rev
* rev
* BUILD
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-02 14:55:36 +00:00
Preston Van Loon
dfe33b0770
stateutil: Remove duplicated MerkleizeTrieLeaves method ( #9847 )
2021-11-02 14:31:16 +00:00
Raul Jordan
63308239d9
Define Validator Key Management Standard API Schema ( #9817 )
...
* begin service for key management
* begin defining schema
* generate bindings
* rev
* add in custom compiler
* use custom plugin with option
* goimports
* fix up proto to take in multiple passwords
* keymanagent proto edit
* rev
* rev
* dev
* builds
* comment
* indent
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-01 17:26:15 +00:00
terence tsao
712cc18ee0
Use BeaconBlockIsNil helper more ( #9834 )
...
* Replace manual checks with helper
* Rename to `BeaconBlockIsNil`
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-11-01 14:13:05 +00:00
Nishant Das
3d318cffa2
Fix Individual Votes RPC Endpoint ( #9831 )
...
* fix
* fix tests
* add terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-11-01 18:36:08 +08:00
terence tsao
026207fc16
Remove de-duplication condition for seen aggregates ( #9830 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-29 21:53:49 +00:00
Raul Jordan
6b7b30ce47
Use GET Request for Slashing Protection Export ( #9838 )
2021-10-29 18:23:45 +00:00
Yash Bhutwala
105bb70b5e
remove extra condition ( #9836 )
2021-10-29 09:29:33 -07:00
Potuz
9564ab1f7f
Fix validator performance logs ( #9828 )
...
* Fix validator performance logs
* Add test
* Clean both phase 0 and altair calculations
* Add back total inclusion distance
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-10-28 16:56:27 +00:00
Raul Jordan
0b09e3e955
Refresh Web Backend JWT Secret Upon File Changes With FSNotify ( #9810 )
...
* refresh auth file
* refresh auth token from file changes
* gaz
* test for refresh
* rem token
* secret
* refresh
* remove wallet dir on test end
2021-10-28 10:24:39 -04:00
Radosław Kapka
bb319e02e8
Event support for contribution_and_proof and voluntary_exit ( #9779 )
...
* Event support for `contribution_and_prrof`
* event test
* fix panic in tests
* fix
* Revert "Auxiliary commit to revert individual files from dc8d01a15f0056c1fb48733219feab6461f71695"
This reverts commit f5f198564079781f80e1a045cefad7c27f89af25.
* remove receiver
* revive test
* move sending events to sync package
* remove receiver
* remove notification test
* build file
* notifier tests
* revert removal of exit event in API
* simplify exit test
* send notification in contribution API method
* test fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-10-28 08:56:22 +00:00
terence tsao
53c86429e4
Add altair test for RPC end point ( #9829 )
2021-10-27 21:00:09 -04:00
Raul Jordan
61172d5007
Add Missing Objects to Keymanager Protobuf ( #9827 )
...
* add missing objects
* update keymanager
* fix up missing sign calls
* gaz
* msg block root
* naming
2021-10-27 18:30:53 +00:00
Yash Bhutwala
1507719613
fix altair individual votes endpoint ( #9825 )
2021-10-27 15:15:51 +00:00
Raul Jordan
4c677e7b40
Remove JWT Expiration ( #9813 )
...
* remove expiry from claims
* fix tests
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-26 10:24:09 +00:00
Raul Jordan
28f50862cb
Goimport All Items in Proto Folder In Bash Script ( #9815 )
...
* update goimports to format all, including gw.pb.go files
* update hack
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-26 10:07:49 +00:00
Nishant Das
2dfb0696f7
Fix Validator Exit in our V1 Method ( #9819 )
2021-10-26 10:14:11 +02:00
terence tsao
ae2c883aaf
Generate secret key from big number test only ( #9816 )
...
* Generate secret key from big number test only
* Gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-10-25 19:14:19 +00:00
Raul Jordan
ad9ef9d803
Simplify Prysm Backend Password Requirements ( #9814 )
...
* simpler reqs
* gaz
* tidy mod
2021-10-25 13:17:47 -05:00
Kirill Fedoseev
b837f90b35
Fix GetDuties ( #9811 )
...
* Fix GetDuties
* Add regression test
2021-10-25 09:09:47 -05:00
Håvard Anda Estensen
7f3ec4221f
Add errcheck and gosimple linters ( #9729 )
...
* Add errcheck linter
* Check unchecked error
* Add gosimple linter
* Remove type assertion to same type
* Omit nil check
len() for nil slices is defined as zero
* Revert "Remove type assertion to same type"
This reverts commit af69ca1ac8 .
* Revert "Revert "Remove type assertion to same type""
This reverts commit 5fe8931504 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-10-22 17:40:03 -05:00
Radosław Kapka
5b3375638a
Improve description of datadir flag ( #9809 )
...
* Improve description of `datadir` flag
* improve doc
2021-10-22 12:53:13 +00:00
terence tsao
3c721418db
Check participation flag offset length ( #9784 )
...
* Check participation flag offset length
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-10-21 15:01:09 +00:00
terence tsao
d7cad27cc3
Pool returns empty contribution slice instead of nil ( #9808 )
2021-10-20 14:45:57 -07:00
terence tsao
290b4273dd
InitializePrecomputeValidators check overflows (#9807 )
2021-10-20 13:06:43 -05:00
Raul Jordan
a797a7aaac
Refactor Web Authentication to Use Auth Token ( #9740 )
...
* builds
* initialize auth token from scratch
* change auth
* add improvements
* moar auth fixes
* web auth changes running
* url encode
* tests
* gaz
* navigate auth
* separate line
* auth token
* 304
* persistent auth tokens and jwts
* fixed up test
* auth token path test and integration test
* auth token test
* auth token command
* gaz
* gaz
* Radek feedback
* fix up
* test
* Update validator/rpc/auth_token.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-10-20 16:37:05 +00:00
Raul Jordan
f7c34b0fd6
Validate Keystores Validator Client RPC Endpoint ( #9799 )
...
* validate endpoint
* validate keystores proto
* wallet validate
* validate keystores endpoint
* better err message
* added in gaz
2021-10-20 09:23:59 -05:00
Nishant Das
c6874e33f7
fix transitions ( #9804 )
2021-10-20 19:36:08 +08:00
Radosław Kapka
13ddc171eb
Ignore validators without committee assignment when fetching attester duties ( #9780 )
...
* Ignore validators without committee assignment when fetching attester duties
* simplify
* fix tests
* slice capacity
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-10-19 17:41:12 +00:00
Radosław Kapka
acde184aa7
Fill out Version for SSZ block ( #9801 )
2021-10-19 16:45:38 +00:00
Radosław Kapka
5fd6474e56
Allow submitting sync committee subscriptions for next period ( #9798 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-10-19 14:04:04 +00:00
Preston Van Loon
65db331eaf
Remove bazel-go-ethereum fork, use upstream go-ethereum ( #9725 )
...
* Check in go-ethereum crypto/sepc256k1 package with proper build rules
* gaz
* Add karalabe/usb
* viz improvement
* Remove bazel-go-ethereum, use vendored libraries only
* move vendor stuff to third_party so that go mod wont be mad anymore
* fix geth e2e flags
* fix geth e2e flags
* remove old rules_foreign_cc toolchain
* Update cross compile docker image to support os x
* works for geth build
* remove copy of sepc256k1
* revert changes in tools/cross-toolchain
* gaz
* Update go-ethereum to 1.10.10
* Revert "revert changes in tools/cross-toolchain"
This reverts commit 2e8128f7c3 .
* revert tags changes
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-19 00:00:22 +00:00
Radosław Kapka
7b8aedbfe4
Update Beacon API to v2.1.0 ( #9797 )
...
* `Eth-Consensus-Version` header
* rename unused receiver
* omit receiver name
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-10-18 18:55:18 +00:00
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 adbe8cf4bf .
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 0c995a1d4a .
* 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
Raul Jordan
13cdb83591
Validator Changes for Optimized Slasher ( #9705 )
...
* val changes
* mock
* mocks
* gomock any
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-29 21:25:45 +00:00
Preston Van Loon
520bc9d955
Update validator reporting logs and metrics for Altair ( #9589 )
...
* Mark fields as deprecated due to Altair
* Only print inclusion distance fields before Altair fork
* Report phase0 and altair metrics respectively
* only set phase0 fields in phase0, only set altair fields in altair
* better use of fields
* Update go pbs
* Update individual votes method
* regen go proto files
* formatting
* Feedback from @potuz
* Annotate metrics per @potuz suggestion
* Set previous release e2e to end 1 epoch before altair. Add some out of bounds checks for validator metrics reporting and a panic catch
* gofmt
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-29 20:49:58 +00:00
Raul Jordan
df33ce3309
Remaining Slasher Beacon Node Changes ( #9701 )
...
* slasher beacon node changes
* remaining beacon node items
* moar changes
* gaz
* flag fix
* rem slashable
* builds
* imports
* fix up
* pruning faster test
* deepsource
* fix wrong item
* node node feature flags
* broken test
* preston review
* more preston comments
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-29 18:17:37 +00:00
terence tsao
86efa87101
Refactor sync and participation field roots ( #9703 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-29 17:46:51 +00:00
Potuz
ff625d55df
Use target root for pending attestations in tests instead of unrelated one ( #9699 )
...
* Use target root for pending attestations instead of unrelated one
* remove unnecessary block saves
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-29 12:27:47 -05:00
Mohamed Zahoor
0678e9f718
finalise deposits before we initialise the node ( #9639 )
...
* finalize deposits before we initialize the node
* Update beacon-chain/blockchain/service.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Update beacon-chain/blockchain/service.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* moved this when intiializing caches
* added test case
* satisfy deepsource
* fix gazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
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: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-29 15:43:24 +00:00
Nishant Das
10251c4191
increase size ( #9702 )
2021-09-29 10:01:10 -05:00
Potuz
861c2f5120
remove unnecessary asserts from tests ( #9700 )
2021-09-29 22:17:06 +08:00
terence tsao
bfc821d03a
Can save justified checkpoint to DB ( #9697 )
...
* Can save justified checkpoint to DB
* Update beacon-chain/blockchain/process_block_test.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Update beacon-chain/blockchain/process_block.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-09-29 03:00:52 +00:00
Raul Jordan
9edba29f64
Slasher Simulator Code for Testing Optimized Slasher Behavior ( #9695 )
...
* slashing simulator
* add in necessary items for slasher sim
* sim item
* fix up
* fixed build
* rev
* slasher sim in testing
* testonly
* gaz
* gaz
* fix viz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2021-09-29 02:27:21 +00:00
Nishant Das
0edb3b9e65
Flatten Attestation Packing ( #9683 )
...
* flatten attestation packing
* dedup again
* terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-29 01:56:55 +00:00
Preston Van Loon
6c5bf70021
CI: fix remote caching ( #9696 )
2021-09-29 00:18:31 +00:00
Nishant Das
393549ad19
Add in Balance Safety Check ( #9419 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 22:19:10 +00:00
terence tsao
8f8ccf11e4
Update head more timely before ( #9651 )
...
* Move update head closer to transition
* Update process_block.go
* Update tests
* Move savePostStateInfo back
* Update process_block.go
* Update process_block_helpers.go
* Minor clean up for better diff
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 21:51:11 +00:00
terence tsao
806bcf1d29
Clean up unused types & function comments ( #9691 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 21:21:07 +00:00
Raul Jordan
2a2239d937
Detect Slashable Attestations in Optimized Slasher ( #9694 )
...
* detect slashable attestations
* Update beacon-chain/slasher/detect_attestations.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-28 20:54:17 +00:00
Preston Van Loon
c94ba40db2
config: ensure config matches altair presets ( #9690 )
...
* config: ensure config matches altair presets
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-09-28 20:02:12 +00:00
Raul Jordan
1816906bc7
Detect Slashable Blocks in Optimized Slasher ( #9693 )
...
* pass
* Update beacon-chain/slasher/detect_blocks.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* Update beacon-chain/slasher/detect_blocks.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 19:33:45 +00:00
Radosław Kapka
c32090aae5
Allow sending Altair blocks to /eth/v1/beacon/blocks ( #9685 )
...
* Allow sending Altar blocks to `/eth/v1/beacon/blocks`
* tests
* add documentation
* fix ineffectual assignment
* change type of sync committee bits
* remove unused import
* fix Altair epoch calculation
* compare slot against slot
* do not publicly export E2E constant
* tests for setInitialPublishBlockPostRequest
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-28 19:07:32 +00:00
Raul Jordan
57f965df50
Include Slasher Receiving Methods ( #9692 )
...
* first
* add receive details
* ensure most builds
* add slasherkv changes
* db iface additions
* build
* gaz
* proper todo comment
* terence comments
* sig check
* bad sig checks
* proper lock issue
* fix test
* fix up tests
2021-09-28 18:13:16 +00:00
Radosław Kapka
8a6e2a5c63
Add MIN_SYNC_COMMITTEE_PARTICIPANTS parameter to config ( #9689 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-28 16:54:12 +00:00
Raul Jordan
6d79f61fda
Process Slashings for Newly Optimized Slasher ( #9687 )
...
* add process slashings
* verify sig
* add method
* add test
* add in process slashings functionality
* target state for aggregate
* comment
* Radek comments
2021-09-28 10:27:40 -05:00
Nishant Das
bf2d2cf981
make opt max cover default ( #9684 )
2021-09-28 17:34:29 +08:00
Raul Jordan
f2840c9ffa
Slasher Min/Max Chunk Logic ( #9673 )
...
* slasher chunks code
* slasher chunks code
* avoid using shared
* testing helper
* slasher gaz
* radek comments
* preston feedback
2021-09-28 02:04:32 +00:00
Preston Van Loon
cbb4361c64
Update spectests to v1.1.0 ( #9680 )
...
* Update spectests to v1.1.0
* ignore placeholder fields, fix spec config check
2021-09-28 00:50:06 +00:00
terence tsao
328e3e6caf
Update mainnet_config.go ( #9678 )
2021-09-27 13:39:55 -07:00
Preston Van Loon
ee0a453b7b
core: refactor signing and domain methods from helper to core/signing pkg ( #9520 )
...
* Move domain function and all signing root functions from beacon-chain/core/helpers to beacon-chain/core
* @terencechain suggestion to put these methods under core/signing
2021-09-27 16:19:20 +00:00
Radosław Kapka
3e640fe79f
Remove unused Eth1Data-related code from the proposer ( #9670 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-27 14:29:41 +00:00
Radosław Kapka
bf41fd854d
Remove fmt.Println from committee cache ( #9677 )
2021-09-27 11:18:20 +00:00
Nishant Das
6eb158c16a
Check Head State For New Head Methods ( #9676 )
...
* check head state
* add tests
2021-09-27 08:27:11 +00:00
terence tsao
376d248c22
Add in progress handler to committee cache ( #9664 )
...
* Add in progress handler for committee cache
* Remove debug print
* Update validators.go
* Fix all the tests
* More tests
* Update committee_disabled.go
* Update committee_disabled.go
* Update testing util
* Update main.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-09-26 23:27:57 +08:00
Nishant Das
6e4c2b4b20
Wrap Gossip Validators With Error ( #9660 )
2021-09-25 18:06:48 -07:00
Raul Jordan
75936853af
Optimized Slasher Docs and Helpers ( #9578 )
...
* bring over helpers
* slasher helpers pass tests
* fix dead link
* rem eth2
* gaz
* params
* gaz
* builds
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-24 13:38:13 -05:00
terence tsao
ea9ceeff03
Various clean up before v2 ( #9672 )
...
* Update package names
* Various clean up
* Gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 17:42:16 +00:00
Radosław Kapka
78ea402d9d
Correct the semantics of startEpoch calculation in registerSyncSubnet ( #9671 )
2021-09-24 16:02:55 +00:00
Radosław Kapka
fae806c73e
Small changes in API Middleware ( #9666 )
...
* Small changes in API Middleware's custom hooks
* reorder fields in `Endpoint`
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-24 14:34:19 +00:00
Radosław Kapka
45510fafea
Fix error handing for block v2 endpoints ( #9667 )
...
* Fix error handing for block v2 endpoints
* rename helper func
2021-09-24 13:52:00 +00:00
Radosław Kapka
12480e12b2
Add flags for disabling selected API ( #9606 )
...
* Add flags for disabling selected API
* tests
* build file
* Use comma-separated modules
* test fix
* fix gateway tests
* fix import in flag tests
2021-09-24 09:25:42 +00:00
Radosław Kapka
7dd99de69f
Restructure API Middleware ( #9663 )
...
* Restructure API Middleware
* fix package name in tests
* build file
* gzl
* fix one more test
2021-09-23 20:41:04 +00:00
Raul Jordan
a9a4bb9163
Move Shared/Testutil into Testing ( #9659 )
...
* move testutil
* util pkg
* build
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:53:46 +00:00
Radosław Kapka
2952bb3570
Increase debug gRPC message size to 128MB ( #9661 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:31:24 +00:00
Radosław Kapka
1fbe05292f
Fix SubmitPoolSyncCommitteeSignatures API endpoint ( #9646 )
...
* Fix `SubmitPoolSyncCommitteeSignatures` API endpoint
* fix test
* fix another test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 18:01:07 +00:00
Radosław Kapka
36b1f322c0
Various bug fixes in Eth API ( #9649 )
...
* fix block structure
* correct status code when block is not found
* make `/internal` work with events and SSZ
* test fix
* better block serialize tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 17:34:11 +00:00
Nishant Das
5225d97fd4
Remove Update Timely Feature Config ( #9655 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 17:04:40 +00:00
Nishant Das
57b7bf6ea0
Update Mainnet Bootnodes ( #9656 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 16:23:01 +00:00
Raul Jordan
29513c804c
Create Encoding Bytesutil ( #9658 )
...
* bytesutil
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-23 15:23:37 +00:00
Nishant Das
b9ad81db50
bump it up ( #9657 )
2021-09-23 09:20:19 -05:00
Nishant Das
d694a775d7
Check For Blocks In Our Initial Sync Cache ( #9558 )
...
* add change
* test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-23 05:18:19 +00:00
Nishant Das
4f3762f1f7
Clean Up V2 BeaconState ( #9648 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-23 01:10:25 +00:00
terence tsao
8678610683
Update package name comments ( #9653 )
2021-09-22 22:38:06 +00:00
Radosław Kapka
8d4cdde07e
Clean up code in Eth API ( #9650 )
...
* typo fix
* code cleanup
* fix spans
* move state convertion to migration package
* add migration package to v1 visibility
2021-09-22 17:59:06 +00:00
Raul Jordan
191bce3655
Add True Eth2 Deposit Contract, Bytecode, ABI ( #9637 )
...
* solidity contract, abi, and deposit util
* gaz
* gaz
* drain contract remove
* build
* fix up deploy
* add readme
* fix e2e
* revert
* revert flag
* fix
* revert test flag
* fix broken test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-22 17:27:13 +00:00
terence tsao
f52f737d2b
Review Altair core epoch files with changes ( #9556 )
...
* Clean up core epoch for Altair
* Update BUILD.bazel
* Remove check for spec test
* Update validators_test.go
* Update validators_test.go
* Update beacon-chain/core/altair/epoch_precompute.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/core/altair/epoch_precompute_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/core/altair/epoch_spec.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-22 15:07:05 +00:00
Preston Van Loon
2cbe10c701
Fix long running e2e altair exception for previous release ( #9645 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-22 04:01:43 +00:00
Preston Van Loon
36a7575437
e2e: fix trace_sync http handler registration ( #9644 )
...
* Avoid a global http server so that multiple test runs aren't registering global http handlers and causing a panic
* gofmt
2021-09-22 03:34:09 +00:00
terence tsao
8e3e6d0156
Fix package comment typo ( #9641 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 20:25:12 +00:00
Raul Jordan
f3d6dbcc1e
Move Shared/Params Into Config/Params ( #9642 )
...
* config params into pkg
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 19:59:25 +00:00
Radosław Kapka
26893bcb8c
Production version of Altair Eth APIs ( #9640 )
...
* internal prefix in proto services
* half-baked inmplementation
* rename v1 to eth
* use router and remove old flag
* uncomment cors
* update v2 methods in proto services
* move adding path prefix after param processing
* remove unneeded code
* remove flag
* fix e2e
* uncomment sync committee e2e
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-21 19:20:57 +00:00
Raul Jordan
eebcd52ee6
Miscellaneous Packages from Shared Into Proper Folders ( #9638 )
...
* slashutil
* builds
* interop
* viz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 18:11:16 +00:00
Raul Jordan
45bfd82c88
Add Encoding SSZ Package ( #9630 )
...
* ssz package
* compile
* htrutils
* rem pkg doc
* fix cloners_test.go
* fix circular dep/build issues
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 15:02:48 +00:00
Nishant Das
b943f7bce5
Add Flag To Parameterize Number of Peers in A Subnet ( #9631 )
...
* add flag
* use old value
* gaz
* raul's review
2021-09-21 07:55:52 +00:00
Radosław Kapka
28364d9f33
E2E for API Middleware ( #9635 )
...
* rename file
* Enable SSZ-serialization in v2 endpoints
# Conflicts:
# proto/eth/v2/beacon_state.pb.go
* e2e
* rename file
* improve logging errors
* Revert "improve logging errors"
This reverts commit 796bcf3e97 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-21 04:31:41 +00:00
deepsource-autofix[bot]
531f05d30d
Unused parameter should be replaced by underscore ( #9632 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-20 20:51:59 +00:00
Preston Van Loon
728c77cc0c
CI: use nostamp for code coverage and fuzzer uploads ( #9634 )
...
* Follow up to #9633 , nostamp for code coverage
* nostamp for fuzzer uploads too
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-20 18:59:44 +00:00
terence tsao
161a13ac09
Correctly filter sync committee message at period boundary ( #9626 )
...
* Add head sync committee indices with slot consideration
* Apply rpc
* Apply sync
* Update tests
* Update mock.go
* Update sync_committee_test.go
* Update validator_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-20 18:06:43 +00:00
Preston Van Loon
cb631360e9
CI: nostamp config for better cache hits ( #9633 )
2021-09-20 17:29:41 +00:00
terence tsao
2ba29a3cfc
Move block and attestation to proto v1alpha1 folder ( #9618 )
...
* Add block and attestation to container pkg
* Move aggregation into attestation
* Update attestation_test.go
* Move them to proto
* Gazelle
* fix cycle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-20 16:17:03 +00:00
Nishant Das
150640305a
Support Go Builds For Darwin Arm64 ( #9600 )
...
* add changes
* tidy
* stranded dep
* fixed commit
* use real commit
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-18 17:56:05 +00:00
Raul Jordan
11a1f681e0
Move Shared Packages Into Async/ ( #9620 )
...
* async packages
* change pkg
* build
* working
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-18 17:26:11 +00:00
Raul Jordan
7dadc780b8
Move Shared Packages into Math/ and IO/ ( #9622 )
...
* amend
* building
* build
* userprompt
* imports
* build val
* gaz
* io file
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 21:55:24 +00:00
Raul Jordan
d2f74615ab
Move Miscellaneous Shared/ Packages Into Semantic Groups ( #9624 )
...
* remove shared network and ip util
* forkutil
* gaz
* build
* gaz
* nogo
* genrule
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 19:20:50 +00:00
terence tsao
6308678a89
Fail early if block and state are diff versions ( #9625 )
2021-09-17 13:03:14 -05:00
Radosław Kapka
93a4ebc662
Enable SSZ-serialization in v2 endpoints ( #9587 )
2021-09-17 14:08:59 +00:00
Nishant Das
4109d4a868
Standardize Metrics To Match Minimal Metric Spec ( #9623 )
2021-09-17 13:35:12 +02:00
Nishant Das
568797d53d
Add MultiLock When Fetching Sync Head State ( #9595 )
...
* add lock when fetching sync state
* improvements
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 02:03:18 +00:00
Nishant Das
18e1d43360
Update blst to v0.3.5 and add BLS spec tests ( #9611 )
...
* add new dep
* add changes so far
* fix all tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-17 01:32:23 +00:00
Raul Jordan
8f0008c45a
Move Related Packages Into API/ Pkg ( #9619 )
...
* begin on api pkg
* build
* build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 19:55:51 +00:00
terence tsao
f49637b09b
Move iputil and httpuil pkgs into network pkg ( #9621 )
...
* Add network pkg
* Go fmt
* Update discovery_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-16 19:12:27 +00:00
Raul Jordan
3daa2d8a18
Remove Deprecated Slasher ( #9608 )
...
* delete slasher
* rem slasher
* fix build
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 18:26:58 +00:00
Raul Jordan
61c24c3870
Move Fuzz/ Into Testing/ ( #9617 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 17:32:51 +00:00
Raul Jordan
23e2d62c0c
Create Container Package for Shared/ Subpackages ( #9607 )
...
* ensure run
* amend
* fix initial sync test target
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 12:05:58 -05:00
Raul Jordan
8df96426ef
Move Scripts Into Hack/ Directory ( #9605 )
...
* ensure build
* moved third party to toplevel:
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-16 16:22:39 +00:00
terence tsao
989daf267a
Remove next slot cache usage for fork choice handler ( #9601 )
...
* Remove next slot cache usage for fork choice
* Go fmt
* Update process_attestation_helpers.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 15:29:59 +00:00
Raul Jordan
495e92ce9f
Create Runtime Package for Moving Several Packages in Shared/ ( #9588 )
...
* add maxprocs
* add prereqs
* add tos and version pkg
* add in all runtime packages
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 09:46:29 +00:00
terence tsao
514d4ef8f5
Invert next slot state cache feature ( #9602 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 07:48:06 +00:00
Radosław Kapka
d020e1b2d9
Correctly display epoch participation in GetStateV2 ( #9598 )
...
* Correctly display epoch participation in `GetStateV2`
* fix file names
* handle null case
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-16 02:51:51 +00:00
terence tsao
ee5d75732d
Add pkg crypto ( #9603 )
...
* Add pkg crypto
* Update go.yml
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 22:55:11 +00:00
Preston Van Loon
fff0208207
Fix long running e2e tests ( #9604 )
...
* Revert e2e changes from #9565
* Override ChurnLimitQuotient to reflect minimal config prior to #9565
2021-09-15 22:04:13 +00:00
Radosław Kapka
c47923d20e
Properly display sync committees in GetStateV2 ( #9599 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-15 17:23:13 +00:00
Raul Jordan
5230af0e0c
Move EndtoEnd Tests to Testing/ Folder ( #9586 )
...
* endtoend to testing/
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 14:42:05 +00:00
Nishant Das
34391fa780
Implement Batch Verifier For Pubsub Objects ( #9344 )
...
* add initial commit
* add aggregates in
* fmt
* add new changes
* gaz
* fix copy
* terence's review
* fix broken build
2021-09-15 05:49:50 +00:00
terence tsao
31a78ab22a
Create config package for Shared/featureconfig ( #9593 )
...
* add config/features
* Gazelle
* Gazelle
* Fix build
* Go mod tidy
* active cache
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
2021-09-15 01:18:39 +00:00
terence tsao
3e71997290
Create time Package for Shared/timeutil, mclock and slotutil ( #9594 )
...
* add time pkg
* Go fmt
2021-09-15 00:09:04 +00:00
terence tsao
77de467250
add lru ( #9592 )
2021-09-14 18:11:25 -05:00
Raul Jordan
9935ca3733
Move Shared/ Subpackages Into Monitoring/ Folder ( #9591 )
...
* add tracing
* monitoring pkg
* move prom
* Add client stats
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:59:51 +00:00
Radosław Kapka
5b37deb1a6
Allow listing attestations for Altair blocks ( #9580 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:03:09 +00:00
Raul Jordan
01a72a9df2
Move Benchutil to Testing/ Folder ( #9583 )
...
* benchutil to testing
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 19:18:15 +00:00
Radosław Kapka
f98505bfbe
Align ProduceBlockV2 to HTTP API spec ( #9581 )
...
* Align `ProduceBlockV2` to HTTP API spec
* snake case protos
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 17:48:24 +00:00
Raul Jordan
6340e58f36
Move Spectests Into a Testing/ Folder ( #9582 )
2021-09-14 16:02:58 +00:00
Radosław Kapka
ac3c544e29
Make until_epoch exclusive in PrepareSyncCommitteeSubnets ( #9579 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 15:14:28 +00:00
Radosław Kapka
25f2ca4159
Align ProduceSyncCommitteeContribution to HTTP API spec ( #9572 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 14:39:16 +00:00
Radosław Kapka
ae21665b0a
Align GetStateV2 to API HTTP spec ( #9569 )
2021-09-14 09:07:03 +00:00
terence tsao
408392aa06
Enable prune canonical attestation ( #9576 )
...
* Enable prune canonical attestation
* Update shared/featureconfig/flags.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 20:10:45 +00:00
Radosław Kapka
562e128251
Align GetSyncCommitteeDuties to API HTTP spec ( #9570 )
...
* Align `GetSyncCommitteeDuties` to API HTTP spec
* doc
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 19:14:05 +00:00
Radosław Kapka
4f86714c2a
Align PrepareSyncCommitteeSubnets with API HTTP spec ( #9571 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 18:16:16 +00:00
Radosław Kapka
1e4063e69c
Align PublishContributionAndProofs to HTTP API spec ( #9573 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-13 17:47:05 +00:00
terence tsao
e8e62856c8
Enable insert orphaned attestation ( #9575 )
...
* Enable insert orphaned att
* Go fmt
2021-09-13 17:05:09 +00:00
Radosław Kapka
ed68dd757f
Implement ProduceBlockV2 in the beacon API ( #9560 )
...
* Rename service func to ProduceBlockV2
# Conflicts:
# beacon-chain/rpc/eth/validator/validator.go
* initial implementation
# Conflicts:
# beacon-chain/rpc/eth/validator/validator.go
# proto/eth/v2/validator.pb.go
* test first try
* try new signature in test
* Fix test's sync committee signature
* Use 0xAA instead of 0xFF
* properly get altair block
* final implementation
* Revert "Auxiliary commit to revert individual files from 17779d4228b8c65452343fe5c51ef5764766f732"
This reverts commit 3f352a145c70c8edf8dd283f684fecf93f6d6487.
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* revert pb.go changes to block
* add signature to return value
* fix ineffectual assignment
* simplify if/else statement
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-13 13:58:42 +00:00
Nishant Das
fd920bb786
Fix Finalized Block Retrieval in Altair ( #9561 )
...
* fix
* radek's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-13 06:57:31 +00:00
terence tsao
416840036a
Add beta4 spec test ( #9565 )
...
* Add beta4 spec tests
* Fix test setup for Altair registry update
* Update WORKSPACE
* Update churn limit calculation for e2e
* Hard set churn limit
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-11 01:33:31 +00:00
Preston Van Loon
1374b6dd4f
Enable active balance cache ( #9567 )
...
* Enable active balance cache
* gofmt
2021-09-10 21:47:25 +00:00
Raul Jordan
dcc1f7c0ec
Move End-to-End Tests for Altair Into Develop ( #9564 )
...
* end to end from hf1
* remove duplicate import
* skip sync eval
* conditional sync participation
* altair fork epoch to 6
* preston feedback
* proper fork epoch
* run for 6
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 19:59:43 +00:00
Radosław Kapka
2d9ae57378
Align SubmitPoolSyncCommitteeSignatures to API HTTP spec ( #9563 )
2021-09-10 09:55:56 -07:00
terence tsao
c6e7ab79ef
Share ProcessSlashings between upgrades ( #9557 )
...
* Reuse process slashing
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 15:57:16 +00:00
Radosław Kapka
006a2620c4
Align GetBlockV2 to API HTTP spec ( #9562 )
2021-09-10 10:20:52 -05:00
Nishant Das
741e136b22
Run Fork Watcher ( #9559 )
2021-09-10 11:51:55 +00:00
Nishant Das
1ccbe79209
Add Altair Metadata Changes ( #9552 )
...
* add metadata changes
* gaz
* add tests
* remove
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 08:10:08 +00:00
Nishant Das
57c2d86da1
Fork Watcher For Sync ( #9550 )
...
* add watcher
* raul's review
* preston's and terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-10 03:52:56 +00:00
Fredrik Svantes
ffd7579476
Add how users should report security vulnerabilities for this repository ( #9525 )
...
* Add how users should report security vulnerabilities for this repository
Suggestion to add a notice on how to report security vulnerabilities. This is visible at https://github.com/prysmaticlabs/prysm/security
* Add correct email
Co-authored-by: Nishant Das <nish1993@hotmail.com >
* Update SECURITY.md
Co-authored-by: Nishant Das <nish1993@hotmail.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-09-10 03:13:09 +00:00
Nishant Das
97f6143a43
Add Remaining Gossip Changes ( #9553 )
...
* add changes
* add changes here in
* rem duplicate import
* fix topic not being set in test
* terence's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-10 02:36:31 +00:00
Radosław Kapka
fc44ecbb16
Align GetEpochSyncCommittees to API HTTP spec ( #9555 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-09 21:54:08 +00:00
Kirill Fedoseev
5325558f03
Recompute SqrRootSlotsPerEpoch at startup for custom configs ( #9554 )
...
* Recompute SqrRootSlotsPerEpoch at startup for custom configs
* Fix bazel deps
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-09 17:03:00 +00:00
Radosław Kapka
a6abfa5dd8
Implement PublishContributionAndProofs in the beacon API ( #9526 )
...
* implementation
* tests
* do not reuse pool
* godoc
* Revert "Auxiliary commit to revert individual files from 7f95a794ef9b2e1feac4683e181fc7d0fc289a0a"
This reverts commit 917ed4cc7a457847139d11bfb7c8d163584b48be.
* handle error in test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-09 15:49:11 +00:00
Nishant Das
2faaafb159
add remaining rpc methods ( #9551 )
2021-09-09 10:12:49 -05:00
Radosław Kapka
ddfa269e4f
Add Version field to v2 endpoints ( #9546 )
...
* version enum
* get block
* get state
* rename shared to version
* goimports
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-09 13:29:09 +00:00
Radosław Kapka
cb9c1ad0fe
Implement Semi-Generic GetBeaconBlock RPC Endpoint for Pre & Post-Fork Blocks ( #9517 )
...
* BuildBlockData
* GetBlockAlatair
* build file
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_test.go
* review comments
* add alias
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* add get block test
* comment
* implement get beacon block
* commentary
* test setup issues
* Use correct genesis state
* test renames
* pass
* rem commented code
* ctx unused
* proper grpc errors
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-09 05:26:49 +00:00
Nishant Das
279cc16c88
Add Sync Subnets Subscribers ( #9539 )
...
* add in digest
* add new stuff
* add tests
* terence's review
* Update beacon-chain/sync/subscriber.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-09-09 03:25:02 +00:00
Radosław Kapka
4b90c10cb2
Fix templating in eth protos ( #9548 )
...
* 1st try
* working version
* clean up build file
* fix v1 + cleanup
* remove unneeded comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-08 19:37:26 +00:00
Raul Jordan
83a9079700
Implement Generic ProposeBeaconBlock Function for RPC ( #9549 )
...
* add in generic propose block method
* propose generic with tests
* ineff assign issue
2021-09-08 18:54:04 +00:00
terence tsao
7c45c5f8cd
More misc altair changes ( #9547 )
...
* More altair changes
* Gazelle
2021-09-08 17:52:37 +00:00
Nishant Das
90038a6001
Implement Network Encoder using SSZ Interface ( #9535 )
...
* add stuff
* unused
* kasey's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-08 23:16:53 +08:00
Preston Van Loon
b586d3784b
Rename beacon-chain/core/state to beacon-chain/core/transition pkg ( #9530 )
...
* Move, refactor, fix
* @rkapka PR feedback: revert irrelevant changes
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-08 10:41:47 +00:00
kasey
bc551b7e30
using upstream fastssz with altair fixes ( #9542 )
...
* using upstream fastssz with altair fixes
* update generated ssz code
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-07 19:42:37 +00:00
terence tsao
d7679d2e71
Validator: rest of the Altair changes ( #9532 )
...
* Bring in rest of the validator chagnes
* Go fmt
* Deepsource
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-07 18:43:50 +00:00
Radosław Kapka
ddbac85ec4
Allow returning Altair block headers ( #9543 )
...
* GetBlockHeader
* ListBlockHeaders
2021-09-07 18:07:30 +00:00
Nishant Das
ee28dc3d4f
Add in Fork Digest For Subscribers ( #9538 )
...
* add in digest
* radek's review
* raul's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-07 16:58:24 +00:00
Raul Jordan
d210dd7691
Maintainable Beacon Block API Endpoints ( #9528 )
...
* add new proto endpoints and deprecate old
* regen protos
* regen mocks
* begin fixing tests
* build tests
* e2e build
* go build
* resolve conflicts
* pass tests
* amend generated name
* fix build
* more fixes
* update gateway paths
* radek comments
* fix comment
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-07 15:17:50 +00:00
Radosław Kapka
d6416b29b2
Set Content-Length to zero for empty POST reponse ( #9540 )
...
* Set `Content-Length` to zero for empty POST reponse
* remove unused function param
2021-09-07 08:54:44 -05:00
Preston Van Loon
dc71f35f4f
Remove copyutil pkg, move v1alpha1 copy methods into v1alpha1 pkg ( #9533 )
2021-09-04 06:55:57 +00:00
Preston Van Loon
4beb352e6f
Move Slot and Epoch functions from helpers to core pkg ( #9519 )
...
* Move Slot and Epoch functions from helpers to core
* limited viz
* goimports
* fix fuzz build
* fix fuzz build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 20:10:31 +00:00
terence tsao
29b851a2b7
RPC: Stream altair block ( #9521 )
...
* Add tests
* Fix tests
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 19:11:40 +00:00
terence tsao
ebf3897017
Validator: propose Altair block ( #9414 )
...
* Validator can propose block
* Gazelle
* Preston's feedback
* Rename
* Fix deep source
* Fix build
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-09-03 18:26:10 +00:00
Nishant Das
cc790ceb2e
Add RPC Changes to Sync For Block Methods ( #9497 )
...
* add changes
* radek's review
* kasey's review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 16:00:56 +00:00
Radosław Kapka
e875fe3dfc
Implement ProduceSyncCommitteeContribution in the beacon API ( #9524 )
...
* implementation
* test
* change func signature
* remove broadcaster from test
2021-09-03 09:47:35 -05:00
Preston Van Loon
265b5feabf
p2p: Handle nil topic ( #9522 )
...
* fix nil topic
* fmt
Co-authored-by: nisdas <nishdas93@gmail.com >
2021-09-03 14:39:54 +08:00
Nishant Das
30b2adc5d6
Add in Sync Contribution And Proof Pubsub Validator ( #9475 )
...
* add contribution handlers
* fix it
* fmt
* fix more
* add clean up
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/sync/validate_sync_contribution_proof.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* use validation pipeline
* deepsource
* fix all tests
* clean up
* comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-03 04:06:54 +00:00
terence tsao
924fe20dcd
RPC: list block altair end point ( #9494 )
...
* Implement list block altair
* Dont export block container
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 22:21:33 +00:00
Preston Van Loon
2d41f0885c
p2p: Split MsgID into its own file as a public method ( #9518 )
...
* p2p: Split MsgID into its own file as a public method
* gofmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 21:48:14 +00:00
terence tsao
019f0257c2
RPC: sync committee duties ( #9501 )
...
* Add get altair duties
* Refactor, clean up, Rahul's feedback
* Gazelle
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 21:17:42 +00:00
Kirill Fedoseev
f319535af5
Fix countdown timer ( #9484 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-02 20:41:01 +00:00
Radosław Kapka
c45fe5cc1c
Implement GetStateV2 in the beacon API ( #9506 )
...
* implementation
# Conflicts:
# beacon-chain/state/v2/BUILD.bazel
* Revert "Auxiliary commit to revert individual files from 2cbe98c88777cac071876fe97f85029fad964e51"
This reverts commit edc4ff52e7796aefd1782e31eaf40231a3134693.
* tests
* fix function call
* make state package visible to migration
* fix span names
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-02 19:28:55 +00:00
terence tsao
1f48accb0e
RPC: Extend participation and performance to Altair ( #9499 )
...
* Add endpoints and tests
* Update beacon-chain/rpc/prysm/v1alpha1/beacon/validators_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 18:42:04 +00:00
terence tsao
b10964514a
Implement SubmitPoolSyncCommitteeSignatures in the beacon API ( #9464 ) ( #9503 )
...
* Implement `SubmitPoolSyncCommitteeSignatures` in the beacon API (#9464 )
* Update server
* remove duplicated field
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-09-02 16:54:53 +00:00
Radosław Kapka
4b9fb1cd1b
Add tests to GetBlockV2 ( #9486 )
...
* Add tests to `GetBlockV2`
* add missing error assert
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 13:08:47 +00:00
Marcin Górzyński
02966e64d8
Feature lru cache wrapper 2 ( #9511 )
...
* Add Wrapper to LRU Cache to handle Invalid Parameters #9461
* Regenerate BUILD.bazel and simplify tests using lru.Cache
* Fix: fuzz_exports.go build error
* Fix: block_fuzz.go
* Revert lru.Cache interface
* Remove redundant err check in pending_attestations_queue_test.go
* Add tests for lru wrapper
* Use lru package in prysm/shared instead of lruwrpr
* Fix: goimports
* Fix: BUILD.bazel
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-09-02 18:36:54 +08:00
Nishant Das
43a24e3d8b
Add Subscription Handler ( #9508 )
...
* use subscriber
* fix up tests
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-02 06:10:02 +00:00
Nishant Das
59ed552c64
Buffer Errors For Resubscribers ( #9513 )
...
* fix blocker
* make test better
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-02 03:33:25 +00:00
terence tsao
95e07963fb
Stategen: fix state by slot off by 1 ( #9509 )
...
* Fix state by slot off by 1
* Comment
* Go fmt
* Add err
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-09-02 03:05:08 +00:00
Raul Jordan
2cd2bc87d0
Sync Committee Message P2P Validations ( #9481 )
...
* add in handlers
* add topic switch
* begin refactor
* build
* revert change to sub file
* reordered
* add in handlers
* add topic switch
* fmt
* begin refactor
* build
* revert change to sub file
* reordered
* rationale for cache size
* simplify
* deep source
* kasey feedback
* ignore if not in committee
* add more unit tests
* more cov
* code review commentary
* pass tests
* commentary
* terence comments
* terence feedback on key for cache
Co-authored-by: nisdas <nishdas93@gmail.com >
2021-09-02 02:26:38 +00:00
Radosław Kapka
69ed46af0f
Add RPC validator sync committee code ( #9510 )
2021-09-01 23:08:05 +00:00
Radosław Kapka
28e472aa5f
Implement PrepareSyncCommitteeSubnets in the beacon API ( #9498 )
...
* initial implementation
* final implementation
* review
* fix logic
* refactor duration calculation
* tests
* revert alias change
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-01 17:19:29 +00:00
terence tsao
46b22bb649
Clean up committee helpers ( #9504 )
...
* Clean up committee related helper funcs
* Go fmt
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-09-01 15:17:10 +00:00
Nishant Das
44375a3d67
Handle Missing Status Message Better ( #9505 )
...
* throw error in status method
* fix up
* fix up
* gaz
2021-09-01 22:25:22 +08:00
Nishant Das
eb690d3737
Add Subscription Topic Handler ( #9490 )
...
* add methods
* zahoor's review
2021-09-01 12:07:20 +08:00
Preston Van Loon
dad03ade77
p2p: Return error if no ChainState found for a peer ( #9502 )
...
* p2p: Return error if no ChainState found for a peer
* add commentary
2021-08-31 22:25:54 +00:00
terence tsao
6ee0a7e811
Spectest: increase sizes from small to medium ( #9500 )
2021-08-31 21:28:09 +00:00
Nishant Das
0ea4e9a71c
fix trie ( #9495 )
2021-08-31 08:01:26 -07:00
terence tsao
da5f37fc71
Clean up from hf1 ( #9493 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-31 10:47:44 +00:00
Preston Van Loon
59e8523272
fix spectest timeouts and sizing ( #9492 )
...
* fix spectest timeouts and sizing
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-31 09:36:56 +00:00
Nishant Das
8d4b92962b
Add in Remaining Altair Core Tests ( #9489 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-08-31 07:18:45 +00:00
terence tsao
8f88d574f5
Stategen: replay altair epoch ( #9468 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-30 23:57:08 +00:00
terence tsao
921acc300b
Clean up ProcessInactivityScores ( #9483 )
2021-08-30 22:50:51 +00:00
terence tsao
516401537a
Update to spec test beta3 ( #9491 )
...
* Update to beta3 spec tests
* `ProcessEpochParticipation` processes only active indices
* Go fmt
* Update epoch_precompute_test.go
* Update WORKSPACE
* Fix current and previous epoch switch up
2021-08-30 19:32:11 +00:00
terence tsao
572498f954
Fix deep source complains ( #9485 )
2021-08-29 20:57:37 +02:00
Raul Jordan
20a1a58860
Proposer Sync Aggregate RPC Methods ( #9479 )
...
* sync agg
* more readable
* pass tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-28 20:47:45 +00:00
Radosław Kapka
822522a3af
Implement GetSyncCommitteeDuties in the beacon API ( #9478 )
...
* implementation
* tests
* review feedback
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-28 22:00:46 +02:00
Nishant Das
4d02329cd5
Add in P2P Changes ( #9390 )
...
* add in initial changes
* add test method
* raul's review
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/p2p/gossip_scoring_params.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* preston's review
* kasey's review
* only 1
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-27 09:34:20 +08:00
Raul Jordan
031830baa4
Remove Kafka from Prysm ( #9470 )
...
* remove kafka
* gaz
* rem foreign rules
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 23:59:00 +00:00
terence tsao
2cc9fc9e0e
Add altair spec tests ( #9477 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 23:08:04 +00:00
terence tsao
1284496648
Increase seen attestation cache sizes ( #9476 )
...
* Increase attestation cache sizes
* Update WORKSPACE
* Go fmt
* Fix tests
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 21:37:35 +00:00
Raul Jordan
c1f841d6d4
Allow Sending Interfaces Over Application Event Feeds ( #9458 )
...
* add event feed changes
* deep source issues
* omit receiver name
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-26 15:21:29 -05:00
Raul Jordan
7d5f30b01e
Delete Deprecated Flags and Old Slashing Protection for V2 ( #9453 )
...
* delete deprecated flags and old slashing protection schema
* remove toledo mentions
* build
* do not remove migration
2021-08-26 13:48:25 -05:00
Radosław Kapka
89941d4be2
Implement GetBlockV2 in the beacon API ( #9433 )
...
* Implement `GetBlockV2` in the beacon API
* fix gateway config test
* Revert "fix gateway config test"
This reverts commit 8179400b2a .
* unregister v2
* review feedback
* improve comment
* reduce duplication
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-26 15:22:06 +00:00
terence tsao
74df479bd3
Use active balance cache ( #9469 )
...
* Use active balance cache
* Feature flag and test
* Gazelle
* Fix fuzz
* Fix test
* Mix in validator count
* Update test to reflect validator count
* Add eth1 data block hash
* Fix assign
* Use eth1 data root
* Update active_balance_test.go
* Remove eth1 data root
* Remove eth1 data usage in tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-26 14:32:40 +00:00
Nishant Das
d22552944d
Update Blockchain Package From Altair ( #9422 )
...
* add latest changes
* fix up
* raul's review
* pass cache tests
* Update beacon-chain/blockchain/head_sync_committee_info.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* kasey's review
* rename cache err
* add nil checks and error path checks
* gaz
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-26 05:01:09 +00:00
terence tsao
2903275e7e
Altair process slots ( #9455 )
...
* Update process slots
* More test scenarios
* Update transition_test.go
* Add CanUpgradeToAltair
* Go fmt
* Gaze
* Update beacon-chain/core/state/transition.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update transition_test.go
* Update altair fork epoch for e2e
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-26 09:59:23 +08:00
Preston Van Loon
3d6fad3121
Update Prater config to include Altair fork epoch ( #9467 )
...
* Update Prater config after https://github.com/eth2-clients/eth2-networks/pull/58 . Add tests to enforce compliance.
* gofmt
* spec: true
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-25 17:18:29 +00:00
terence tsao
ffbb722777
Add active balance cache ( #9456 )
...
* Add active balance cache
* Better comment
* Fuzz
* ,
* go fmt
* Fix err
* Raul's feedback
* A few renames to effective
2021-08-25 16:39:12 +00:00
Radosław Kapka
8b10adc92a
Fix struct type used when sending beacon committee subscriptions ( #9466 )
2021-08-25 15:35:28 +00:00
Nishant Das
0d60863bed
Add Stategen Log ( #9460 )
...
* add log
* amend it
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-08-25 14:34:09 +00:00
Nishant Das
0208d9b328
Change P2P Logs to Trace Logs ( #9459 )
2021-08-25 15:35:50 +02:00
Raul Jordan
e150e29710
Add In Generated Mocks for Altair RPC ( #9457 )
2021-08-24 21:38:44 +00:00
terence tsao
45b6a80a30
Validator: perform sync committee duties ( #9411 )
...
* Validator sync committee methods
* Gazelle
* Update visibility
* Add setupWithKey
* Refactor selection proofs
* Fix build
* Refactor compute and sign
* Fix sign request
* Fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 17:33:42 +00:00
terence tsao
cd4bb6a9c8
Add altair process epoch ( #9449 )
...
* Add altair process epoch
* Verify balance
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 16:07:11 +00:00
Nishant Das
114a14a4b6
Patch Initial Sync For Non Finalized Blocks ( #9452 )
...
* fix for now
* off by 1
* preston's review
2021-08-24 10:20:45 -05:00
Raul Jordan
a49c0f19ae
Add Sync Committee Head State Cache ( #9448 )
...
* add sync committee head state cache
* handle err in init
* include file in build file
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 07:54:04 +00:00
Preston Van Loon
362212b5ed
Fix 'headSlot' log statement in init-sync ( #9451 )
...
* Fix 'headSlot' log statement in init-sync
* gofmt -w beacon-chain/sync/initial-sync/round_robin.go
2021-08-24 07:00:18 +00:00
terence tsao
5c96a2713d
Prevent Reinsertion of Orphaned Attestations Into Pool ( #9442 )
...
* Can re-save orphaned attestation
* Go fmt
* Fix tests
* Go fmt
* Bug fix flag
* Bug fix flag
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 03:05:08 +00:00
terence tsao
6457ec17bf
Process epoch: precompute previous and finalized epoch ( #9445 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 01:42:05 +00:00
terence tsao
d3475a563d
Remove Canonical Attestations From Pool Correctly ( #9444 )
...
* Remove canonical attestaitons
* Rm debug log
* Remove deleted test
* Tests and fmt
* Tests
* Bug fix flag
* Move feature flag
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-24 00:33:17 +00:00
Nishant Das
ab101e8a4a
Fix Validator Backups ( #9446 )
...
* fix val backups
* fix
* debug
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-23 21:46:04 +00:00
Preston Van Loon
5442d0f486
Altair: Merge passing hf1 tests and shared code ( #9447 )
...
* Altair: Merge passing hf1 tests and shared code
* Remove weird files
* del commented code
* Add dynamic file fetching, remove hardcoded list of files
* Remove hard coded paths
* remove hardcoded paths from phase0 too
* nosec fixes
2021-08-23 20:09:24 +00:00
Raul Jordan
0ee203fc2e
Deduplicate Copy Functions In State Packages ( #9437 )
...
* remove duplicated copy functions
* add all unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-23 16:53:50 +00:00
terence tsao
63e0a4de84
Transition: Altair process block ( #9430 )
...
* Add altair transition
* Add tests
* refactor exit into operation funcs
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-21 00:32:37 +00:00
terence tsao
cac1e94f04
Add altair epoch processing functions ( #9404 )
2021-08-20 16:55:42 -07:00
Raul Jordan
bdfdba1e23
Remove Unused Trieutil Helpers ( #9435 )
...
* remove unused trieutil helpers
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 23:00:04 +00:00
Raul Jordan
e2a3dc13fb
Less Flakey E2E API Checks ( #9439 )
...
* compare list attestations instead
* add query filter
* fix failing
* fix response
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 22:30:56 +00:00
Radosław Kapka
af2801f215
Implement GetEpochSyncCommittees in the beacon API ( #9434 )
...
* initial implementation
* get committee for epoch
* test
* fix failing test
# Conflicts:
# beacon-chain/rpc/prysm/v1alpha1/validator/assignments_test.go
* combine function arguments
* review feedback
* use sync committee setter
* fix failing test
* fix build
* remove bad test
* refactor for single responsibilities
* radek suggestions
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-20 21:32:56 +00:00
Raul Jordan
fa4a4225a7
Improve DB.SaveBlocks Performance ( #9431 )
...
* improve save blocks performance
* comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-20 20:01:38 +00:00
terence tsao
005ce7e238
Remove float64 usage for fork choice ( #9438 )
2021-08-20 14:15:18 -05:00
terence tsao
25bc3f2aeb
More altair spec tests ( #9436 )
...
* Add fork and ssz static spec tests
* Fix build
* Remove minimal tags
2021-08-20 16:47:37 +00:00
terence tsao
67c3ae0117
Add signature verification using current fork ( #9405 )
2021-08-20 07:38:35 -07:00
Raul Jordan
6368da2716
Remove Nested BoltDB View Within Update Transaction in SaveHeadBlockRoot ( #9428 )
...
* no nested bolt txs
* remove the nested view in update calls
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 21:42:30 +00:00
terence tsao
3764b7dca3
ValidatorIndexByPubkey length check (#9424 )
...
* `ValidatorIndexByPubkey` length check
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-19 19:33:05 +00:00
Raul Jordan
eac542a8ac
Change Eth2 Repository Names ( #9425 )
...
* eth2 repo name changes
* rem sha
* use consensus spec terminology and pin sha
2021-08-19 13:00:57 -05:00
Nishant Das
9f36116c2f
Update Core Helpers ( #9393 )
...
* add helpers
* naming
* remove comments
* Terence's feedback
* Revert `UpdateCommitteeCache` changes
* Update beacon-chain/core/helpers/committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-19 12:18:27 +00:00
terence tsao
d874b9140f
Optimize process attestations ( #9418 )
2021-08-18 15:41:09 -07:00
Preston Van Loon
dfd740414f
Altair: operations spectests ( #9413 )
...
* Update spectests to v1.1.0-beta.1 from hf1 branch
* fix params loading
* Altair: operations spectests
* gazelle and nosec on trusted variable inputs
* remove legacy statement from spectest/minimal/altair/operations/BUILD.bazel
2021-08-18 22:01:05 +00:00
Raul Jordan
72cfe50eff
Move Validator Accounts Protos Into Proper Place ( #9416 )
...
* move into proper namespace
* package naming
* add strict deps
* regen protos
* add web api
* regen
* builds
* rename
* build
2021-08-18 21:24:01 +00:00
terence tsao
61acf6f1d1
Slash validator with altair config ( #9415 )
2021-08-18 18:44:17 +00:00
Radosław Kapka
0d8ceb18b0
Improve v2 protos ( #9412 )
...
* Generate SSZ code for `BeaconBlockContainerV2`
* new line at end of file
* remove unneeded V2 suffix
* more fun stuff
# Conflicts:
# proto/eth/v1/generated.ssz.go
* rename Altair to V2
2021-08-18 15:50:37 +00:00
Nishant Das
5b7b9f9ac9
Refactor Subnet Methods For Altair ( #9386 )
...
* change subnets
* add in missing one
* add comment
* Update beacon-chain/p2p/subnets.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* terence's review
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-18 04:55:48 +00:00
Nishant Das
8e503d0980
Change Back Read-Only Validator Declaration ( #9410 )
...
* remove indirection
* fix
2021-08-18 11:59:55 +08:00
Preston Van Loon
4966300c96
Update spectests to v1.1.0-beta.1 from hf1 branch ( #9403 )
...
* Update spectests to v1.1.0-beta.1 from hf1 branch
* fix params loading
2021-08-17 21:23:38 +00:00
Raul Jordan
bdb09ca9ea
V1Alpha1 gRPC Gateway End-to-End Test Evaluators ( #9375 )
...
* add in initial evaluator for gateway v1alpha1
* add gazelle
* build
* compare
* functional options and tool for local verification
* chain head response compare base64
* compare validators request
* add validators compare
* more compare
* passing validator comparisons
* compare attestations pool
* compare atts
* begin peers test
* e2e verifiers
* correct port
* renaming
* evaluators
* rem api compare tool
* peer compare tests
* deepsource
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-16 20:31:21 +00:00
terence tsao
b28d65dc34
Add pyrmont hard fork config ( #9394 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-16 19:51:43 +00:00
Preston Van Loon
643e20c50a
p2p: report status failure when no genesis time is set after start ( #9395 )
2021-08-16 19:15:43 +00:00
Radosław Kapka
bb68c591f2
Remove beacon-chain/rpc/eth/v1 directory ( #9392 )
2021-08-16 13:11:25 +02:00
Nishant Das
f8355bb241
Add in Database Support For Altair State ( #9388 )
...
* add in schema
* add in altair state support
* nil check
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-16 12:39:52 +08:00
Raul Jordan
8122da6c97
Add Gosec Github Action ( #9332 )
...
* add gosec security scan
* add gosec ignores first batch
* more nosec for exec
* add filepath clean
* more nosec
* file inclusion nosec
* build
* herumi
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-15 15:24:13 +00:00
Radosław Kapka
1936f991eb
Prepare protos for Ethereum API v2.0.0 ( #9384 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
* without aggregation_bits
* aggregation_bits
* v2 endpoints
* generate new code and define function stubs
* build files
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-14 16:41:03 +00:00
Nishant Das
49440c90ba
Add in Database Support For Altair Blocks ( #9387 )
...
* add in schema
* gaz
* fix panic in rpc
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-14 15:50:49 +00:00
Nishant Das
47ee6fa17e
Add in Altair Message ID Function ( #9382 )
...
* add in changes
* add method call
* gaz
* rauls review
* rauls review
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-14 14:36:02 +00:00
Radosław Kapka
de907fc362
Fix java classname in beacon_debug_service.proto ( #9380 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:59:55 +00:00
Nishant Das
a1c0bee397
Add in Object Mapping For Types ( #9381 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-13 17:28:26 +00:00
Raul Jordan
b42465a7dd
Optimized Slasher Parameters ( #9361 )
...
* add in parameters and helpers files
* add in small set of changes
* build file
* viz
2021-08-13 16:53:04 +00:00
Nishant Das
8fe22422a6
add it in ( #9383 )
2021-08-13 10:53:51 -05:00
Radosław Kapka
f516e71167
Move proto services to a different package ( #9379 )
...
* Move proto services to a different package
# Conflicts:
# beacon-chain/rpc/service.go
* fix tests
* goimports
* fix java class name
2021-08-13 10:55:24 +00:00
Radosław Kapka
ede85c21e2
Clean up v1 protos ( #9377 )
...
* Clean up v1 protos
# Conflicts:
# proto/eth/v1/generated.ssz.go
* A little more cleanup
# Conflicts:
# proto/eth/v1/generated.ssz.go
* fix java class names
2021-08-13 09:12:18 +00:00
Nishant Das
a9f2170657
Update P2PUtils And Parameters From Altair ( #9373 )
...
* add changes
* add p2putils changes
* clean up
* fix build
* remove test
* raul's review
2021-08-13 13:11:11 +08:00
Nishant Das
3a528147a2
Change to Proto Check For Blocks ( #9372 )
...
* check inner objects
* add test in here.
* verify better
2021-08-13 00:35:23 +00:00
Nishant Das
c8cffbbf02
Update Dependencies For Prysm ( #9374 )
...
* update deps
* tidy
2021-08-12 11:07:13 -05:00
Raul Jordan
1f102c256d
Altair Committee Cache Changes ( #9366 )
...
* changes to hf1 caches
* suggested
* Update beacon-chain/cache/sync_subnet_ids.go
* add in proper changes
* committee.go
* committee test and disabled
* nil active balance check
2021-08-12 00:04:40 -05:00
terence tsao
e3492698f8
Core: modified process attestation for Altair ( #9367 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Check length
* Go fmt
* Add process att
* Refactor and tests
* Update attestation.go
* Gazelle
* Under flow error message
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 21:58:25 -05:00
Jim McDonald
5256751e8b
Trim SSE event names. ( #9342 )
...
* Trim SSE event names.
When sending SSE events the event name contains trailing whitespace.
This patch removes the whitespace before processing the event, ensuring
it is easily parsed by clients.
* Separate test.
* Test receiveEvents, not writeEvent.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-11 23:00:39 +00:00
terence tsao
225f9a74f6
Add epoch participation and proposer base reward helpers ( #9356 )
...
* Add epoch participation and proposer base reward helpers
* Update beacon-chain/core/altair/attestation.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Check length
* Go fmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 20:54:45 +00:00
terence tsao
d77616f705
Fixes Issues Found by Goland IDE Code Inspect ( #9368 )
...
* Ran code inspect
* Update shared/testutil/altair.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 20:12:22 +00:00
Raul Jordan
a217d71d08
Sync Protobufs Between Hard Fork Branch and Develop ( #9362 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 19:14:49 +00:00
Raul Jordan
efa1f29311
Use Different Golang JWT Library ( #9360 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 18:10:53 +00:00
Raul Jordan
136b157d00
Better Slashing Protection Import/Export User Experience ( #9355 )
...
* failure mode if command goes wrong
* improve export
* fix struct orderw
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-11 17:24:24 +00:00
Raul Jordan
c1280867ed
Add Tracing Request Sink to E2E ( #9341 )
...
* add tracing request sink
* fix struct order
* add in base64 encode and gzip
* add encoding and gzip
* tracing sink and replay tool
* post
* replay
* include latest sink and replay tool
* capture the gzout file instead
* rem time sleep
* handle err
* better handling
* add documentation
* changes
* working sync
* working
* added more logging
2021-08-11 15:38:00 +00:00
Nishant Das
0dd7a8b078
Fixes Altair Bug Introduced For State Representation ( #9358 )
...
* add test
* test
* test
2021-08-11 15:02:55 +00:00
terence tsao
41ab27402f
Sync committee subnet cache ( #9350 )
...
* Add sync subnet id cache
* Update BUILD.bazel
* Update BUILD.bazel
* Update beacon-chain/cache/sync_subnet_ids.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Add comments
* add more comments
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2021-08-11 00:26:20 +00:00
terence tsao
9668ab0fea
Clean up duplicated imports ( #9354 )
2021-08-10 14:55:24 -05:00
Radosław Kapka
7a9c717ae0
Reduce locking time in recomputeFieldTrie ( #9353 )
...
* Reduce locking time in `recomputeFieldTrie`
* add comment
* reuse variable and improve comment
2021-08-10 09:54:35 +00:00
Nishant Das
a5998fab2f
Clean Up State Representation ( #9339 )
...
* checkpoint all work
* add new fixes
* fixes
* gaz
* terence's review
* terence's review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-09 21:54:24 +00:00
terence tsao
8df6854a74
Core: upgrade state to Altair ( #9349 )
...
* Add upgrade to altair
* Update BUILD.bazel
* Update beacon-chain/core/altair/upgrade.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Move getter and setter outside the loop
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-09 21:27:51 +00:00
Jim McDonald
3de168b806
Fix state state transition logging. ( #9343 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-09 20:05:46 +00:00
Preston Van Loon
bfdaf8a3f5
Fix config loader tests ( #9348 )
...
* don't mutate mainnet config
* add missing minimal config params
* Ensure all yaml fields were set and are correct
* gofmt
* Add sanity check that some empty yaml wasn't given
* Gazelle and deepsource feedback
2021-08-09 18:40:06 +00:00
terence tsao
38787353a2
Attestation: get participation status ( #9340 )
...
* Add participation flag indics matching helpers
* Gazelle
* Tests
* Update BUILD.bazel
* Update attestation.go
2021-08-09 16:35:46 +00:00
Nishant Das
170e2e115b
Fix Flaky Sync Committee Test ( #9337 )
...
* fix flake
* Update beacon-chain/core/altair/sync_committee_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-09 14:49:13 +00:00
terence tsao
be85b7f909
Cleanup: remove test only process block/attestation ( #9345 )
...
* Remove test only process block attestation code
* Rm fuzz process block
* Revert "Rm fuzz process block"
This reverts commit 5d1b0f0741 .
* Still can test fuzz
* Fix return
* More unused funcs
2021-08-08 22:01:06 -05:00
terence tsao
ad048a8750
Rewards/penalties: epoch processing for Altair ( #9334 )
...
* Add epoch precompute methods
* Better name
* Bring expensive computation outside
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-06 20:02:35 +00:00
Raul Jordan
90ea158301
Add Some More Traces to Blockchain Service ( #9336 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-06 15:02:36 +00:00
Radosław Kapka
ef9eff29b8
Tiny state management improvements ( #9338 )
...
* Tiny state management improvements
* fix indices length calculation
* review comments
* revert function rename
2021-08-06 10:47:50 +00:00
terence tsao
4cce4f1ee5
Refactor slash validator func's signature ( #9321 )
...
* Refactor slash validator func's signature
* Named arguments
* Update beacon-chain/core/blocks/proposer_slashing.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-06 04:06:49 +00:00
Raul Jordan
ce10be9a16
Add Latest Slasher KV Methods to DB Subpackage ( #9328 )
...
* tests pass
* use end slot for epoch pruning
* amended to endslot of epoch
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-08-05 21:27:05 +00:00
Raul Jordan
4f0b00894b
More Precise Metrics E2E ( #9331 )
...
* metrics test copute slots since genesis
* gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 20:44:56 +00:00
Radosław Kapka
57fac9b74f
Improve API Middleware design ( #9324 )
...
* remove superfluous WriteHeader call
* move custom handlers outside hooks
* rename OnPostStart hook
* function that returns a default endpoint
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 20:21:43 +00:00
Mohamed Zahoor
395feeb35d
Cross check db state bucket after migration ( #9311 )
...
* added state db check after migration
* satisfy deepsource
* added db compare after migration sub-command
* fomt issue
* point ot bolt issue
* gazel fix
* maxUint84
* revert accidental deletion of WORKSPACE file
* added sorting support
* cleanup debug
* gazel fix
* satisfy deepsource
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 18:30:05 +00:00
terence tsao
7bc22e4ddf
Cache: sync committee index position ( #9317 )
...
* Add sync committee index cache
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 17:44:13 +00:00
Radosław Kapka
016beb51c0
Make SubmitAttestations v1 implementation similar to v1alpha1 ( #9319 )
...
* Make `SubmitAttestations` v1 implementation similar to v1alpha1
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-05 08:01:20 +00:00
Radosław Kapka
456b4d463e
Implement PrepareBeaconCommitteeSubnet in the validator API ( #9318 )
...
* validator migration
* status helpers
* implementation
* fix existing tests
* build file
* tests
* run endpoint through API Middleware
* reduce helper package visibility
* empty caches before each test
* assign all validators to subnets
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-05 07:23:52 +00:00
terence tsao
4d33068496
Core helper: validate sync message time ( #9325 )
...
* Add validate sync message time
* Update BUILD.bazel
2021-08-05 12:39:32 +08:00
terence tsao
6e9faa3618
Epoch: precompute functions for Altair part 1 ( #9309 )
...
* Add epoch precompute methods
* Split into part 1 for better review
* Update epoch_precompute_test.go
* Preston's feedback
* Skip if the valiator is not eligible
* Add regression test for non eligible
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-04 15:13:05 +00:00
Nishant Das
fd42cb712f
Fix Incorrect Conditional Check ( #9323 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-08-04 13:50:27 +00:00
Radosław Kapka
c5b68b4f03
Implement PublishAggregateAndProofs in the validator API ( #9294 )
...
* grpc implementation
* build file
* full implementation
* remove unused function
* tests
* wrap top-level array
* Update beacon-chain/rpc/eth/v1/validator/validator.go
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
* review
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-04 09:01:38 +00:00
Mohamed Zahoor
239d904d27
Fix memory usability ( #9310 )
...
* fix cache usability
* fix the name of the prometheus flag
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-04 02:33:28 +00:00
terence tsao
461be99fac
Block: process sync aggregate ( #9308 )
...
* Add altair base reward funcs
* Update BUILD.bazel
* Add process sync aggregate
* Update BUILD.bazel
* Update block.go
* Update block_test.go
* Feedback, refactor and more tests
* Further refactor sync committee votes
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-03 16:14:15 +00:00
Preston Van Loon
9572add171
Fail fast when using old define=ssz=<value> ( #9316 )
...
* Fail fast when using old define=ssz=<value>
* remove print statement
2021-08-02 19:04:30 +00:00
ahadda5
17cf2e5377
Fixing .bat file issues ( #9266 )
...
* replacing [] with "" for ifs
using !! vs %% for var with delayed expansion
Check first for 404 then download.
* remove the goto after if are fixed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-08-02 16:09:09 +00:00
Radosław Kapka
e4388c7fce
Update grpc-gateway dependency to proper version ( #9315 )
...
* logging
* properly update grpc-gateway dependency
* Revert "logging"
This reverts commit 6c59a87ac0 .
# Conflicts:
# go.mod
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-08-02 14:52:54 +00:00
Mohamed Mansour
47c28e6cd6
Show error in logs if passing invalid flags in yaml ( #9033 )
...
* Show error in logs if passing invalid flags in yaml
The YAML configs pass if an invalid flag is set, this causes frustration
because the flag could have been mispelled causing a huge mystery.
This will strictly check if the flags are deserialized, if a flag
doesn't exist, it will error out as a Fatal error with appropriate
reasoning which flag is wrong.
* Fix review comments to make some of them non-fatal
* Make yaml.TypeError a pointer
* Remove UnmarshalStrict from spectests since they use a different YAML package
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-08-01 03:26:24 +00:00
Preston Van Loon
0c1fc65604
Core/deposit: refactor blocks.ProcessDeposit for less complex altair implementation ( #9305 )
...
* Refactor blocks.ProcessDeposit to return whether or not the deposit resulted in a new validator entry.
* Only mark validator as new after successfully appending it to the state
* fix merge conflict
* fix merge conflict
* gofmt
* fix merge conflict
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-31 23:42:07 +00:00
terence tsao
5c36d59672
Reward: altair base reward ( #9307 )
...
* Add altair base reward funcs
* Update BUILD.bazel
* Better tests
* Update BUILD.bazel
2021-07-30 19:17:20 +00:00
Nishant Das
7576442ef0
Only Create Deposit Proofs Pre-Genesis ( #9289 )
...
* remove proof gen
* fix pre-genesis case
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-30 18:33:31 +00:00
terence tsao
d130bf0035
Fix more duplicated import prefix ( #9306 )
2021-07-30 18:05:38 +00:00
Mohamed Zahoor
0d818a5709
Reduce memory overhead during DB migrations ( #9298 )
...
* wip
* migration happening
* wip
* fix memory utilization, add the testcases
* migration issues
* the gazel
* remove debug logging
* goimport
* gazel
2021-07-30 08:38:54 -05:00
terence tsao
560fe69425
Core: sync committee helpers ( #9269 )
...
* Add sync committee helpers
* Create BUILD.bazel
* Update BUILD.bazel
* Update BUILD.bazel
* Fix visibility
* Preston's review
2021-07-29 23:19:32 +00:00
terence tsao
012d279663
Fix duplicated imports ( #9304 )
...
* Fix duplicated imports
* Fix metrics test
2021-07-29 16:45:17 -05:00
terence tsao
fcd4938ec0
Head: validator index getters ( #9303 )
2021-07-29 20:05:48 +00:00
Radosław Kapka
4db0dfc4f1
Properly broadcast attestations ( #9301 )
...
* better handling of gateway response
* empty response tests
* build file
* broadcast attestations properly
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-29 18:33:18 +02:00
terence tsao
cf4ff3d6f9
Clean up phase 0 spec tests ( #9299 )
2021-07-29 09:01:18 -05:00
Raul Jordan
9145310647
Eliminate Proto V2 Namespace ( #9297 )
...
* get rid of v2 in prysm codebase
* replace block2
* builds
* terence comments
* gazelle
2021-07-28 21:23:44 +00:00
Mohamed Zahoor
21c79f4dfa
Protect the state objects in memory when saving them ( #9291 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-28 18:27:27 +00:00
Raul Jordan
98f7f82b2f
Copy Altair Changes Into v1alpha1 Namespace ( #9296 )
...
* move the v2 changes into v1alpha1
* v1alpha1 builds
* regenerate pbs
* regenerate ssz
* top level builds
2021-07-28 18:05:07 +00:00
terence tsao
f16b9859e7
Test: add altair test utility ( #9287 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-28 17:15:23 +00:00
Nishant Das
a372e30c8f
Fix Spaced Arguments for Subcommands ( #9292 )
...
* fix args for commands
* fix nasty edge case
2021-07-28 14:36:48 +00:00
Nishant Das
415973fca3
remove flag ( #9290 )
2021-07-28 16:11:22 +08:00
Raul Jordan
2d9915d2d9
Define Unimplemented V2 Services ( #9286 )
...
* generate ssz bindings for protos
* define services and unimplemented
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-27 20:42:14 +00:00
Mohamed Zahoor
c6bd7a2f83
Efficient Historical State Representation ( #9155 )
...
* added migration in to new schema
* gazel fix
* goimports fix
* construct state with validator entries from a seperate bucket
* save state with validator entry indirection
* fixed save and retreieve issues
* fixed more test cases related to DeepEqual
* added save benchmark
* gazel fix
* organize benchmarks
* add cache and improve state construction performance
* gazel fix
* check type
* remove cache checking from Has
* fix decoding when cache is off
* fix slice bugs
* add migration testcases
* linter fix
* fix few review comments
* fix review feedback
* gazel fix
* satisfy deepsource
* added the feature flag
* lint fix
* fix usage of featureconfig Inti in testcases
* call resetConfig method
* add feature flag in migration testcases
* fix formatting
* change bucket name from blockRootValidatorKeysIndexBucket to blockRootValidatorHashesBucket
* remove from cache when state deleted
* fixed few more comments
* added to devModeFlags
* added cache delete under the feature flag
* fix lint
* change cache sizes and improve documentation
* fiexed few more review coments
* not using hash anymore and using a new SaveStates function
* satisfu deepsource
* run gazel
* fix feature flag related stuff
* fixing merge conflict fix
* few goodies
* improve UX and dont swallow error
* merge fix
* import format fix
* fix migrationion when flag not given issue
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-07-27 20:02:53 +00:00
terence tsao
7129af5ccf
Core/deposit: altair processing methods and tests ( #9227 )
2021-07-27 12:10:08 -07:00
Raul Jordan
f700808c8b
Generate SSZ Bindings for Latest Protos ( #9285 )
2021-07-27 17:57:11 +00:00
Raul Jordan
1ea1c69174
Copy V1Alpha1 Protos and API Endpoints To V2 Namespace ( #9284 )
...
* v2 builds
* generate go code
* fix build
2021-07-27 16:54:49 +00:00
terence tsao
54772596e0
State/V2: rest of pkg ( #9283 )
...
* Add rest of state v2
* Update BUILD.bazel
2021-07-27 15:47:03 +00:00
Nishant Das
a556cf27c4
Use Only Checkpoint Cache for Processing Attestations ( #9282 )
...
* use only one cache
* clean up
2021-07-27 07:26:53 -07:00
terence tsao
5b5c8f4d3f
State/V2: setters ( #9279 )
...
* Add state v2 getters
* Update BUILD.bazel
* Add state v2 setters
* Update BUILD.bazel
2021-07-26 17:27:05 -05:00
terence tsao
245dc23cde
State/V2: getters ( #9228 )
...
* Add state v2 getters
* Update BUILD.bazel
2021-07-26 20:55:30 +00:00
Radosław Kapka
837cd4eb8f
Implement ProduceAttestationData in the validator API ( #9271 )
...
* functionality
* test
* build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-26 19:22:58 +00:00
Radosław Kapka
8c8f1bb9c1
Regression test for #9264 ( #9277 )
2021-07-26 11:48:51 +00:00
Kaan
a8c49c50ad
v1alpha1 validators: catch possible reqState nil case ( #9275 )
...
* v1alpha1 validators: catch possible reqState nil case
* Minor format of error log
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-07-26 13:50:40 +08:00
Lorem Ipsum
14d0d9195f
Fixing wrong node information in fallback log ( #9258 ) ( #9272 )
2021-07-25 23:46:54 +02:00
terence tsao
8db0c9a0e6
Move proto/interfaces -> proto/prysm/v2 ( #9270 )
...
* Move proto/interfaces -> proto/prysm
* Update paths
* Fix block2
* Update blocks_fetcher_utils.go
* Update BUILD.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 20:10:15 +00:00
Preston Van Loon
938a038c42
Fix //... for darwin ( #9273 )
...
* Fixes
* More manual tags
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 18:26:49 +00:00
Raul Jordan
30e93f5763
Move Slashing Protos to V2 ( #9256 )
...
* proto slashing
* move slashing related protos
* gaz
* include slasher pbs consolidated
* slasher pb fmt imports
* imports
* beacon builds
* build validator
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 18:01:01 +00:00
Radosław Kapka
be82c8714f
Do not require a handler function in the gateway ( #9264 )
...
* Do not require a handler function in the gateway
* test fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-23 16:48:22 +00:00
Preston Van Loon
c0076cc7a2
State: move state interfaces into state package ( #9268 )
...
* Move interfaces from github.com/prysmaticlabs/prysm/beacon-chain/state/interface to github.com/prysmaticlabs/prysm/beacon-chain/state
* remove/rename state2
2021-07-23 16:11:21 +00:00
Radosław Kapka
a8363405f8
Implement ProduceBlock in the validator API ( #9259 )
...
* server-side implementation
* build file
* run through api middleware
* tests
* build file
* gofmt
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-07-23 16:29:38 +02:00
Raul Jordan
2d10bcf179
Move State Protos Into V2 Namespace ( #9257 )
...
* move state protos
* regen ssz
* edit v1 code
* fix imports
* building
* beacon chain builds
* validator and shared builds
* fuzz builds
* changes
* spectest builds
* tools build
* remove import cycle
* generate ssz
* pcli
* gaz
* kafka
* gaz
2021-07-23 08:07:40 -05:00
terence tsao
526596a679
State/v1: add atts and block roots getter tests ( #9255 )
...
* Add att and block getter tests
* Update BUILD.bazel
* Update getters_attestation_test.go
* Update beacon-chain/state/v1/getters_block_test.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Fix mutation tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-07-22 22:31:14 +00:00
Raul Jordan
5864795ca5
Move RPC Protos Into V2 Namespace ( #9254 )
...
* moved rpc protos
* gazelle
* change pb
* validator health
* edit name
* naming
2021-07-22 21:00:28 +00:00
Raul Jordan
b7919b3115
Move DB Protos Into V2 Namespace ( #9253 )
...
* move db protos into prysm v2
* build
* build
* imports gaz
* v2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 20:05:06 +00:00
Raul Jordan
715aa408e3
Move Web Protos Into Prysm V2 ( #9249 )
...
* move web protos
* move web to v2
* update web protos
* gaz
* proto build
* replace mentions of validator v2
* gaz
2021-07-22 19:19:24 +00:00
Raul Jordan
ceb1ec451a
Remove Faucet Protos ( #9252 )
...
* rem faucet protos
* tidy
2021-07-22 18:27:31 +00:00
Radosław Kapka
b35c3ab2e7
Implement GetAggregateAttestation in the validator API ( #9243 )
...
* server-side implementation
* run through api middleware
* tests
* build file
* build file fix
* return attestation with most aggregation bits
* build file
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 17:48:32 +00:00
terence tsao
c8685d256c
Lint: add v1 as import alias ( #9250 )
...
* Add v1 as import alias
* Update helpers.go
* More
* Update skip_slot_cache_test.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 17:13:18 +00:00
Raul Jordan
0fb43aec34
Remove Unused Cluster Protos ( #9251 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-22 16:39:27 +00:00
terence tsao
9addb5f7c3
Core/epoch: sync committee period ( #9248 )
...
* Combine function parameters
* Add sync committee epoch calculations
* Update BUILD.bazel
2021-07-22 16:13:42 +00:00
Nishant Das
33f7582d25
Add Doppelganger E2E ( #9239 )
...
* add current fixes
* fix prev release
* Update endtoend/endtoend_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update endtoend/endtoend_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update endtoend/endtoend_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* review comments for radek and raul
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-21 23:00:12 -05:00
Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
Radosław Kapka
ae140073e7
Remove proposer_sync_aggregate.go ( #9231 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-21 19:35:18 +00:00
terence tsao
b667d30d3f
Feature/UpdateHeadTimely: cache finalized checkpoint when initial sync ( #9244 )
2021-07-21 11:55:27 -07:00
terence tsao
e7bdf35721
Fix unused variables ( #9234 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-21 16:06:57 +00:00
Nishant Das
c780301096
Remove Validator DB Cache ( #9238 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-21 15:26:07 +00:00
terence tsao
e1d543a77b
Combine function parameters ( #9242 )
2021-07-21 14:55:37 +00:00
Nishant Das
2ffe8336fc
Fix Parsing of Nested Subcommands ( #9236 )
2021-07-21 13:01:33 +02:00
Nishant Das
11d9e7da9b
Update Libp2p to v0.14.4 ( #9108 )
...
* fix
* tidy
* fix deps
* tidy
* fix pubsub
2021-07-20 23:50:47 +00:00
Radosław Kapka
53e02b1601
Log correct warning when disabling flags ( #9230 )
...
* Log correct warning when disabling flags
* use interface
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2021-07-20 16:54:08 +00:00
Preston Van Loon
3a35a953bf
proto/prysm/v2: Introduce Altair pb changes ( #9222 )
...
* Copy v2 protos from hf1
* Remove some extra Altair naming
* Build with github.com/ferranbt/fastssz/pull/50
* Regen pb.go
* Update fastssz to master
2021-07-19 20:42:06 +00:00
Preston Van Loon
8d1c9fe1e2
epoch/precompute: Add changes from Altair ( #9219 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 19:39:23 +00:00
terence tsao
4229b466ae
Add sync committee pool pkg ( #9203 )
...
* Add sync committee pkg
* Fix err variable namings
2021-07-19 19:06:49 +00:00
Preston Van Loon
412ddbb29e
beacon-chain/state/v1: ReadOnlyValidator wrapper constructor method ( #9221 )
...
* Introduce changes from Altair hf1 branch
* go pkg viz changes
* Fix test
* goimports for some reason
* Use a more safe method of wrapping validators with regards to nil validators. Add basic tests for this wrapped validator
* Use a more safe method of wrapping validators with regards to nil validators. Add basic tests for this wrapped validator
* Panic fixes
* Fix tests
* remove nil validator test as it is no longer possible
* goimports for some reason
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 18:26:39 +00:00
Radosław Kapka
8a7010f5aa
Implement GetProposerDuties in the validator API ( #9223 )
...
* endpoint implementation
* extract common code
* tests
* remove named return values
* correct test log
* sort duties by slot
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-07-19 18:00:15 +00:00
Nishant Das
40a96bc2b6
Invert Update Head Timely Flag ( #9224 )
...
* invert
* Update shared/featureconfig/flags.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-19 17:23:43 +00:00
terence tsao
1beb0071b5
State/v2: Add InitializeFromProto and InitializeFromProtoUnsafe ( #9226 )
...
* Add `InitializeFromProto`
* Update BUILD.bazel
2021-07-19 16:47:42 +00:00
terence tsao
2a0c4e0d5f
Use block wrapper and interface for propose block ( #9218 )
2021-07-19 15:51:38 +00:00
Nishant Das
dad205bd04
Invert Optimized Balance Update Feature ( #9225 )
2021-07-19 14:27:20 +00:00
Preston Van Loon
15bfcf8ff6
Add tests for wrapped Altair objects ( #9213 )
...
* start tests for wrapped methods
* Add a few tests and skeletons for interface impl methods
* Add latest interfaces update from hf1 and stub the appropriate tests
* Add a few more tests
* More progress
* Migitate nil pointer issues in construct. Complete tests
* Copy changes from hf1 to v1alpha1 wrapper
* Use testutils from #9201
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-18 19:32:52 +00:00
terence tsao
15704053e1
Add Altair configs ( #9150 )
...
* Add altair configs
* Update minimal_config.go
* Update workspace and config tests
* Revert workspace changes
* Update WORKSPACE
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-07-18 16:18:43 +00:00
terence tsao
5be1ccd3cf
Hydrate altair block ( #9201 )
...
* Hydrate altair blocks
* Update BUILD.bazel
* HTR test
* Update BUILD.bazel
* Comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 23:35:37 +00:00
terence tsao
97e6eb14e2
Altair block wrapper: update return to interfaces ( #9212 )
2021-07-16 23:09:45 +00:00
Mohamed Zahoor
6f126c92c0
Make exportdb tool faster ( #9184 )
...
* added prodecer consumer pattern for reading and printing
* make state interface visible in exploredb
* bazel magic for visibility
* fix manual visibilithy marking
* linter fix
* parallelized bucket stats
* add log.WithErr and log.Infof
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-16 22:24:16 +00:00
Radosław Kapka
223d5309a0
Implement GetAttesterDuties in the validator API ( #9207 )
...
* remove irrelevant comment
* fix proto documentation
* first implementation
* register validator server
* first working version
* add sync checker and test file
* first test
* gzl
* final version + tests
* gzl
* run duties through API Middleware
* extract dependent root getter
* dependentRoot docs
* wrap indices in array
* fix static analysis issues
* modify err nil check
* create local variables in slot processing test
* Update proto/eth/v1/validator_service.proto
* review
* simplify index loops
* better calculation of committees at slot
* comment about impossible comndition
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:55:22 +00:00
Preston Van Loon
31d2482f9c
Add proto wrappers for Altair ( #9209 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
* Copy hf1 cloners and add tests
* Introduce wrapper changes from hf1
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 20:30:26 +00:00
terence tsao
3ef0c5d6e5
Fix deepsource: shadow of builtin detected ( #9210 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-07-16 20:04:30 +00:00
Preston Van Loon
187a1ca53d
shared/copyutil: Add copy methods for Altair ( #9208 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
* Copy hf1 cloners and add tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-07-16 19:30:48 +00:00
Preston Van Loon
17d7fc492e
shared/copyutil: Add tests for copy methods ( #9204 )
...
* Starting attestation test
* Commiting checkpoint progress before dinner
* Add remainder of tests
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-07-16 16:56:09 +00:00
Preston Van Loon
f029fdd44a
beacon-chain/state/stateutil: Fix benchmark target ( #9199 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-16 14:39:14 +00:00
Preston Van Loon
44d266313e
testutil: Add NotEmpty method ( #9202 )
2021-07-15 22:32:10 +00:00
terence tsao
1a9a46d042
Block util: block header from block interface ( #9196 )
...
* Add beacon block header from block interface
* Update BUILD.bazel
* Update shared/blockutil/block_utils.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Go fmt
* Remove unused bodyroot
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2021-07-15 16:03:46 +00:00
Preston Van Loon
71c8c75bc3
shared/queue: Add RetrieveByKey method ( #9195 )
...
* Checkout shared/queue changes from hf1 branch
* Remove logic that removes and reinserts an item into the queue at the back
* Add test to ensure the correct thing was returned
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2021-07-15 10:31:19 -05:00
terence tsao
b22935a724
Rename AttestationNotifier ( #9197 )
2021-07-14 18:32:03 -07:00
Radosław Kapka
3ff5b95945
Remove database field from v1alpha1 validator server ( #9191 )
...
* Remove database field from v1alpha1 validator server
* remove field
* gzl
* remove not needed variable
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-07-14 13:16:21 +00:00
Nishant Das
e6bd5f31b1
Cleanup Fast Aggregate Verify ( #9193 )
2021-07-14 11:12:50 +00:00
terence tsao
9a4ab41761
BaseReward test only (#9189 )
...
* Move baseward to test only
* Update BUILD.bazel
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2021-07-13 20:12:53 +00:00
terence tsao
7f0749c398
Clean up shared interface package ( #9172 )
...
* Remove shared interface folder
* Rename file names
* Gazelle
* Move interface to /beacon/p2p/
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2021-07-13 18:58:43 +00:00
Nishant Das
d73ac71ee6
add std out for beacon node ( #9183 )
2021-07-13 08:45:26 -05:00
terence tsao
6ba741f251
Calculate epoch outside of loop ( #9178 )
2021-07-12 12:35:36 -07:00
Radosław Kapka
4ebb008bc9
Protos and stubs for validator API endpoints ( #9174 )
...
* match proto definitions with spec
* stubs for grpc server's functions
2021-07-12 10:38:55 -05:00