kasey
61c7e57547
fixing happy path BlobsByRange RPC tests
...
NOTE!!! This commit is missing a critical fix, which I am leaving out
until it's merged into eip4844 branch, to avoid additional merge mess
(there will be plenty as it is). This is the change:
+++ b/consensus-types/blocks/getters.go
@@ -316,6 +316,7 @@ func (b *SignedBeaconBlock) ToBlinded() (interfaces.ReadOnlySignedBeaconBlock, e
SyncAggregate: b.block.body.syncAggregate,
ExecutionPayloadHeader: header,
BlsToExecutionChanges: b.block.body.blsToExecutionChanges,
+ BlobKzgCommitments: b.block.body.blobKzgCommitments,
2023-03-20 16:15:37 -05:00
kasey
a79a3f5d2e
BlobsByRange validation tests
2023-03-17 15:08:03 -05:00
kasey
334383355c
restoring blobs-by-range code that got stomped
2023-03-17 10:12:38 -05:00
kasey
461d762f54
fixing blob test to use right topic
2023-03-17 00:32:14 -05:00
kasey
5819c2e086
refactor ByRoot test setup to share w/ ByRange
2023-03-16 21:17:58 -05:00
kasey
26604b4c5b
getting things building
2023-03-16 19:55:18 -05:00
kasey
a3129daa03
range requests to use correct type
2023-03-16 19:50:29 -05:00
kasey
14cc00720e
clean up validation logic
2023-03-16 14:13:17 -05:00
kasey
46da6208d1
untested BlobsByRange impl
2023-03-16 14:13:09 -05:00
kasey
6401755efd
refactor BlocksByRange to share w/ blobs
2023-03-16 14:13:00 -05:00
kasey
4541baafe3
refactoring BlockByRange to use in BlobByRange
2023-03-16 14:12:30 -05:00
terencechain
78175ee0fd
Update and clean up validators for devnet5 ( #12131 )
2023-03-15 11:54:57 -07:00
terence tsao
a34cc7f7bf
Update geth]
2023-03-15 10:51:52 -07:00
terence tsao
6f22cd7963
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-03-14 14:34:45 -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
terencechain
58967e4516
Rm blobs sidecar usages ( #12118 )
2023-03-13 11:34:20 -07:00
terence tsao
947c9fbe60
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-03-13 08:04:23 -07: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
terence tsao
8cc1e67e6c
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-03-10 08:23:09 -08:00
terencechain
2f3deac8b0
Make eip4844 green again ( #12093 )
2023-03-10 07:32:09 -08: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
terencechain
aa44ba40ab
Add blob gossip ( #12007 )
2023-03-07 20:05:43 -08:00
terencechain
8b268d646c
Add block and blobs cache ( #12088 )
2023-03-07 15:32:36 -08: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
kasey
d6ecadb471
BlobsByRoot RPC ( #12011 )
...
* boilerplate for block&block-by-root->blob-by-root
* add db interface to service and use in handler
* rm unused requestBlockAndSidecarByRoot
* add test for base case of sidecar by root
* test blob slot < min req epoch, other fixes
* cleaning up test mess
* rm unused func
* add BroadcastBlob method stubs to fix build
* handler name consistent with path
* initialize blob queue for test
* lint & gaz
* update mock to satisfy interface
* fix wrong sig for mock
* clean up min req epoch, no underflow, + tests
---------
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-03-07 09:45:01 -06: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
terence tsao
9a8bde448e
Sync with develop
2023-03-06 16:16:18 -08:00
terence tsao
ce71b3b6b1
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-03-06 15:56:29 -08: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
terence tsao
5fa30bf73a
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-02-23 15:45:32 -08:00
terencechain
b93aba6126
Add validator signing decoupled blobs ( #12015 )
2023-02-23 13:26:45 -08: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
terence tsao
51ed80df69
Fix build
2023-02-23 09:22:38 -08: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
terencechain
a614c4ac8c
Add broadcast blob method ( #12016 )
2023-02-23 07:52:58 -08: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
terencechain
7b777a10a5
EIP4844: update excessive data gas field and pass spec tests ( #12032 )
2023-02-22 10:19:32 -08: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
terence tsao
bf1ab9951f
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-02-22 06:59:31 -08: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
5cea2b3855
Revert block gossip changes to before coupling ( #12012 )
2023-02-21 17:06:11 -08: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
terencechain
ab63757fe5
Add decoupled blob protobufs ( #12002 )
2023-02-16 11:10:55 -08:00
terencechain
736ed1e003
Fix spec tests after renamed EIP4844 to Deneb ( #12005 )
2023-02-16 11:10:37 -08:00
terence tsao
6ee9707fd7
Sync with develop
2023-02-16 08:49:00 -08:00
terence tsao
e40835b1a9
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-02-16 08:20:20 -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
terence tsao
216a420bbc
Sync with master
2023-01-28 14:19:50 +01:00
terence tsao
4845abecb8
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-01-28 13:09:08 +01: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
James He
08a910e44f
renaming to proto endpoint
2023-01-27 16:30:24 +01:00
terence tsao
67ba2c4fe3
Add slash
2023-01-27 15:36:10 +01:00
terence tsao
7efa501bdc
Fix space
2023-01-27 15:35:57 +01: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
terence tsao
879a694ab3
Another nil check
2023-01-27 10:15:04 +01:00
terence tsao
4e3b1881ed
Add check for nil block
2023-01-27 09:44:15 +01: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
Inphi
35d3707de7
sync: Fix BlobsSidecarByRange rate limiting ( #11920 )
2023-01-26 07:48:39 +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
terence tsao
1f468bd3f5
Rm field params
2023-01-25 10:49:06 +01:00
terence tsao
ac32098c86
Merge branch 'init-nil-withdrawals' into eip4844
2023-01-25 10:32:11 +01:00
terence tsao
e0af005c42
Initialize nil withdrawals at marshal / unmarshal
2023-01-25 10:29:44 +01: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
Francis Li
f08af1bdbf
Fix eip4844 branch errors ( #11901 )
2023-01-24 11:52:05 +01:00
terence tsao
6d0420fde5
Merge branch 'eip4844' of github.com:prysmaticlabs/prysm into eip4844
2023-01-24 11:41:40 +01:00
terence tsao
5172e6e362
Rate limiter
2023-01-24 11:41:08 +01:00
Inphi
42df0f70b6
sync: Re-broadcast block and blobs sidecar ( #11907 )
2023-01-24 11:15:57 +01: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
terence tsao
dace0f6a2d
Rename eip4844 to deneb
2023-01-19 17:30:36 -08:00
terence tsao
26a5878181
Write bad block and blob to disk
2023-01-18 14:02:09 -08: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
terence tsao
db6474a3e4
Sync with develop
2023-01-18 12:00:48 -08:00
terence tsao
b84851fd0d
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2023-01-18 08:38:13 -08: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
terence tsao
673702c100
Fix loop referencing for kzgs
2023-01-12 15:50:46 -08:00
terence tsao
520eb6baca
Rm unused checks
2023-01-12 10:36:21 -08: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
terence tsao
e6047dc344
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2023-01-11 14:59:00 -08:00
terence tsao
d86a452b15
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2023-01-11 14:52:26 -08: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
terence tsao
67f9d0b9c4
Fix log
2023-01-11 08:08:33 -08:00
terence tsao
21cd055b84
Better logs
2023-01-11 07:40:19 -08: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
Kasey Kirkham
9f3bb623ec
add capella to yaml "template"
2023-01-10 16:30:32 -06:00
Kasey Kirkham
b10a95097e
capella state version detection bug fix
2023-01-10 15:54:27 -06: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
terence tsao
4561f5cacb
Clean ups
2023-01-09 14:33:05 -08: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
terence tsao
50b672a4db
Beacon api: get blobs
2023-01-09 11:40:06 -08: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
ffbb73a59b
Merge remote-tracking branch 'origin/develop' into capella
2023-01-09 12:07:00 -03:00
Potuz
bdc3a6ef11
Capella coverage and json structs ( #11854 )
...
* Capella coverage and json structs
* use SetupTestConfig
2023-01-09 14:47:40 +00:00
Potuz
649974f14d
removed duplicated case
2023-01-09 09:54:15 -03:00
Potuz
9ec0bc0734
Merge remote-tracking branch 'origin/historical-summaries' into capella
2023-01-09 08:57:24 -03:00
terence tsao
9649e49658
Passing spec tests
2023-01-07 08:50:20 -08:00
terence tsao
49fdcb7347
Add spec tests
2023-01-07 08:33:48 -08:00
terence tsao
cd6ee956ed
Merge branch 'historical-summaries' into eip4844
2023-01-07 08:03:15 -08:00
terence tsao
ef95fd33f8
Uncomment withdrawal stubs
2023-01-07 07:52:31 -08:00
terence tsao
1a488241b0
Sync with capella
2023-01-07 07:48:57 -08:00
terence tsao
5fdd3a3d66
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2023-01-07 07:19:55 -08:00
terence tsao
b6a32c050f
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2023-01-07 07:03:58 -08:00
terence tsao
055e225093
Passing spec tests
2023-01-06 15:18:38 -08:00
terence tsao
144218cb1b
Process historical roots test
2023-01-06 11:56:24 -08: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
Potuz
13b575a609
Merge remote-tracking branch 'origin/develop' into capella
2023-01-06 10:59:43 -03: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
terence tsao
b5a414eae9
Rm bad imports
2023-01-04 08:10:27 -08:00
terence tsao
b94b347ace
Sync with develop
2023-01-04 07:37:25 -08:00
terence tsao
f5ee225819
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2023-01-04 07:16:00 -08: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
terence tsao
9cb48be14f
Add historical summaries to state and processing
2023-01-03 15:58:39 -08: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
terence tsao
85fa9951eb
Fix span name
2022-12-24 23:40:30 +08:00
terence tsao
ec72575fc9
Close stream for by root rpc handler
2022-12-24 23:34:02 +08:00
terence tsao
d9d1bb6d3d
Skip on empty
2022-12-24 11:37:58 +08:00
Potuz
ffcdc26618
Merge remote-tracking branch 'origin/develop' into capella
2022-12-23 13:03:11 -03: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
96981a07b9
check signatures of BLS changes before capella
2022-12-22 16:10:00 -03: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
Potuz
6b2721b239
Check BLS_TO_EXECUTION_CHANGE as if they were from Capella
...
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.
2022-12-22 11:34:57 -03:00
terence tsao
c79151a574
Fix rate limiter
2022-12-22 22:10:34 +08: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
Inphi
4b20234801
Fix missing context in post-altair /v1 messages ( #11807 )
2022-12-22 06:46:15 +08: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
terence tsao
911048aa6d
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2022-12-21 13:01:40 +08: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
James He
255e9693ee
fixing typo on comments
2022-12-20 22:42:31 -06:00
terence tsao
61c1216e3d
Better handling for validate sync msg time
2022-12-21 10:08:44 +08:00
terence tsao
17e1eaf0f3
Set stream write deadline
2022-12-21 09:38:00 +08:00
terence tsao
9940943595
Clean up sync
2022-12-21 09:30:11 +08:00
terence tsao
9a0f941870
Change avgSidecarBlobsTransferBytes
2022-12-21 08:32:47 +08:00
terence tsao
5d0f54d332
Blobs rate limiter
2022-12-21 08:17:54 +08:00
rkapka
d602c94b7b
fix
2022-12-20 20:28:53 +01:00
rkapka
6a5ecbd68f
Implement getPoolBLSToExecutionChanges API endpoint
...
(cherry picked from commit cd25d922bc )
# Conflicts:
# beacon-chain/node/node.go
# beacon-chain/rpc/eth/beacon/pool.go
# proto/eth/service/beacon_chain_service.pb.go
# proto/migration/v1alpha1_to_v2.go
2022-12-20 17:31:21 +01: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
Potuz
29dfcab505
Fix BlockValue marshalling
2022-12-19 11:14:35 -03:00
Potuz
16e5c903cc
Merge remote-tracking branch 'origin/develop' into capella
2022-12-19 10:28:05 -03: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
terencechain
66682cb4e5
Clean up block initizliation and remove set block ( #11791 )
2022-12-19 15:41:28 +08:00
terencechain
52faea8b7d
Support 4844 container type queries in the beacon API + update spec tests ( #11794 )
2022-12-19 15:38:23 +08:00
terence tsao
8a78315682
Save blobs during by range sync
2022-12-18 07:44:30 +08:00
Potuz
cab42a4ae3
Take raw arrays for BLS changes
2022-12-16 18:02:35 -03: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
a5bdd42bdd
Merge remote-tracking branch 'origin/block-value' into capella
2022-12-16 12:47:29 -03:00
Potuz
a26197f919
take lists for bls changes endpoint
2022-12-16 12:47:18 -03: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
terence tsao
8b9cab457e
Got block and blobs gossip working
2022-12-16 13:41:59 +08: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
terence tsao
080ce31395
Add block value to get payload v2
2022-12-15 17:17:58 +08:00
terence tsao
7866e8a196
Got blob syncing to work
2022-12-15 17:02:38 +08: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
Potuz
d5d17e00b3
Merge branch 'develop' into capella
2022-12-14 13:04:23 -03:00
rkapka
9c6a1331cf
remove redeclared struct
2022-12-14 16:29:14 +01: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
terence tsao
d89c97634c
Merge branch 'eip4844' of github.com:prysmaticlabs/prysm into eip4844
2022-12-14 10:26:47 +08:00
terence tsao
7e95ca3705
Add blobs to initial syncing path
2022-12-14 10:26:39 +08: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
Inphi
abd46b01b7
Fix non-empty kzg commitment in proposal ( #11766 )
2022-12-14 08:06:14 +08: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
Potuz
8629ac8417
only broadcast bls changes post-capella
2022-12-13 09:53:05 -03: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
terence tsao
304925aabf
Add todos for 4844 sync
2022-12-13 16:18:09 +08:00
terence tsao
16d93e47a5
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-12-13 15:12:46 +08: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
rkapka
6dcb2bbf0d
Use signed changes in middleware block
...
(cherry picked from commit e3c9e7bb5c )
2022-12-12 16:21:39 +01:00
Potuz
deb138959a
fix validator client
2022-12-12 11:43:48 -03:00
Potuz
45e6f3bd00
fix build
2022-12-12 11:29:57 -03:00
Potuz
55a9e0d51a
Merge branch 'develop' into capella
2022-12-12 11:15:39 -03: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
terence tsao
3ddae600fb
Merge branch 'capella' of github.com:prysmaticlabs/prysm into capella
2022-12-09 19:35:39 -08:00
terence tsao
861ede8945
Fix subscriptions
2022-12-09 15:29:23 -08:00
terence tsao
93f11f9047
Change target / max blobs to 2 / 4
2022-12-09 10:40:20 -08: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
rkapka
56503110dd
Merge branch 'recontruct-capella-blinded' into capella
...
# Conflicts:
# testing/spectest/shared/common/forkchoice/service.go
2022-12-09 12:45:23 +01:00
rkapka
f67d35dffd
single execution block type
2022-12-09 12:43:35 +01:00
terence tsao
efbca1b5b7
Add v3 engine apis
2022-12-08 16:45:05 -08:00
terence tsao
2de0ebaf8d
Merge branch 'roberto-fix-auth' into eip4844
2022-12-08 13:52:11 -08: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
Roberto Bayardo
0815ef94a3
Merge branch 'develop' into roberto-fix-auth
2022-12-08 13:23:29 -08:00
james-prysm
145eb5a8e4
add m1 chip info ( #11736 )
2022-12-08 15:20:32 -06:00
Roberto Bayardo
092ffa99e5
update & fix code around setting auth header for latest geth
2022-12-08 13:14:09 -08: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
rkapka
b05b67b264
reorder checks
2022-12-08 19:48:02 +01:00
rkapka
a5c6518c20
deepsource
2022-12-08 19:48:02 +01:00
Radosław Kapka
da048395ce
Merge branch 'develop' into recontruct-capella-blinded
2022-12-08 18:41:12 +01:00
rkapka
f31f7be310
fix engine mock
2022-12-08 18:39:59 +01:00
rkapka
e1a2267f86
Merge remote-tracking branch 'origin/capella' into capella
2022-12-08 18:36:44 +01:00
rkapka
3c9e4ee7f7
Merge branch 'recontruct-capella-blinded' into capella
...
# Conflicts:
# beacon-chain/blockchain/pow_block.go
# beacon-chain/execution/engine_client.go
# beacon-chain/execution/engine_client_test.go
# beacon-chain/execution/testing/mock_engine_client.go
# beacon-chain/rpc/eth/beacon/blocks.go
# beacon-chain/state/state-native/getters_withdrawal.go
# consensus-types/blocks/factory.go
# proto/engine/v1/json_marshal_unmarshal.go
# proto/engine/v1/json_marshal_unmarshal_test.go
2022-12-08 18:31:25 +01:00
rkapka
9ba32c9acd
single ExecutionBlockByHash function
2022-12-08 17:53:02 +01:00
rkapka
d23008452e
fix failing tests
2022-12-08 17:29:51 +01:00
terencechain
f397cba1e0
Better proposal RPC ( #11721 )
2022-12-08 07:40:48 -08: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
terence tsao
3eecbb5b1a
Fix enum for cli
2022-12-07 12:12:56 -08: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
rkapka
1583e93b48
bzl
2022-12-07 18:23:43 +01:00
james-prysm
bd82eb873c
Fix to Post Submit E2E ( #11733 )
2022-12-07 18:19:44 +01:00
rkapka
849457df81
deepsource
...
(cherry picked from commit 903cab75ee )
# Conflicts:
# beacon-chain/execution/testing/mock_engine_client.go
2022-12-07 16:29:34 +01:00
rkapka
903cab75ee
deepsource
2022-12-07 16:27:09 +01:00
rkapka
ee108d4aff
add doc to interface
...
(cherry picked from commit a08baf4a14 )
2022-12-07 16:22:14 +01:00
rkapka
49bcc58762
rename methods
...
(cherry picked from commit 8c56dfdd46 )
2022-12-07 16:22:09 +01:00
rkapka
a08baf4a14
add doc to interface
2022-12-07 16:20:43 +01:00
rkapka
8c56dfdd46
rename methods
2022-12-07 16:20:31 +01:00
rkapka
dcdd9af9db
remove unneeded test
2022-12-07 16:05:44 +01:00
rkapka
a464cf5c60
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
2022-12-07 15:21:58 +01:00
Nishant Das
62455b7bcb
Fix Lint and Minor Bugs in E2E ( #11730 )
2022-12-07 05:31:53 +00:00
terence tsao
cc55c754dc
Fix cli flag
2022-12-06 16:57:50 -08:00
terence tsao
2d483ab09f
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2022-12-06 16:48:44 -08:00
terence tsao
d64e10a337
Interop
2022-12-06 16:06:18 -08:00
terence tsao
1e9ee10674
Merge branch 'better-validator-rpcs' of github.com:prysmaticlabs/prysm into eip4844
2022-12-06 15:14:20 -08:00
terence tsao
3ac395b39e
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-12-06 14:42:49 -08:00
Justin Traglia
6e26a6f128
Replace LastWithdrawalValidatorIndex to updated name ( #11725 )
2022-12-06 14:40:10 -08:00
Justin Traglia
b512b92a8a
Update withdrawal error message to reflect new field name ( #11724 )
2022-12-06 14:39:17 -08:00
terence tsao
5ff601a1b9
Sync with latest go-ethereum changes
2022-12-06 14:38:14 -08:00
terence tsao
5823054519
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-12-06 14:08:00 -08:00
terence tsao
3d196662bc
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-12-06 14:06:30 -08: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
rkapka
b0601580ef
Merge branch 'reconstruct-capella-block' into capella
2022-12-06 22:16:59 +01:00
rkapka
c1f29ea651
remove logs
2022-12-06 22:11:35 +01:00
rkapka
881d1d435a
logs
2022-12-06 21:46:41 +01:00
Patrice Vignola
05148dbc8f
Fix DeepSource errors in the Validator's REST API ( #11726 )
2022-12-06 20:31:56 +00:00
rkapka
d1aae0c941
Merge branch 'capella' into reconstruct-capella-block
2022-12-06 21:26:55 +01: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
terence tsao
468cc23876
Fix interop
2022-12-04 08:40:41 -08:00
terence tsao
d9646a9183
Add builder paths
2022-12-03 07:29:46 -08:00
terence tsao
279cee42f1
Refactor block proposal path
2022-12-02 16:13:01 -08:00
terence tsao
57bdb907cc
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2022-12-02 11:10:39 -08: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
rkapka
15d683c78f
Merge branch 'capella' into reconstruct-capella-block
2022-12-02 16:43:56 +01:00
rkapka
bf6c8ced7d
working
2022-12-02 16:37:24 +01:00
Potuz
78fb685027
Check BLS changes when requesting from the pool
2022-12-02 10:14:39 -03: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
terence tsao
a87536eba0
Fix minimal spec test
2022-12-01 15:26:18 -08:00
terence tsao
3f05395a00
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-12-01 14:52:49 -08:00
terence tsao
85fc57d41e
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-12-01 14:45:31 -08:00
terence tsao
1e5976d5ce
Mainnet spec tests passing
2022-12-01 14:41:34 -08:00
Potuz
98c0b23350
broadcast BLS changes
2022-12-01 11:26:56 -03: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
terence tsao
039a0fffba
Merge branch 'develop' of github.com:prysmaticlabs/prysm into capella
2022-11-30 12:09:47 -08:00
terencechain
8cb07e0c2b
Spec test: capella and update to v1.3.0-alpha.1 ( #11683 )
2022-11-30 12:08:04 -08:00
Potuz
90ec640e7a
Fix capella operations spectests
2022-11-30 15:35:55 -03:00
Potuz
10acd31d25
check on verify instead of sig
2022-11-30 15:20:23 -03:00
terence tsao
4224014fad
Add 4844 block and state
2022-11-30 10:14:35 -08:00
Potuz
df1e8b33d8
BLS Change signature verification
2022-11-30 14:52:31 -03: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
rkapka
cdb4ee42cc
not working
2022-11-30 18:22:52 +01:00
rkapka
d29baec77e
proper error handling in BuildSignedBeaconBlockFromExecutionPayload
2022-11-30 15:32:57 +01:00
terence tsao
53c189da9b
Merge branch 'update-eip4844-objs' into eip4844
2022-11-29 21:16:31 -08:00
terence tsao
277fbce61b
Update eip4844 objects
2022-11-29 21:15:14 -08:00
terence tsao
0adc54b7ff
Refactor get payload
2022-11-29 12:02:47 -08: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
Potuz
1cbd7e9888
withdraw by default
2022-11-29 13:52:34 -03:00
rkapka
0a9e1658dd
move stuff to blinded_blocks.go
2022-11-29 17:36:52 +01:00
rkapka
31d4a4cd11
test other functions
2022-11-29 17:36:52 +01:00
rkapka
fbc4e73d31
refactor and test GetSSZBlockV2
2022-11-29 17:36:52 +01:00
rkapka
c1d4eaa79d
refactor and test GetBlockV2
2022-11-29 17:36:52 +01:00
rkapka
760af6428e
update ssz
2022-11-29 17:36:52 +01:00
terence tsao
dfa0ccf626
Fix attribute pb nil checks
2022-11-29 07:27:33 -08:00
terence tsao
7a142cf324
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-11-29 07:09:41 -08:00
rkapka
1a51fdbd58
update withdrawals proto
2022-11-29 14:23:11 +01: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
terencechain
368a99ec8d
Fix nil attribute for capella branch ( #11701 )
2022-11-28 17:34:26 -08: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
terence tsao
1c7e734918
Fix some blockchain tests
2022-11-28 13:59:17 -08:00
rkapka
764d1325bf
Merge remote-tracking branch 'origin/capella' into capella
2022-11-28 21:07:00 +01:00
rkapka
0cf30e9022
Merge branch '__develop' into capella
2022-11-28 21:06:20 +01:00
Potuz
227b20f368
fix nil block from stream
2022-11-28 16:53:11 -03: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
rkapka
d7d70bc25b
support SSZ lol
...
(cherry picked from commit 52bc2c8d617ac3e1254c493fa053cdce4a1ebd63)
2022-11-28 20:19:24 +01:00
rkapka
82f6ddb693
add Capella version
...
(cherry picked from commit 5d6fd0bbe663e5dd16df5b2e773f68982bbcd24e)
2022-11-28 20:19:19 +01:00
rkapka
9e4e82d2c5
refactor GetBlindedBlockSSZ
...
(cherry picked from commit 97483c339f99b0d96bd81846a979383ffd2b0cda)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
2022-11-28 20:19:15 +01: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
rkapka
9838369fe9
fix proto generation
2022-11-28 20:15:05 +01:00
rkapka
6085ad1bfa
fix issues
2022-11-28 20:07:37 +01:00
rkapka
d3851b27df
Merge branch '__develop' into capella
...
# Conflicts:
# beacon-chain/rpc/apimiddleware/structs.go
# beacon-chain/rpc/eth/beacon/blocks.go
# proto/eth/v2/BUILD.bazel
# proto/eth/v2/beacon_block.pb.go
# proto/eth/v2/beacon_block.proto
# proto/eth/v2/generated.ssz.go
# proto/migration/v1alpha1_to_v2.go
# proto/prysm/v1alpha1/beacon_chain.pb.go
# proto/prysm/v1alpha1/beacon_chain.proto
2022-11-28 19:31:33 +01: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
Potuz
d6100dfdcb
fix spectest
2022-11-28 12:38:14 -03:00
Patrice Vignola
f276c5d006
Make the validator REST API's WaitForChainStart blocking ( #11695 )
2022-11-28 11:58:04 +01:00
Potuz
c2144dac86
Add BLSToExecutionChangge endpoint
2022-11-27 23:00:16 -03:00
Potuz
a47ff569a8
Add Submit BLSChange endpoint
2022-11-27 20:50:21 -03:00
Potuz
f8be022ef2
Merge branch 'develop' into capella
2022-11-27 20:40:41 -03:00
Potuz
4f39e6b685
Implement REST block API endpoints
2022-11-27 16:20:30 -03:00
Potuz
29953cb734
Refactor Sync Committee Rewards ( #11696 )
2022-11-27 11:06:32 -08:00
Potuz
c67b000633
add test
2022-11-27 13:07:50 -03:00
Potuz
02f7443586
Refactor Sync Committee Rewards
2022-11-27 09:04:03 -03:00
Nishant Das
a23a5052bc
Add Gossip Handler For BLS To Execution Changes ( #11690 )
2022-11-26 11:07:05 -08:00
terence tsao
6275e7df4e
Clean up execution engine
2022-11-25 17:20:28 -08:00
terencechain
1b6b52fda1
Add PayloadAttribute superset and use it for engine-api ( #11691 )
2022-11-25 17:12:55 -08:00
Potuz
5fa1fd84b9
Hook the BLSTOExecution Pool to the proposer
2022-11-25 09:33:17 -03:00
nisdas
bd0c9f9e8d
fix
2022-11-25 09:06:59 -03:00
Potuz
2532bb370c
Merge branch 'develop' into capella
2022-11-25 08:16:32 -03: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
nisdas
12efc6c2c1
make it reject
2022-11-24 22:21:12 +08:00
nisdas
a6cc9ac9c5
add sig validation
2022-11-24 22:19:55 +08:00
nisdas
031f5845a2
add gossip handler for bls change object
2022-11-24 21:22:18 +08:00
nisdas
b88559726c
Merge branch 'develop' of https://github.com/prysmaticlabs/geth-sharding into capella
2022-11-24 20:05:41 +08: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
terence tsao
ca6ddf4490
Add and use send blocks and sidecars requests
2022-11-23 16:11:06 -08: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
terence tsao
3ebb2fce94
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-11-23 14:21:45 -08: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
nisdas
62f6b07cba
fix gossip registration
2022-11-23 20:10:44 +08:00
terence tsao
f956f1ed6e
Handle capella version for packing atts
2022-11-22 17:21:21 -08:00
terence tsao
1c0fa95053
Fix forkchoice test
2022-11-22 17:09:34 -08:00
terence tsao
04bf4a1060
Clean up
2022-11-22 15:38:24 -08:00
terence tsao
ae276fd371
Add mainnet spec tests
2022-11-22 10:53:47 -08:00
terence tsao
104bdaed12
Merge branch 'capella' of github.com:prysmaticlabs/prysm into eip4844
2022-11-22 09:43:43 -08: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
terence tsao
089a5d6ac2
Migrate from geth's kzg lib to go-kzg/eth (Thanks @roberto-bayardo)
2022-11-22 08:51:45 -08:00
Potuz
16b0820193
Merge branch 'develop' into capella
2022-11-22 13:43:03 -03:00
Potuz
4b02267e96
add more minimal fixes
2022-11-22 13:34:33 -03:00
Potuz
746584c453
fix missing minimal test
2022-11-22 13:34:33 -03: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
Potuz
b56daaaca2
Fix empty withdrawals slice
2022-11-22 10:38:42 -03: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
terence tsao
b7a6fe88ee
Update block and sidecar gossip conditions
2022-11-21 14:38:44 -08: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
terence tsao
22d1c37b92
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-20 19:22:30 -08: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
terence tsao
78a393f825
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-18 13:48:40 -08: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
terence tsao
ac8290c1bf
Port over shared kzg functions and updated trusted setup
2022-11-18 10:55:35 -08:00
terence tsao
5d0662b415
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-18 10:00:32 -08: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
terence tsao
931e5e10c3
Fix mainnet fork transition tests
2022-11-16 08:49:06 -05: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
c172f838b1
Mark capella fields as dirty
2022-11-15 09:58:34 -05:00
Potuz
c07ae29cd9
move MaxWithdrawalsPerPayload to fieldparams
2022-11-14 22:59:31 -05:00
Potuz
466fd359a2
Fix expected_withdrawals ( #11662 )
2022-11-14 21:33:40 -05:00
Potuz
214c9bfd8b
fix bls_to_execution_changes
2022-11-14 16:41:17 -05:00
Potuz
716140d64d
add bls_to_execution_change tests
2022-11-14 16:26:39 -05:00
Potuz
088cb4ef59
fix expected_withdrawals
2022-11-14 14:50:41 -05:00
terencechain
b5f8e69b6b
Add capella to epoch precompute ( #11661 )
2022-11-14 10:05:58 -05:00
terence tsao
fa33e93a8e
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-14 08:53:15 -05:00
Potuz
d1472fc351
Add withdrawals operations tests
2022-11-13 08:54:59 -03:00
terence tsao
5c8c0c31d8
Merge branch 'capella-withdrawal-minimal' into capella
2022-11-12 22:06:43 -08:00
terence tsao
7f3c00c7a2
Can build
2022-11-12 22:06:22 -08:00
terencechain
c180dab791
Merge branch 'develop' into capella
2022-11-12 18:28:18 -08:00
terencechain
cf466702df
Capella: validator log withdrawals ( #11657 )
...
* Capella: validator log withdrawals
* Capella: validator log withdrawals
2022-11-13 02:26:49 +00:00
terence tsao
f24acc21c7
Fix bazel
2022-11-12 17:43:19 -08:00
terence tsao
40b637849d
Fix miminal capella tests
2022-11-12 17:26:05 -08:00
terence tsao
e7db1685df
Add mainnet capella tests
2022-11-12 17:13:26 -08:00
terence tsao
eccbfd1011
Add shared capella spec tests helpers
2022-11-12 17:13:16 -08:00
terence tsao
90211f6769
Fix prev epoch attested precompute
2022-11-12 17:12:29 -08:00
terence tsao
edc32ac18e
Fix slashing quotient
2022-11-12 17:12:04 -08:00
terence tsao
fe68e020e3
Add selector with minimal withdrawal size
2022-11-12 16:18:16 -08:00
terence tsao
81e1e3544d
Add mainnet ssz vectors
2022-11-12 15:50:07 -08:00
Potuz
09372d5c35
Revert "added mainnet ssz tests"
...
This reverts commit 078a89e4ca .
2022-11-12 18:40:28 -03:00
Potuz
078a89e4ca
added mainnet ssz tests
2022-11-12 18:39:11 -03:00
Potuz
dbc6ae26a6
Add minimal support for capella spec tests
...
Fixed many issues about hashing
Added fork typing in the state replayer
2022-11-12 18:18:35 -03:00
Potuz
b6f429867a
Merge branch 'develop' into capella
2022-11-12 16:35:20 -03: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
Potuz
09f50660ce
Merge branch 'develop' into capella
2022-11-12 11:51:06 -03:00
Potuz
189825b495
fix withdrawal hashing
2022-11-11 23:21:41 -03: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
terence tsao
441cad58d4
Merge commit 'e03de47db7b782bdf7dc8d9b42749eb2a236cdea' into eip4844
2022-11-11 09:18:57 -08:00
terence tsao
1277d08f9e
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-11 08:46:39 -08:00
terence tsao
e03de47db7
Ops, wrong branch
2022-11-11 08:45:22 -08:00
Potuz
764b7ff610
Don't build capella payload twice
2022-11-11 10:47:29 -03: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
terence tsao
307be7694e
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-09 16:44:34 -08:00
terence tsao
c76ae1ef39
Add beacon_block_and_blobs_sidecar gossip
2022-11-09 16:43:26 -08:00
Potuz
d499db7f0e
Merge branch 'develop' into capella
2022-11-09 21:27:18 -03: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
terence tsao
a894b9f29a
Merge branch 'develop' of github.com:prysmaticlabs/prysm into eip4844
2022-11-09 14:49:18 -08:00
terence tsao
902e6b3905
Update to use latest kzg library
2022-11-09 10:17:27 -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
Potuz
ed2d1c7bf9
Merge branch 'develop' into capella
2022-11-09 09:14:55 -03:00
nisdas
14b73cbd47
register flag
2022-11-09 08:48:36 +08: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
terence tsao
a39c7aa864
Add rpc blobs sidecars by range
2022-11-07 14:53:12 -08:00
terence tsao
170bc9c8ec
Network changes
2022-11-07 14:43:46 -08: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
terence tsao
365c01fc29
Add tests
2022-11-07 06:58:24 -08: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
Potuz
3124785a08
Merge branch 'develop' into capella
2022-11-07 10:08:09 -03: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
Potuz
60e6306107
working withrawals initial commits
2022-11-06 16:53:57 -03:00
terence tsao
42ccb7830a
Add Capella DB changes
2022-11-06 15:25:34 -03:00
Potuz
0bb03b9292
fix marshalling and engine calls
2022-11-06 15:24:22 -03:00
nisdas
ed6fbf1480
stupid bug
2022-11-07 00:18:01 +08:00
nisdas
477cec6021
wei it
2022-11-07 00:13:12 +08:00
nisdas
924500d111
add unmarshal
2022-11-06 23:57:37 +08:00
Potuz
0677504ef1
Revert "proposer changes"
...
This reverts commit ca2a7c4d9c .
2022-11-06 12:16:53 -03:00
Potuz
ca2a7c4d9c
proposer changes
2022-11-06 12:14:17 -03:00
Potuz
28606629ad
marshalling stub
2022-11-06 12:03:25 -03:00
Potuz
c817279464
fix capella payload
2022-11-06 11:14:39 -03:00
Potuz
009d6ed8ed
proposer logic
2022-11-06 10:49:32 -03:00
Potuz
5cec1282a9
FCU two versions
2022-11-06 10:22:45 -03:00
Potuz
340170fd29
propose block V2
2022-11-06 09:42:20 -03:00
Potuz
7ed0cc139a
marshalling first attempt
2022-11-06 07:47:43 -03:00
Potuz
2c822213eb
rpc changes
2022-11-06 00:24:56 -03: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
terence tsao
0894b9591c
Add Capella DB changes
2022-11-05 13:27:18 -07:00
terence tsao
f0ca45f9a2
Json marshal and unmarshal blob bundle
2022-11-05 12:45:14 -07:00
terence tsao
afc48c6485
State change and config changes for Capella
2022-11-05 12:45:01 -07:00
terence tsao
93dce8a0cb
P2p changes for Capella fork
2022-11-05 12:44:46 -07:00
terence tsao
149ccdaf39
Add engine call for get payload
2022-11-05 11:00:13 -07:00
Potuz
c08bb39ffe
add fork versions
2022-11-05 13:38:11 -03:00
Potuz
5083d8ab34
propose capella blocks
2022-11-05 12:38:27 -03:00
Potuz
7552a5dd07
capella fork logic
2022-11-05 07:33:20 -03:00
Potuz
c93d68f853
Capella state transition
2022-11-05 06:06:15 -03:00
terence tsao
2b74db2dce
Add blob database methods
2022-11-04 13:46:01 -07:00
terence tsao
cc6c91415d
Add validate blobs sidecar
2022-11-04 13:06:15 -07:00
terence tsao
6d7d7e0adc
Add excessive blobs to execution payload
2022-11-04 09:48:39 -07:00
terence tsao
2105d777f0
Add blobs kzg to Capella beacon block
2022-11-04 09:33:01 -07:00
terence tsao
14338afbdb
Update go.mod
2022-11-04 08:52:16 -07: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
Potuz
3e8aa4023d
Fix config test and export method
2022-11-04 11:59:49 -03:00
Potuz
b443875e66
Implement get_expected_withdrawals
2022-11-04 11:45:45 -03: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