Kasey Kirkham
30e9022775
fix bug using wrong batch var, separate funcs
2023-09-12 08:26:39 -05:00
Kasey Kirkham
a5073a9092
backfill service
2023-09-11 16:06:50 -05:00
terencechain
35fc1c976f
Improved Logging for Blob Sidecar ( #12883 )
...
* feat: improve blob sidecar logs
* Kasey's feedback
2023-09-11 20:46:06 +00:00
james-prysm
b0423a94af
REST implementation of /eth/v1/beacon/states/{state_id}/fork ( #12835 )
...
* fork state endpoint
* removing generated files
* fixing linting
* fixing tests using old type
* moving the response object to a new file under shared
* fixing test
* gaz
* fixing generated code
* gaz
* fixing linting
* rolling back some changes
* reverting generated changes
* fixing spacing
* linting
* updating protos after develop merged
* addressing radek's comments
* addressing more radek comments
2023-09-11 18:57:17 +00:00
james-prysm
6c16e90fe9
deneb - validator beacon rest apis ( #12871 )
...
* wip
* adding tests for deneb
* adding deneb to get block
* Update validator/client/beacon-api/get_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/propose_beacon_block.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-09-11 16:50:55 +00:00
kasey
c0a01bb859
Allow equivocating blobs ( #12880 )
...
* add eq test
* allow blob at diff roots; defer pruning
* avoid deferred pruning controversy
* lint: already a slice
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-09-10 02:23:37 +00:00
Bharath Vedartham
2a408a0dd8
don't send pre-genesis signed validator registration objects to relayers ( #12847 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-09 18:53:02 +00:00
Raul Jordan
af16c71d6e
Add Delay Option for Genesis to Prysmctl ( #12878 )
...
* add delay option to prysmctl for genesis time
* revert bazel
2023-09-08 20:44:09 +00:00
kasey
ec954ec9a6
function to merge and validate saved/new blobs ( #12868 )
...
* function to merge and validate saved/new blobs
* Make it an error to call save with an empty slice
* rename func to match type, undo var rename
* satisfy deepsource; cheap len check before compare
---------
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-09-08 18:33:51 +00:00
Sammy Rosso
7781a3186b
HTTP implementation of /eth/v1/config/deposit_contract ( #12872 )
...
* Add endpoint
* Protos
* Forgot to add endpoint
* fix proto double import
* Remove old test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-08 17:05:29 +00:00
terencechain
440cf32966
fix: correct blob sidecar count ( #12865 )
...
* fix: update blob sidecar count
* fix: use beacon config instead of network config
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-08 15:37:53 +00:00
terencechain
13c69af717
fix: use correct blob root in blobs sidecar ( #12866 )
...
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
2023-09-08 14:58:33 +00:00
kasey
ca88e59ee3
Tests for init-sync DA ( #12873 )
...
* test coverage for commitmentsToCheck
* test for WithinDAPeriod
* gaz
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-09-08 10:47:34 +00:00
kasey
809a67ebcc
reject blocks with more commitments than spec ( #12863 )
...
* reject blocks with more commitments than spec
* add details of excess commitments to error
* good catch, linter
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-09-07 20:21:03 +00:00
Stefan
f17898f658
add a RW lock for duties ( #12861 )
...
* add a RW lock for duties
* remove superfluous rlock
* remove defer from if
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-09-07 18:23:10 +00:00
Nishant Das
d506f9b2da
Fix Execution Block Unmarshalling in Deneb ( #12860 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-07 16:52:02 +00:00
Sammy Rosso
d55757500f
Integrate EIP-4881 Deposit Tree Into Prysm via a Feature Flag ( #11942 )
...
* 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
* integrate 4881
* edits
* added in deposit tree fetcher
* add file
* Add remaining fetcher functions
* Add new file for inserter functions
* Fixes and additional funcs
* Cleanup
* Add
* Graph
* pushed up edits
* fix up
* Updates
* Add EIP4881 toggle flag
* Add interfaces
* Fix tests
* More changes
* Fix
* Remove generated graph
* Fix spacing
* Changes
* Fixes
* Changes
* Test Fix
* gaz
* Fix a couple tests
* Fix last tests
* define protos
* proto methods
* pushed
* regen
* Add proto funcs
* builds
* pushin up
* Fix and cleanup
* Fix spectest
* General cleanup
* add 4881 to e2e
* Remove debug statements + remove test skip
* Implement first set of missing methods
* Replace Zerohashes + cleanup
* gazelle
* fmt
* Put back defensive check
* Add error logs
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
* Lint fixes
* build
* Remove cancel
* Update beacon-chain/deterministic-genesis/service.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update beacon-chain/cache/depositsnapshot/deposit_inserter.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Cleanup
* Fix panic when DepositSnapshot is nil on init
* Gofmt
* Fix RootEquivalence test
* Gofmt
* Add missing comments
* Nishant' review
* Add Insert benchmarks
* fix up copy method
* Fix deep copy
* Fix conflicts
* Return error
* Fix linter issues
* add in migration logic
* Cleanup + tests
* fix
* Fix incorrect index in test
* Fix linter
* Gofmt
* fix it
* fixes for off by 1
* gaz
* fix cast
* fix it
* remove ErrZeroIndex
* Fix merkle_tree_test
* add fallback
* add fix for insertion bug
* add many fixes
* fix empty snapshot
* clean up
* use feature
* remove check
* fix failing tests
* skip it
* fix test
* fix test again
* fix for the last time
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fix it
* remove cancel
* fix for voting
* addressing more comments
* fix err
* potuz's review
* one more test
* fix bad test
* make 4881 part of dev mode
* add workaround for new trie
* comment
* preston's review
* james's review
* add comment
* james review
* preston's review
* remove skipped test
* gaz
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: nisdas <nishdas93@gmail.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-09-07 03:19:32 +00:00
james-prysm
41dff74e90
fix phase0 block parsing on submitblock ( #12857 )
...
* adding fixes to address new changes in deneb
* removing logs
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-09-07 01:49:18 +00:00
kasey
4f48c551da
Fix 12784 ( #12822 )
...
* add DA check to batched sync path
also fixes a da period calculation bug in the reg sync path.
* update comment
function original took a slot instead of an epoch, but was rewritten to use epoch to avoid the need to import the slot math package
Co-authored-by: terencechain <terence@prysmaticlabs.com >
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-09-07 00:26:28 +00:00
terencechain
2f6dcb34b6
fix(builder): handle no blob bundle ( #12838 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-06 20:59:42 +00:00
kasey
a81518ca91
wrap ctx.Err, not the random last value of err ( #12859 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-09-06 15:12:09 -05:00
Preston Van Loon
2b4c83b739
db: Use blobRotatingKey alias for readability ( #12855 )
2023-09-06 15:45:14 +00:00
terencechain
e3527e1e48
db: fix save blob sidecar using wrong prefix ( #12849 )
...
* db: fix save blob sidecar using wrong prefix
* tests: add more
* tests: check blobs no longer there
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-09-06 15:25:26 +00:00
terencechain
2e3b013ae7
fix(sync/rpc): use blobs by root when requesting block ( #12837 )
...
* fix(sync/rpc): use blobs by root when requesting block
Fix: use blobs by root for pending block queue (option B)
* fix: skip htr if block is older than deneb
2023-09-06 13:52:42 +00:00
Radosław Kapka
34f507f4b2
HTTP implementation of /eth/v1/beacon/pool/sync_committees ( #12782 )
...
* impl
* protos
* tests
* register endpoint
* test fix
* test fix
* remove path
* more test fixes
* cleanup
* bzl
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-01 17:58:50 +00:00
terencechain
3c98c27a32
chore(engine): remove debug log ( #12836 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-01 13:22:05 +00:00
james-prysm
9a7393a2e3
Deneb produce blockv3 ( #12708 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-09-01 12:51:27 +02:00
ICHINOSE Shogo
3a8be9fcf8
fix fuzz testing ( #12790 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-31 21:08:27 +02:00
Preston Van Loon
a3212a5428
config/params: Require placeholderFields to be sorted and distinct ( #12834 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-31 18:06:45 +00:00
james-prysm
bfecbf97db
REST implementation of /eth/v1/validator/prepare_beacon_proposer ( #12781 )
...
* implementing prepare beacon proposer endpoint in full rest
* fixing type naming on validator client
* fixing linting
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing feedback
* fixing unit tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-31 17:02:39 +00:00
terencechain
d08e85b818
chore: improve att error ( #12813 )
2023-08-31 08:41:57 -05:00
terencechain
3d74ecb6d4
fix: add back non parallel proposer ( #12811 )
2023-08-31 08:41:57 -05:00
kasey
d0ae692f4c
give deneb it's own field count config value ( #12806 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
terencechain
b335eba625
fix: pbv2 condition ( #12812 )
2023-08-31 08:41:57 -05:00
terencechain
cd340cb0c8
fix: set current and prev epoch participations ( #12814 )
2023-08-31 08:41:57 -05:00
kasey
34b995d0de
only initialize kzg if it will be used ( #12803 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
kasey
5cf7b0458f
re-use metadata bucket, group db constants ( #12804 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
kasey
65aaf4878c
Nishant's feedback, consistent tmp var ( #12805 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
kasey
c32fe2e71b
Save blob last stage init sync ( #12764 )
...
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-08-31 08:41:57 -05:00
kasey
7068f97245
binary search is the wrong tool for the job, derp ( #12757 )
...
* binary search is the wrong tool for the job, derp
* restore protection from array index panics
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
Potuz
3a1b4a19c2
Blob channel ( #12753 )
...
* Add a new blob channel
* fix mock
* reset the channel
* keep a map of channels
* gazelle
* do not overwrite map
* remove pre-declaration
2023-08-31 08:41:57 -05:00
terencechain
7ed2a731d3
test: skip deneb e2e test with tracking ( #12751 )
...
* test: skip deneb e2e test with an issue
* Unskip more stuff
2023-08-31 08:41:57 -05:00
terencechain
f5d5a506ff
fix: validator returning the right # of blobs ( #12738 )
2023-08-31 08:41:57 -05:00
terencechain
f49b2b9657
Update gossip_scoring_params.go ( #12732 )
2023-08-31 08:41:57 -05:00
terencechain
5179305071
feat: save blobs to db for subscriber ( #12734 )
2023-08-31 08:41:57 -05:00
james-prysm
726601221e
fixing route handler and small cleanup items ( #12726 )
2023-08-31 08:41:57 -05:00
terencechain
83aaf043e4
Fix: payload attribute v3 return nil ( #12736 )
2023-08-31 08:41:57 -05:00
terencechain
96a9a6fc16
feat: add validator blob signing ( #12730 )
2023-08-31 08:41:57 -05:00
terencechain
6314f7fcbf
feat: log blob commitment count ( #12723 )
2023-08-31 08:41:57 -05:00
terencechain
d210a2368f
feat: implement eip4788 ( #12570 )
2023-08-31 08:41:57 -05:00
terencechain
708aee0fcb
test:beta.1 deneb tests ( #12680 )
2023-08-31 08:41:57 -05:00
Potuz
57b8da08d1
Validate blobs feature ( #12574 )
2023-08-31 08:41:57 -05:00
james-prysm
70997e2489
renaming data to blobs in execution payload ( #12664 )
2023-08-31 08:41:57 -05:00
james-prysm
f602a44bee
implementing publishblockv2 for deneb ( #12662 )
...
fixing broken test (#12673 )
2023-08-31 08:41:57 -05:00
terencechain
6402301871
Test: add deneb spec test version beta.0 ( #12610 )
2023-08-31 08:41:57 -05:00
kasey
3476112d63
sync blobs in initial-sync ( #12522 )
2023-08-31 08:41:57 -05:00
Preston Van Loon
48f1f69695
Deneb: Implement EIP-7044 ( #12577 )
2023-08-31 08:41:57 -05:00
terencechain
f3ca945bb4
feat: add builder override ( #12601 )
2023-08-31 08:41:57 -05:00
terencechain
2bc91d20f9
feat: EIP7045 increase max att inclusion slot ( #12565 )
2023-08-31 08:41:57 -05:00
kasey
30ccff4465
support deneb in fullPayloadFromPayloadBody ( #12649 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
james-prysm
4c1f398a96
adding ssz handling to produce block endpoint for deneb ( #12632 )
2023-08-31 08:41:57 -05:00
james-prysm
5a62aa4c07
adding ssz capabilities for deneb publish block v1 ( #12622 )
2023-08-31 08:41:57 -05:00
terencechain
b8fb602fc4
fix: use hexutil bytes for blobs bundle ( #12623 )
2023-08-31 08:41:57 -05:00
terencechain
a40640c9b9
fix: add blob batch flags to main/usage ( #12614 )
2023-08-31 08:41:57 -05:00
james-prysm
a41c01cb5e
migrating get blob from eip4844 and deneb-integration ( #12603 )
2023-08-31 08:41:57 -05:00
james-prysm
6050501eb1
migrating Beacon API code from eip4844 to deneb-integration ( #12568 )
2023-08-31 08:41:57 -05:00
terencechain
590309e3fc
feat(deneb): proposer rpc to handle builder flow ( #12554 )
2023-08-31 08:41:57 -05:00
terencechain
03fb7ed20c
fix: devnet6 interop issues ( #12545 )
2023-08-31 08:41:57 -05:00
terencechain
95106a7533
feat(prysmctl): request blobs ( #12544 )
2023-08-31 08:41:57 -05:00
kasey
642988f977
ssz detection support for deneb ( #12537 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
kasey
2121d1f4f4
Integrate generate genesis ( #12523 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
kasey
87cd96afd3
BlobSidecarsByRoot ( #12420 )
...
* BlobSidecarsByRoot RPC handler
* BlobSidecarsByRange rpc handler (#12499 )
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-31 08:41:57 -05:00
james-prysm
8a67f616f0
introducing deneb changes and blobs to builder ( #12477 )
2023-08-31 08:41:57 -05:00
terencechain
bcdf1c92a7
feat(config): update max blobs per block to 6 ( #12512 )
2023-08-31 08:41:57 -05:00
terencechain
ff6b670d95
feat(blockchain): update payload attribute for deneb ( #12509 )
2023-08-31 08:41:57 -05:00
terencechain
2be87f623b
feat(rpc/validator): stream and use deneb block ( #12510 )
2023-08-31 08:41:57 -05:00
terencechain
5b1634b335
Update ProposeBeaconBlock Prysm RPC for Deneb (Non builder) ( #12495 )
2023-08-31 08:41:57 -05:00
terencechain
2dadf36fa9
Add data gas used field to execution payload ( #12488 )
2023-08-31 08:41:57 -05:00
terencechain
c10e56513d
Proposer RPC: GetBlock for Deneb ( #12481 )
2023-08-31 08:41:57 -05:00
terencechain
7670fe7d6f
Update block's commitment size ( #12470 )
2023-08-31 08:41:57 -05:00
terencechain
5deb1f755b
Deneb: implements engine API end points ( #12384 )
2023-08-31 08:41:57 -05:00
james-prysm
e2750646fa
validator signing deneb ( #12449 )
...
* validator signing feature migrated from eip4844 branch, added unit tests
* Update proto/prysm/v1alpha1/beacon_block.proto
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-31 08:41:57 -05:00
terencechain
e0c69396ed
Add Deneb upgrade function ( #12433 )
2023-08-31 08:41:57 -05:00
terencechain
c03571138c
P2P: broadcast blob ( #12419 )
2023-08-31 08:41:57 -05:00
terencechain
e3ac8b7745
Add Blob Gossip ( #12413 )
2023-08-31 08:41:57 -05:00
Radosław Kapka
319daa7f6c
Deneb integration: Beacon API getStateV2 ( #12424 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Fix Migration Of State (#12423 )
2023-08-31 08:41:57 -05:00
terencechain
43e8ae4dca
Deneb DB methods ( #12379 )
2023-08-31 08:41:57 -05:00
terencechain
61283e51e1
Add Deneb state ( #12375 )
2023-08-31 08:41:57 -05:00
terencechain
8e91df9155
Add deneb block to consensus types ( #12368 )
2023-08-31 08:41:57 -05:00
terencechain
bd86c7c8f3
Add deneb protobufs ( #12363 )
2023-08-31 08:41:57 -05:00
Raul Jordan
7bc44d9cfe
Include Validation Error in ForkchoiceUpdatedResponse ( #12828 )
...
* include validation error in engine resp
* add to new payload
2023-08-29 11:28:44 -07:00
Preston Van Loon
63126fd51f
Holesky support ( #12821 )
...
* Add holesky config
Copy config/params from deneb-integration
* Add --holesky flag
* Handle no genesis block error and suggest to user a workaround
2023-08-29 14:27:50 +00:00
Delweng
0ea0afb494
beacon-chain/execution: use pointer instead of value to reduce copy ( #12818 )
...
* beacon-chain/execution: use pointer instead of value to reduce value copy
Signed-off-by: jsvisa <delweng@gmail.com >
* beacon-chain/execution: fix unit test
Signed-off-by: jsvisa <delweng@gmail.com >
---------
Signed-off-by: jsvisa <delweng@gmail.com >
2023-08-29 13:24:54 +00:00
m3diumrare
286f6a9931
Minor typo in CLI flag ( #12808 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-25 21:14:08 +00:00
Dhruv Bodani
4ef29a24e4
Add REST implementation of node version endpoint ( #12809 )
2023-08-25 13:14:08 +00:00
Dhruv Bodani
30eaddf48f
Add support for validator count endpoint ( #12752 )
2023-08-24 23:11:41 +02:00
Nishant Das
bcf728b9ff
Fix Sepolia Version ( #12792 )
2023-08-24 10:07:41 +00:00
terencechain
6f6c06a95b
chore: remove unused proto import ( #12787 )
2023-08-24 01:09:06 +00:00
Preston Van Loon
5433502055
Add deneb config/params from deneb-integration ( #12783 )
...
Co-authored-by: Terence Tsao <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-08-23 20:07:25 +00:00
Radosław Kapka
f0d54254ed
HTTP implementation of voluntary exit pool endpoints ( #12777 )
...
* impl
* protos
* tests
* review
* test fix
2023-08-23 07:51:03 +00:00
james-prysm
da244c9e9a
adding register validator route ( #12776 )
2023-08-22 15:44:00 +00:00
Sammy Rosso
e49f1321b7
HTTP Beacon API: /eth/v1/beacon/blocks/{block_id}/root ( #12716 )
...
* Initial setup
* Fix all tests and handler func
* Cleanup
* Fix the tests
* Remove middleware endpoint
* Add endpoint
* Switch query param to path
* Fix e2e test
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek & James Reviews
* Check blockId length
* Add length check
* Fix
* Revert "Fix e2e test"
This reverts commit 6289c1de5c .
* use v1alpha1 server to get root
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-22 06:18:02 +00:00
Raul Jordan
5eb8b88073
Update Fuzz List Timeout Github Workflow ( #12768 )
2023-08-22 04:48:13 +00:00
james-prysm
b0fc368185
local-block-value-boost flag from float64 to uint64 [BREAKING CHANGE] ( #12765 )
2023-08-21 22:34:34 +00:00
Raul Jordan
777ca06b78
Add Github Go Fuzzing Workflow With Cron Schedule ( #12756 )
...
* add in github workflow for fuzzing that runs with cron
* every day
* go version
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-21 16:09:51 +00:00
james-prysm
4d520460e0
REST implementation of /eth/v1/validator/register_validator ( #12758 )
...
* migrating v2 to http native url
* removing old code
* gaz
* updating beacon api validator client code
* fixing tests
2023-08-21 15:42:43 +00:00
Potuz
27d8b1c358
add more descriptive log on FFG-LMD consistency ( #12763 )
...
* add more descriptive log on FFG-LMD consistency
* Update beacon-chain/blockchain/receive_attestation.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update beacon-chain/blockchain/receive_attestation.go
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-21 14:06:59 +00:00
terencechain
17500dcfca
Fix: download genesis log ( #12759 )
2023-08-20 14:46:40 -07:00
Radosław Kapka
0452fd02e8
HTTP Beacon API: /pool/attestations ( #12735 )
...
* attestations
* post
* tests
* Revert "Auxiliary commit to revert individual files from afede4d949a7519902be2f1e0c485306c4ccdea7"
This reverts commit 9de74879e0c41e43183da2fa7e63094cac030abe.
* remove test
* remove redundant return
* Update beacon-chain/rpc/eth/beacon/handlers_pool.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* review
* include index in broadcast log
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-18 14:29:40 +00:00
terencechain
09d761e1ab
fix(proposer): verify attestations without mutating state ( #12704 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-17 16:37:19 +00:00
Potuz
9a741c52d1
Remove quadratic loops when exiting ( #12737 )
...
* Remove quadratic loops when exiting
* unit test
* fix tests
* lint
* duplicated imports
* handle new error
* revert spurious unit test
* radek's review
* fix name
* use errors.Is
* fix error check
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-17 15:38:46 +00:00
Sammy Rosso
baed8da9c0
HTTP Beacon API: /eth/v1/validator/sync_committee_contribution ( #12698 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-08-17 12:01:24 +02:00
Matthew Obwaya
33410a0ec1
Remove uses of deprecated go_embed rules_go ( #12719 )
...
* Remove prysm_web_ui http_archive from WORKSPACE
* Remove go_embed_data_dependencies() from WORKSPACE
* Remove go_embed_data target from validator/web/BUILD.bazel
* Remove # gazelle:ignore site_data.go annotation from validator/web/BUILD.bazel
* Run bazel run //:gazelle
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-08-16 15:47:09 +00:00
Nishant Das
cda1797d4e
Remove Alpine Images From Prysm ( #12749 )
2023-08-16 14:01:09 +00:00
Potuz
e7f6048b8c
Use last optimistic status on batches ( #12741 )
...
* Use last optimistic status on batches
* more descriptive errors
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-16 01:40:36 +00:00
Potuz
418959565f
set optimistic status in head at init sync ( #12748 )
2023-08-16 00:47:56 +00:00
Raul Jordan
8229f3eb84
Prysm Web UI Release v2.0.4 ( #12746 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2023-08-15 21:11:44 +00:00
Nishant Das
4098d098aa
Shift Error Logs To Debug ( #12739 )
2023-08-15 14:44:54 +00:00
anukul
46c72798c7
HTTP Beacon API: /eth/v1/validator/attestation_data ( #12634 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-14 17:56:36 +03:00
Preston Van Loon
a5474200de
Update geth to 1.12.2 ( #12731 )
2023-08-14 17:48:11 +08:00
Preston Van Loon
a85b4445fc
Update bazel to 6.3.2 ( #12725 )
...
* Update bazel version to v6.3.2
* Disable legacy external runfile generation for CI
* Revert "Disable legacy external runfile generation for CI"
This reverts commit 1911f293d6 .
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-11 19:08:33 +00:00
Preston Van Loon
751dd847b8
Update rules go & gazelle ( #12721 )
...
* Update rules_go to v0.40.0
* Update gazelle to v0.26.0
* Update gazelle to v0.27.0
* Update gazelle to v0.28.0
* Update gazelle to v0.29.0
* Update gazelle to v0.30.0
* Update gazelle to v0.31.0
2023-08-11 16:39:35 +00:00
Preston Van Loon
aeb7a45864
Update geth to 1.12.1 ( #12718 )
...
* Update geth to 1.12.1
* Fix //cmd/validator/flags:go_default_test
* fix //beacon-chain/node:go_default_test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-11 10:45:42 +00:00
Radosław Kapka
e952fd802b
HTTP Beacon API: /eth/v1/validator/beacon_committee_subscriptions ( #12700 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* implementation
* tests
* test fixes
* review
* clear cache in validator tests
* add missing stuff
* compilation fix
* remove `required` from bool
* remove time fetcher from tests
* no need to convert
* add conversion
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-10 18:00:19 +00:00
Nishant Das
b511eef848
Update BLST to v0.3.11 ( #12717 )
...
* add changes
* Remove server.c exclusion in headers
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-08-10 22:51:19 +08:00
dependabot[bot]
7aa043892b
Bump github.com/libp2p/go-libp2p from 0.27.5 to 0.27.8 ( #12709 )
...
* Bump github.com/libp2p/go-libp2p from 0.27.5 to 0.27.8
Bumps [github.com/libp2p/go-libp2p](https://github.com/libp2p/go-libp2p ) from 0.27.5 to 0.27.8.
- [Release notes](https://github.com/libp2p/go-libp2p/releases )
- [Changelog](https://github.com/libp2p/go-libp2p/blob/master/CHANGELOG.md )
- [Commits](https://github.com/libp2p/go-libp2p/compare/v0.27.5...v0.27.8 )
---
updated-dependencies:
- dependency-name: github.com/libp2p/go-libp2p
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* gazelle and remove libp2p patch. The patch is merged upstream as of this version
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-08-09 17:24:07 +00:00
Radosław Kapka
36be057a11
HTTP Beacon API: /eth/v1/node/syncing ( #12706 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-09 17:23:59 +02:00
Radosław Kapka
049e608c75
HTTP Beacon API: /eth/v1/validator/sync_committee_subscriptions ( #12689 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* HTTP Beacon API: `/eth/v1/validator/sync_committee_subscriptions`
* pointers, pointers everywhere
* fix
* fix after merge
* review
* James' review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-08 22:54:04 +00:00
Preston Van Loon
4541598850
Update go to 1.20.7 ( #12707 )
2023-08-08 21:39:22 +00:00
Sammy Rosso
8c08854dd0
Fix prysmctl writing empty JSON/YAML files ( #12599 )
...
* Setup
* add in marshalable
* Cleanup
* Raul' review
* Remove yaml Marshaler
* minimal fixes
* same imports
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-08-08 15:20:41 +00:00
m3diumrare
d2ff995eb2
Fix reported effective balance for unknown/pending validators ( #12693 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-07 09:19:02 -05:00
anukul
56a0315dde
fix: set CoreService in beaconv1alpha1.Server ( #12702 )
2023-08-06 18:16:54 -07:00
anukul
634133fedc
use struct in beacon-chain/rpc/core to store dependencies ( #12701 )
2023-08-05 22:54:12 +02:00
terencechain
c1c1b7ecfa
Feat: aggregate parallel default ( #12699 )
2023-08-04 16:03:10 +00:00
Nishant Das
9a4670ec64
add changes ( #12697 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-08-04 22:05:47 +08:00
Radosław Kapka
a664a07303
Multi Value Slice ( #12616 )
...
* multi value slice
* extract helper function
* comments
* setup godoc fix
* value benchmarks
* use guid
* fix bug when deleting items
* remove callback and rename MultiValue
* godoc
* tiny change
* Nishant's review
* typos
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-04 12:42:54 +00:00
Potuz
dd14d5cef0
refactor slot tickers with intervals ( #12440 )
...
* refactor slot tickers with intervals
* GoDoc
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-03 20:55:16 -03:00
Radosław Kapka
3a09405bb7
HTTP Beacon API: /eth/v1/validator/aggregate_and_proofs ( #12686 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
* in progress
* implementation
* remove test file
* remove duplicate
* tests
* review
* test fixes
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 22:24:23 +00:00
terencechain
cb59081887
Remove: span for convert to indexed attestation ( #12687 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 16:17:46 +00:00
Nishant Das
a820d4dcc8
Minor Optimization on InnerShuffleList ( #12690 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-03 06:56:07 +00:00
terencechain
dbc17cf2ca
Fix: use correct context for UpdateCommitteeCache ( #12691 )
2023-08-03 06:00:58 +00:00
terencechain
d38762772a
test: add execution payload operation tests ( #12685 )
...
* test: add execution payload operation tests
* thanks!
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Update testing/spectest/shared/bellatrix/operations/execution_payload.go
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-02 08:16:46 +00:00
Potuz
e5d1eb885d
Update caches blocking ( #12679 )
...
* update NSC together with epoch boundary caches
* block when updating caches
* reviews
* removal of very useful helper because the reviewers requested it :)
* use IsEpochEnd
2023-08-02 05:59:09 +00:00
terencechain
a9d7701081
test: add missing random and fork transition spec tests ( #12681 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-08-01 14:08:40 +00:00
Bharath Vedartham
33abe6eb90
add metric to check if validator is in next sync commitee ( #12650 )
...
* add metric to check if validator is in next sync commitee
* Update validator/client/validator.go
* Update validator/client/metrics.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2023-08-01 08:25:10 +00:00
terencechain
c342c9a14e
fix: update nil check for new validator ( #12677 )
2023-08-01 04:13:57 +00:00
Radosław Kapka
a9b003e1fe
HTTP Beacon API: /eth/v1/validator/contribution_and_proofs ( #12660 )
...
* HTTP Beacon API: `/eth/v1/validator/contribution_and_proofs`
* add comment to invalid test case
* fix validation and test
* review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-07-31 17:32:39 +00:00
Radosław Kapka
955175b7eb
Update server-side events dependency ( #12676 )
...
* Update server-side events dependency
* go sum
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-31 15:51:19 +00:00
Potuz
c17682940e
only handle epoch boundary on canonical blocks ( #12666 )
...
* only handle epoch boundary on canonical blocks
* do not fetch headstate
2023-07-31 12:07:09 -03:00
Nishant Das
db450f53a4
Fix Update Of Committee Cache ( #12668 )
...
* fix it
* sammy's comment
* fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-28 13:34:03 +00:00
terencechain
493905ee9e
feat: add state regren duration metric ( #12672 )
2023-07-27 19:33:25 +00:00
james-prysm
e449724034
Bugfix: proposer-settings edge case for activating validators ( #12671 )
2023-07-27 16:45:16 +00:00
terencechain
a44c209be0
feat: add metric for block gossip time ( #12670 )
2023-07-27 15:17:24 +00:00
terencechain
183e72b194
fix: update epoch + 1 ( #12667 )
2023-07-27 18:53:36 +08:00
Potuz
337c254161
update shuffling caches at epoch boundary ( #12661 )
...
* update shuffling caches at epoch boundary
* move span
* do not advance to a past slot
2023-07-26 18:46:18 +00:00
james-prysm
ec60cab2bf
Bugfix: Metrics adding fix pending validators balance ( #12665 )
2023-07-26 16:09:24 +00:00
Potuz
ded00495e7
Parallelize cl el validation ( #12590 )
...
* Parallelize EL and CL block validation
* fix by Nishant
2023-07-26 12:23:51 -03:00
Nishant Das
113172d8aa
Exit Initial Sync Early ( #12659 )
...
* add check
* fix test
2023-07-26 00:38:25 +00:00
Radosław Kapka
2b40c44879
Use the correct root in consensus validation ( #12657 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-25 12:04:08 +02:00
Radosław Kapka
fc193b09bf
HTTP Beacon API: /eth/v1/validator/aggregate_attestation ( #12643 )
...
* initial implementation
* it works
* tests
* extracted helper functions
* fix code
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-24 22:16:45 +00:00
Radosław Kapka
a0d53f5155
Register GetValidatorPerformance as POST ( #12658 )
2023-07-24 21:17:08 +00:00
terencechain
ff3d2bc69f
fix: add mainnet withdrawals and bls spec tests ( #12655 )
2023-07-24 14:13:02 +00:00
Nishant Das
dd403f830c
clean up logging ( #12653 )
2023-07-24 20:29:50 +08:00
Raul Jordan
e9c8e84618
Integrate Read-Only-Lock-on-Get LRU Cache for Public Keys ( #12646 )
...
* use new lru cache
* update build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-22 04:37:53 +00:00
james-prysm
9c250dd4c2
Builder gas limit fix default to 0 in some cases ( #12647 )
...
* adding fix for nethermind's findings on gaslimit =0 on some default setups
* adding in default gaslimit check
* fixing linting on complexity
* fixing cognitive complexity linting marker
* fixing unit test and bug with referencing
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-22 03:44:50 +00:00
Potuz
f97db3b738
Different parallel hashing ( #12639 )
...
* Paralellize hashing of large lists
* add unit test
* add file
* do not parallelize on low processor count
* revert minimal proc count
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-21 20:36:20 -04:00
Radosław Kapka
43378ae8d5
Use BlockProcessed event in Beacon API ( #12625 )
...
* Use `BlockProcessed` event in Beacon API
* log error
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:26:34 +00:00
Radosław Kapka
2217b45e16
Return historical roots in Capella state ( #12642 )
...
* Return historical roots in Capella state
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 17:00:05 +00:00
james-prysm
405cd6ed86
Publish blockv2 ssz ( #12636 )
...
* wip produce block v2 ssz
* adding functions for ssz processing
* fixing linting
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing review feedback
* fixing linting
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-20 16:26:40 +00:00
terencechain
ba9bbdd6b9
Style: minor cleanups to blockchain pkg ( #12640 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-20 10:17:35 +00:00
Nishant Das
945c76132c
Add Allocation Data To Benchmark ( #12641 )
...
* add more data
* terence's review
2023-07-20 08:49:17 +00:00
Radosław Kapka
056d3ff0cc
Fix GetValidatorPerformance endpoint ( #12638 )
2023-07-19 15:29:07 +00:00
Nishant Das
d4fd3c34de
Use GetPayloadBodies in our Engine Client ( #12630 )
...
* add it to our engine client
* lint
* add better debugging info
* temp debugging
* fix
* fix it
* pretty
* dumb bug
* Revert "pretty"
This reverts commit 6a6df3cc5f .
* Revert "fix it"
This reverts commit 73dc617bb0 .
* Revert "fix"
This reverts commit 3aecdaac6d .
* Revert "temp debugging"
This reverts commit ffcd2c61a0 .
* Revert "add better debugging info"
This reverts commit 96184e8567 .
* raul's comment
* regression test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-18 15:46:23 +00:00
Sammy Rosso
4ac4d00377
Implement GetValidatorPerformance beacon chain client ( #12581 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* Implement GetValidatorPerformance
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Update + add broken test
* Gaz
* fix
* Fix test
* Create const for endpoint
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-18 08:57:54 +00:00
Radosław Kapka
ec2fda7ad9
getSyncCommitteeRewards API endpoint (#12633 )
2023-07-18 10:31:15 +02:00
Preston Van Loon
292f4de099
Update hermetic_cc_toolchain ( #12631 )
2023-07-17 14:50:45 +00:00
terencechain
145a485b75
fix(pcli): use state trie for HTR duration ( #12629 )
2023-07-15 20:39:58 -07:00
terencechain
7e474b7a30
fix: benchmark deserialize without clone and init trie ( #12626 )
...
* fix: benchmark deserialize without clone
* remove tree initialization
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-15 12:35:58 +00:00
Nishant Das
af0ee9bd16
use read-only validators ( #12628 )
2023-07-15 00:34:45 -07:00
Radosław Kapka
456ba7c498
Fix comments when receiving block ( #12624 )
2023-07-14 10:30:02 +00:00
Potuz
cd8847c53b
Add deserialization time in pcli benchmark ( #12620 )
2023-07-13 12:19:10 +00:00
Kaushal Kumar Singh
1894a124ea
Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes ( #12586 )
...
* Fix: Size of SyncCommitteeBits should be 64 bytes (512 bits) instead of 512 bytes
* Updated unit test
2023-07-13 10:43:17 +00:00
Preston Van Loon
490bd22b97
Update go version to 1.20.6 ( #12617 )
2023-07-12 19:55:33 +00:00
terencechain
f23e720a16
fix: add local boost flag to main/usage ( #12615 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-12 12:15:25 +00:00
Raul Jordan
402799a584
Threadsafe LRU With Non-Blocking Reads for Concurrent Readers ( #12476 )
...
* add nonblocking simple lru
* method
* add in missing tests, fix panic
2023-07-12 17:57:52 +08:00
james-prysm
0266609bf6
bugfix : Eth-Consensus-Version header on response header ( #12600 )
...
* adding in custom header
* adding in parsing for middleware
* fixing casing
* add handling on error as well
* changing how error is handled for header
* changing how error is handled
* fixing casing
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blinded_blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing unit tests and review comment
* making some constants consistent in 1 file
* fixing missed blinded blocks
* fixing constants in custom handler tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-11 13:27:23 -05:00
Potuz
58df1f1ba5
lock before saving the poststate to db ( #12612 )
2023-07-11 16:10:32 +00:00
Simon
cec32cb996
Append Dynamic Addinng Trusted Peer Apis ( #12531 )
...
* Append Dynamic Addinng Trusted Peer Apis
* Append unit tests for Dynamic Addinng Trusted Peer Apis
* Update beacon-chain/p2p/peers/peerdata/store.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* Update beacon-chain/p2p/peers/status.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/p2p/peers/status_test.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Update beacon-chain/rpc/eth/node/handlers.go
* Move trusted peer apis from rpc/eth/v1/node to rpc/prysm/node; move peersToWatch into ensurePeerConnections function;
* Update beacon-chain/rpc/prysm/node/server.go
* Update beacon-chain/rpc/prysm/node/server.go
* fix go lint problem
* p2p/watch_peers.go: trusted peer makes AddrInfo structure by itself instead of using MakePeer().
p2p/service.go: add connectWithAllTrustedPeers function, before connectWithPeer, add trusted peer info into peer status.
p2p/peers/status.go: trusted peers are not included, when pruning outdated and disconnected peers.
* use readlock for GetTrustedPeers and IsTrustedPeers
---------
Co-authored-by: simon <sunminghui2@huawei.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-07-11 09:26:08 +00:00
Nishant Das
d56a530c86
Copy Bytes Alternatively ( #12608 )
...
* copy bytes alternatively
* test
2023-07-10 19:47:29 +08:00
Nishant Das
0a68d2d302
Fix Context Cancellation ( #12604 )
2023-07-08 08:50:04 +00:00
minh-bq
25ebd335cb
Fix bls signature batch unit test ( #12602 )
...
We randomly observe this failure when running unit test
go test -test.v -run=^TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
=== RUN TestSignatureBatch_AggregateBatch
=== RUN TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages
signature_batch_test.go:643: AggregateBatch() Descriptions got = [test signature bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature], want [bls aggregated signature test signature bls aggregated signature test signature bls aggregated signature test signature]
--- FAIL: TestSignatureBatch_AggregateBatch (0.02s)
--- FAIL: TestSignatureBatch_AggregateBatch/common_and_uncommon_messages_in_batch_with_multiple_messages (0.02s)
The problem is that the signature sort forgets to swap the description when a
swap occurs. This commit adds the description swap when swap occurs.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-07-07 14:26:02 -05:00
Sammy Rosso
6a0db800b3
GetValidatorPerformance http endpoint ( #12557 )
...
* Add http endpoint for GetValidatorPerformance
* Add tests
* fix up client usage
* Revert changes
* refactor to reuse code
* Move endpoint + move ComputeValidatorPerformance
* Radek's comment change
* Add Bazel file
* Change endpoint path
* Add server for http endpoints
* Fix server
* Create core package
* Gaz
* Add correct error code
* Fix error code in test
* Adding errors
* Fix errors
* Fix default GRPC error
* Change http errors to core ones
* Use error status without helper
* Fix
* Capitalize GRPC error messages
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-07-07 14:49:44 +00:00
Nishant Das
085f90a4f1
Prune Pending Deposits on Finalization ( #12598 )
...
* prune them
* Update beacon-chain/blockchain/process_block_helpers.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-07 11:20:14 +08:00
dependabot[bot]
ecb26e9885
Bump google.golang.org/grpc from 1.40.0 to 1.53.0 ( #12595 )
...
* Bump google.golang.org/grpc from 1.40.0 to 1.53.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.40.0 to 1.53.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.40.0...v1.53.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* Run gazelle and fix new gRPC API
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-07-06 20:11:43 +00:00
james-prysm
7eb0091936
Checkpoint sync ux ( #12584 )
...
* small ux improvement for checkpoint sync
* adding small log for ux update
* gaz
2023-07-06 16:46:55 +00:00
terencechain
f8408b9ec1
feat: add metric for ReceiveBlock ( #12597 )
2023-07-06 02:57:55 -07:00
Preston Van Loon
d6d5139d68
Clarify sync committee message validation ( #12594 )
...
* Clarify sync committee validation and error message
* fix test
2023-07-05 19:20:21 +00:00
terencechain
2e0e29ecbe
fix: prune invalid blocks during initial sync ( #12591 )
2023-07-05 08:33:33 -07:00
Potuz
e9b5e52ee2
Move consensus and execution validation outside of onBlock ( #12589 )
...
* Move consensus and execution validation outside of onBlock
* reviews
* fix unit test
* revert version change
* fix tests
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 21:12:21 +08:00
Nishant Das
2a4441762e
Handle Epoch Boundary Misses ( #12579 )
...
* add changes
* fix tests
* fix edge case
* fix logging
2023-07-05 09:23:51 +00:00
Nishant Das
401fccc723
Log Finalized Deposit Insertion ( #12593 )
...
* add log
* update key
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 08:07:38 +00:00
Radosław Kapka
c80f88fc07
Rename payloadHash to lastValidHash in setOptimisticToInvalid ( #12592 )
2023-07-04 17:03:45 +00:00
Kevin Wood
faa0a2c4cf
Correct log level for 'Could not send a chunked response' ( #12562 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-07-02 22:58:12 +00:00
Nishant Das
c45cb7e188
Optimize Validator Roots Computation ( #12585 )
...
* add changes
* change it
2023-07-01 02:23:25 +00:00
0xalex88
0b10263dd5
Increase validator client startup proposer settings deadline ( #12533 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-30 21:37:39 +00:00
Anukul Sangwan
3bc808352f
run ineffassign for all code ( #12578 )
...
* run `ineffassign` for all code
* fix reported ineffassign errors
* remove redundant changes
* fix remaining ineffassign errors
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-06-29 15:38:26 +00:00
james-prysm
d0c740f477
Registration Cache used by default and other UX changes for Proposer settings ( #12456 )
...
* WIP
* WIP
* adding in migration function
* updating mock validator and gaz
* adding descriptive logs
* fixing mocking
* fixing tests
* fixing mock
* adding changes to handle enable builder settings
* fixing tests and edge case
* reduce cognative complexity of function
* further reducing cognative complexity on function
* WIP
* fixing unit test on migration
* adding more tests
* gaz and fix unit test
* fixing deepsource issues
* fixing more deesource issues missed previously
* removing unused reciever name
* WIP fix to migration logic
* fixing loging info
* reverting migration logic, converting logic to address issues discussed on slack, adding unit tests
* adding test for builder setting only not saved to db
* addressing comment
* fixing flag
* removing accidently missed deprecated flags
* rolling back mock on pr
* fixing fmt linting
* updating comments based on feedback
* Update config/features/flags.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* fixing based on feedback on PR
* Update config/validator/service/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/client/runner.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update validator/db/kv/proposer_settings.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* adding additional logs to clear up some steps based on feedback
* fixing log
* deepsource
* adding comments based on review feedback
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-29 02:49:21 +00:00
Preston Van Loon
cbe67f1970
Update protobuf and protobuf deps ( #12569 )
...
* Update protobuf and protobuf deps
* gazelle
* enforce c++14
* bump to c++17 since practically all modern compilers support it
* update protobuf again to resolve mac issues, bump c++20
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-28 14:50:43 +00:00
Potuz
5bb482e5d6
Remove forkchoice call from notify new payload ( #12560 )
...
* Remove forkchoice call from notify new payload
* add unit test
2023-06-28 13:38:24 +00:00
terencechain
83494c5b23
fix: use diff context to update proposer cache background ( #12571 )
2023-06-27 20:31:54 +00:00
terencechain
a10ffa9c0e
Cache next epoch proposers at epoch boundary ( #12484 )
...
* Cache next epoch proposers at epoch boundary
* Fix new lines
* Use UpdateProposerIndicesInCache
* dont set state slot
* Update beacon_committee.go
* dont set state slot
* genesis epoch check
* Rm check
* fix: rm logging ctx
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* feat: move update to background
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-06-27 14:41:24 +00:00
Radosław Kapka
e545b57f26
Deflake cloners_test.go ( #12566 )
2023-06-26 15:43:00 +00:00
Preston Van Loon
c026b9e897
Set blst_modern=true to be the bazel default build ( #12564 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 15:06:33 +00:00
Preston Van Loon
a19044051f
Add hermetic_cc_toolchain for a hermetic cc toolchain ( #12135 )
...
* Add bazel-zig-cc for a hermetic cc toolchain
* gazelle
* Remove llvm
* remove wl
* Add new URLs for renamed repo
* gazelle
* Update to v2.0.0-rc1
* bump to rc2
* Some PR feedback
* use v2.0.0 from rc2
* Disable hermetic builds for mac and windows.
* bump bazel version, add darwin hack
* fix
* Add the no-op emtpy cc toolchain code
* typo and additional copy
* update protobuf and fix vaticle warning
* Revert "update protobuf and fix vaticle warning"
This reverts commit 7bb4b6b564 .
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-26 14:31:40 +00:00
Potuz
1ebef16196
use the incoming payload status instead of calling forkchoice ( #12559 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 18:09:02 +00:00
terencechain
8af634a6a0
feat: aggregate atts using fixed pool of go routines ( #12553 )
...
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-22 17:48:42 +00:00
Potuz
884ba4959a
Remove unneded helper ( #12558 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-22 16:54:52 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
Sammy Rosso
20f4d21b83
Keymanager API: Add validator voluntary exit endpoint ( #12299 )
...
* Initial setup
* Fix + Cleanup
* Add query
* Fix
* Add epoch
* James' review part 1
* James' review part 2
* James' review part 3
* Radek' review
* Gazelle
* Fix cycle
* Start unit test
* fixing part of the test
* Mostly fix test
* Fix tests
* Cleanup
* Handle error
* Remove times
* Fix all tests
* Fix accidental deletion
* Unmarshal epoch
* Add custom_type
* Small fix
* Fix epoch
* Lint fix
* Add test + fix empty query panic
* Add comment
* Fix regex
* Add correct error message
* Change current epoch to use slot
* Return error if incorrect epoch passed
* Remove redundant type conversion
* Fix tests
* gaz
* Remove nodeClient + pass slot
* Remove slot from parameters
* Fix tests
* Fix test attempt 2
* Fix test attempt 2
* Remove nodeClient from ProposeExit
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:06:16 -05:00
Bryce T
c018981951
Add expected withdrawals API ( #12519 )
...
* add structs for expected-withdrawals-api
* add server handler
* add tests
* add bazel file
* register api in service
* remove get prefix for endpoint
* fix review comments
* Update beacon-chain/rpc/eth/builder/handlers.go
* use goimports sorting type
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-21 14:36:47 +00:00
Radosław Kapka
b92226bedb
getAttestationRewards API endpoint (#12480 )
...
* handler
* very much work in progress
* remove Polish
* thinking
* working but differs from LH
* remove old stuff
* review from Potuz
* validator performance beacon server
* Revert "validator performance beacon server"
This reverts commit 42464cc6d3 .
* reuse precompute calculations
* todos
* production quality
* add json tags to AttestationRewards
* Potuz's review
* extract vars
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-21 13:16:53 +00:00
Potuz
57f97feb84
Track optimistic status on head ( #12552 )
2023-06-20 08:59:48 -07:00
Sanghee Choi
2bf0560dc7
fix typo (beacon-chain/node/node.go) ( #12551 )
2023-06-20 08:32:34 +00:00
Radosław Kapka
a40f903f76
Fix TestFieldTrie_NativeState_fieldConvertersNative ( #12550 )
2023-06-19 13:49:12 +00:00
Sanghee Choi
ba55ae8cea
fix typo (CONTRIBUTING.md) ( #12548 )
2023-06-18 19:24:19 -07:00
Potuz
27aac105d7
disable nil payloadid log on relayers flags ( #12465 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-16 17:01:57 +00:00
terencechain
115d565f49
fix: late block task wait for initial sync ( #12526 )
...
* fix: late block task wait for initial sync
* fix: remove wait for clock
2023-06-16 13:47:19 +00:00
Potuz
019e0b56e2
Do not validate merge transition block after Capella ( #12459 )
2023-06-16 13:11:07 +00:00
Nishant Das
0efb038984
Fix Fuzz Target For ExecutionPayload ( #12541 )
2023-06-16 12:41:28 +00:00
Nishant Das
63d81144e9
Fix Uint256 Json Parsing ( #12540 )
...
* add stronger checks
* radek's review
2023-06-16 09:43:20 +00:00
james-prysm
6edbfa3128
multiple validator status - optimization ( #12487 )
...
* adding optmization
* addressing comments
* adding a test and fixing change in assignments.go
* making some changes based on review of the code
* removing irrelevant test
* changing formatting
2023-06-15 17:20:00 -05:00
Nishant Das
194b3b1c5e
Ensure File Does Not Exist ( #12536 )
...
* error out
* gaz
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-15 21:41:46 +00:00
james-prysm
996ec67229
changing default on bad validators ( #12535 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-15 16:40:59 +00:00
Nishant Das
c7b2c011d8
fix parsing ( #12534 )
2023-06-15 11:12:39 -04:00
james-prysm
d15122fae2
Reopenning fix for keystore field name change to align with EIP2335 ( #12530 )
...
* adding changes
* fixing deepsource
2023-06-14 15:48:30 -05:00
Potuz
3e17dbb532
log the right blocknumber ( #12529 )
2023-06-14 19:55:33 +00:00
Nishant Das
a75e78ddb4
Ignore Late Message Logs ( #12525 )
2023-06-14 10:37:39 +00:00
Nishant Das
1862422db9
Remove Defer In ProposeGenericBlock ( #12524 )
2023-06-14 05:25:52 +00:00
james-prysm
152d21059e
adding additional comments and safe copies to protos ( #12518 )
2023-06-13 10:31:29 -05:00
terencechain
2b410893a0
optimization: epoch boundary uses next slot cache ( #12515 )
...
* optimization: epoch boundary uses next slot cache
* test: fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 17:13:49 +00:00
Potuz
826267310e
benchmark cold hashing of capella beaconstates ( #12516 )
...
* benchmark cold hashing of capella beaconstates
* use since
2023-06-12 16:54:43 +00:00
Nishant Das
d5057cfb42
Add the Ability for Prysm To Handle Trusted Peers ( #12492 )
...
* add all changes
* add to peers to watch
* add tests
* Update beacon-chain/p2p/peers/peerdata/store_test.go
* radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-06-12 14:47:52 +00:00
james-prysm
8d01cf2ec1
change update duties to handle all validators exited check ( #12505 )
...
* wip have update duties handle all validators updated
* removing function and adding tests
* removing unnessesary test
* fixing unit test
* gaz
* removing number on wait group
* trying lower threshold to reduce timeout
* testing removal of test to resolve timeout on buildkite
* gaz
* removing test that is breaking buildkite on timeouts, will need to return to revaluate difference between buildkite and local mock
* addressing feedback
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 14:27:52 +00:00
Potuz
e4e315da94
log validation time for blocks ( #12514 )
2023-06-12 22:06:57 +08:00
terencechain
0a4e42545e
Use next slot cache for sync committee ( #12287 )
...
* Use next slot cache for sync committee
* RWMutex
* change mutex for last cached state
* feat: change mutex
* test: add db
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-12 04:30:06 +00:00
kasey
6fa2d768b5
Checkpoint sync: get block using state.latest_block_header.slot ( #12447 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-11 03:00:38 +00:00
Nishant Das
0f228896b0
Add Patch For Libp2p ( #12507 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-06-11 01:59:18 +00:00
terencechain
6896b41963
optimization(proposer rpc): move htr to after broadcast ( #12504 )
2023-06-09 06:32:29 -07:00
Nishant Das
3bf6abe27c
Ignore Phase0 Blocks For Monitor ( #12503 )
2023-06-09 05:00:36 +00:00
Nishant Das
c1391f0de3
Always Favour Yamux for Multiplexing ( #12502 )
2023-06-08 04:02:46 +00:00
james-prysm
6672d1499a
prysmctl: output proposer settings ( #12181 )
...
* wip proposer settings
* WIP validator client APIs
* adding proposer settings output
* adding unit tests
* fixing linting
* fixing deepsource issues
* fixing e2e
* fixing deep source issue
* updating naming to not stutter
* updating bazel
* fixing linting error
* reverting comment
* adding builder settings
* gaz
* Update validator/client/validator.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* adding comments
* adding some tests
* gaz
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/options.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/validator/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/proposer_settings.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/errors.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing feedback
* fixing unit test
* addressign comments
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-06 17:03:30 +00:00
Nishant Das
33cf52831c
Update Libp2p to v0.27.5 ( #12486 )
...
* add deps
* update to v0.27.5 and handle panic
2023-06-06 08:41:15 +08:00
terencechain
d543e9be00
Update spec tests to v1.4.0-alpha.1 ( #12489 )
2023-06-03 11:17:13 +00:00
Nishant Das
0669050ffa
Add Appropriate Size for the Attestation Queue ( #12485 )
...
* add tag
* fix off by 1
2023-06-02 11:33:28 +00:00
zghh
ceff0c2024
Fix the bug that return 500 in /eth/v1/node/peers interface ( #12483 )
...
* Fix the bug that return 500 in /eth/v1/node/peers interface
* Update node.go
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-06-02 03:27:17 +00:00
Radosław Kapka
c32b581e8e
Add broadcast_validation to block publishing ( #12432 )
...
* day 1
* day 2
* day 2+
* day 3
* day 4
* making bazel happy
* PublishBlindedBlockV2
* remove file
* use lock in insertSeenProposerIndex
* remove EquivocationChecker interface
* update deps.bzl
* remove middleware json tags
* go mod tidy
* remove redundant return statements
* validate in handler
* improvements
* extract common code
* remove import
* sync test fix
* Update beacon-chain/rpc/eth/beacon/handlers.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-06-01 11:22:49 +00:00
terencechain
e516a2004f
Update next slot cache correctly under late task ( #12462 )
2023-05-31 08:50:37 -07:00
terencechain
cb65d8af96
Proposer RPC: make setExecutionData better ( #12466 )
2023-05-31 06:06:32 -07:00
Nishant Das
70152bf476
Copy All Field Tries For Late Blocks ( #12461 )
...
* add new thing
* only have it for late blocks
* comments
* change to lock
* add test
* Update beacon-chain/state/state-native/state_test.go
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-05-30 09:57:20 +00:00
Radosław Kapka
8aa688729d
Cleanup of ProposerPayloadIDsCache ( #12474 )
...
* Cleanup of `ProposerPayloadIDsCache`
* one more comment
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-05-29 16:10:28 +00:00
Preston Van Loon
1ffc92999f
p2p: Check peer threshold is met before giving up on ctx deadline ( #12446 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-28 13:24:59 +00:00
terencechain
2dcef85f97
Add spec test for v1.4.0-alpha.0 ( #12460 )
...
* Fix spec test
* Fix sha
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-25 14:05:43 +00:00
Nishant Das
52da7b3de6
Release Lock Before Panicking ( #12464 )
2023-05-25 06:42:21 -07:00
terencechain
be16b64535
Remove SubmitBlindBlock context timeout ( #12453 )
2023-05-24 14:19:23 +00:00
terencechain
f4d3939b62
Add logs for build block times ( #12452 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-24 13:37:26 +00:00
Nishant Das
245d8a29e0
Optimize Zerohash Comparisons In Forkchoice ( #12458 )
2023-05-24 09:58:02 +00:00
james-prysm
666188dfea
Improve validator import logs ( #12429 )
...
* adding small ux improvement
* gaz
* rolling back dir test changes
* Update validator/accounts/accounts_import.go
* adding review suggestion
* missed else part of statement
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-05-23 15:41:41 -05:00
Preston Van Loon
cfa64ae013
Restore disable-peer-scorer flag ( #12386 )
...
* Revert "Make Peer Scorer Permanent Default (#12138 )"
This reverts commit 4d28d69fd9 .
* make peer scoring flag warning scary
2023-05-23 13:53:02 +00:00
Potuz
cd0f814f2e
fixed erroneous panic ( #12450 )
2023-05-23 11:12:31 +00:00
Radosław Kapka
abc81e6dde
Merge all block unblinding code into a single unblinder struct ( #12240 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-05-23 11:38:52 +02:00
terencechain
6b26183e73
Add missing config yamls for domains ( #12442 )
...
* Add missing config yamls for domains
* Fix GetSpec test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 18:02:41 +00:00
Preston Van Loon
7fe935e94d
Fix metric name from PR #12430 ( #12445 )
...
* Fix metric name from PR #12430
* @potuz can't spell 'unknown'
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 17:43:21 +00:00
Potuz
e0e7c71eb5
Fix sandwich attack on honest reorgs ( #12418 )
...
* Fix sandwich attack on honest reorgs
* fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-22 17:23:20 +00:00
Potuz
c80019bd0b
remove trivial helper ( #12443 )
2023-05-22 15:59:16 +00:00
james-prysm
8dfb92c605
reverting expiration logic on validator while using --enable-registration-cache ( #12436 )
...
* reverting expiration logic
* gaz
2023-05-22 14:54:09 +00:00
Potuz
9d192a3608
Remove unused function ( #12439 )
...
* Remove unused function
* gazelle
2023-05-22 11:09:08 -03:00
Nishant Das
51bde7a845
disable it ( #12438 )
2023-05-22 19:18:13 +08:00
kasey
385a317902
Revert initsync revert ( #12431 )
...
* Revert "Revert "BeaconBlocksByRange and BlobSidecarsByRange consistency (#123… (#12426 )"
This reverts commit ddc1e48e05 .
* fix metrics bug, add batch.next tests
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-19 16:59:13 +00:00
Potuz
b84dd40ba9
Use forkchoice to validate sync messages faster ( #12430 )
...
* Use forkchoice to validate sync messages faster
* add metric
2023-05-19 14:47:39 +00:00
kasey
aeaa72fdc2
fix deadlock between monitor service and init-sync ( #12427 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-18 18:35:06 +00:00
kasey
ddc1e48e05
Revert "BeaconBlocksByRange and BlobSidecarsByRange consistency (#123… ( #12426 )
...
This reverts commit 73e4bdccbb .
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-18 18:01:26 +00:00
Nishant Das
f91159337b
Fix Migration Of State ( #12423 )
2023-05-18 13:18:56 +00:00
Potuz
537236e1c9
Add aggregation metrics ( #12417 )
2023-05-17 12:18:59 -07:00
kasey
73e4bdccbb
BeaconBlocksByRange and BlobSidecarsByRange consistency ( #12383 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-17 12:16:10 +00:00
Potuz
f54bd64bdd
Default aggregation ticker times ( #12412 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-16 19:38:44 +00:00
james-prysm
d907cae595
persistent validator settings in validator client ( #12354 )
...
* WIP
* improving proposer settings store
* WIP persistent validator settings
* WIP persistent validator settings
* changing visibility level
* fixing some deepsource issues
* fixing more deepsource issues
* fixing json marshalling
* fix linting
* fixing tests
* fixing more tests
* fixing more tests
* fixing more tests
* fixing linting
* WIP fixing unit tests
* fixing remaining db tests
* converting json to protobuf
* fixing e2e
* k8s yaml library is used directly
* fixing linting
* fixing broken unit test
* reverting changes on e2e
* fixing linting
* fixing deepsource issue
* resolving some internal comments
* resolving some comments and adding more tests
* adding more unit tests
* gaz
* fixing flaking test
* fixing unit test contamination
* fixing deepsource issue
* resolving review item
* gaz
2023-05-16 14:08:49 -05:00
Potuz
be23773924
Don't use max cover on unaggregated atts nor check subgroup of validated signatures ( #12350 )
...
* Don't use max cover on unnaggregated atts
* Do not validate signature on the attestation package
* separate nil error checks
* fix unit tests
2023-05-16 17:06:26 +00:00
terencechain
29f6de1e96
Flip build block parallel feature flag ( #12408 )
2023-05-16 08:43:15 -07:00
Potuz
955a21fea4
revert revert of f6764fe62b ( #12399 )
2023-05-16 11:50:02 +00:00
Preston Van Loon
b4f1fea029
CI: fix docker image tagging ( #12407 )
2023-05-16 02:10:23 +00:00
kasey
f1b88d005d
fix broken slasher service init ( #12405 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-05-15 17:00:29 -05:00
Preston Van Loon
ee612d958a
Update discord invite ( #12403 )
2023-05-15 13:54:19 +00:00
Nishant Das
09e22538f9
Support Capella Blocks for Tool ( #12402 )
...
* fix it
* fix it
2023-05-15 17:59:02 +08:00
terencechain
3b9e974a45
Add epoch and root to not a checkpt in forkchoice log ( #12400 )
...
* Add epoch number and root in not a checkpt in forkchoice log
* Update beacon-chain/blockchain/process_attestation_helpers.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Fix test
* Fix typo
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-14 06:02:36 +00:00
Potuz
ad749a40b6
Save to checkpoint cache if the nsc hits ( #12398 )
...
* Save to checkpoint cache if the nsc hits
Also move the head check before the checkpoint cache check
* add unit test
2023-05-13 09:54:33 -03:00
terencechain
9b13454457
Metrics: Invert too late and too early att received count ( #12392 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 19:45:43 +00:00
Potuz
b9917807d8
Ignore some untimely attestations ( #12387 )
...
* Ignore some untimely attestations
* correct child slot check
* consider tips as viable for checkpoints
* deal with canonical blocks
* forkchoice unit tests
* blockchain readonly beacon state
* Ignore some untimely attestations
* correct child slot check
* consider tips as viable for checkpoints
* deal with canonical blocks
* forkchoice unit tests
* blockchain readonly beacon state
* Fix AttestationTargetState mock
* Fix ineffectual assignment lint
* Fix blockchain tests
* Fix build
* Add Nil check
* add comment on lock
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 16:55:33 +00:00
Raul Jordan
e5c9387cd9
Update Github Actions Go Version ( #12391 )
...
* update github actions
* use quotes or it is go 1.2
lol
* Update gosec
* Update gosec
* Update go lint
* fix gosec violations
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-05-12 15:51:20 +00:00
Preston Van Loon
2c3b3b802a
Revert "Add a new slot ticker and use it on attestation aggregation" ( #12390 )
...
This reverts commit f6764fe62b .
2023-05-12 14:49:37 +00:00
Simon
3ef3e1d13b
fix-subnets-oom ( #12388 )
...
fix-subnets-oom, close iterator after using it
2023-05-12 07:52:17 -05:00
Nick Sullivan
5c00fcb84f
Fix numerous spelling error and typos in the log messages, comments, and documentation. ( #12385 )
...
* Minor typos and spelling fixes (comments, logs, & docs only, no code changes)
* Fix seplling in log message
* Additional spelling tweaks based on review from @prestonvanloon
2023-05-11 20:45:43 +00:00
Nishant Das
aef22bf54e
Add In Support For Builder in E2E ( #12343 )
...
* fix it up
* add gaz
* add changes in
* finally runs
* fix it
* add progress
* add capella support
* save progress
* remove debug logs
* cleanup
* remove log
* fix flag
* remove unused lock
* gaz
* change
* fix
* lint
* james review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-05-11 11:10:29 -05:00
Potuz
f6764fe62b
Add a new slot ticker and use it on attestation aggregation ( #12377 )
...
* Add slot ticker with intervals
* add flags for aggregation duration
* misspelling
* hide flags
* fix flags and default durations
* lint
* wait for initial sync
* deep source
* add log
* Preston's review
* fix error message
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-10 12:48:51 +00:00
Preston Van Loon
07db0dc448
CI: Add support for buildbuddy uploads ( #12378 )
...
* Add build metadata
* Add buildbuddy flags
* more metadata
* fix latest tag
* fix branch
* revert branch change
* touch a file to trigger build
* remove unknown command
* fix script
* Update latest_version_tag.sh
2023-05-10 12:30:40 +00:00
Preston Van Loon
4b4e213a24
stategen: Pre-populate bls pubkey cache as part of stategen's Resume function ( #11482 )
...
* Pre-populate bls pubkey cache as part of state gen's Resume function. This adds some helpers and a benchmark to blst
* Do it async
* fix missing import
* lint
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
2023-05-10 10:44:15 +00:00
kasey
7d9f36985e
Fix initialization race ( #12374 )
...
* block all the sync startup code on init signal
* don't need chainStarted if everything blocks
* set empty clock by default to work around panics
* remove unused clock, zero-value for init-sync
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-05-10 04:09:15 +00:00
james-prysm
98f8ca4e34
reverting version check on bid header ( #12376 )
...
* adding reverting change
* adding additional tests and checks
* removing comment
* updating based on review suggestions
* fixing deepsource issues
* attempting to resolve dependencies
* removing dependency
* accidently flipped if statement with deepsource fix
* fixing unit test
2023-05-10 08:45:09 +08:00
james-prysm
535b38395e
migrating code from PR#12343 ( #12371 )
2023-05-08 09:33:26 -05:00
terencechain
4bd7e8aefd
WeiToGwei copy input big.int (#12370 )
2023-05-07 15:15:08 +00:00
Raul Jordan
6f383f272a
Do Not Panic on Broadcasting Nil Object ( #12369 )
2023-05-07 05:00:30 +00:00
terencechain
dbb8279fe6
Ran update-go-pbs.sh ( #12359 )
...
* Ran update-go-pbs.sh
* Fix import
2023-05-05 17:44:51 +00:00
Nishant Das
b6625554dd
fix build ( #12358 )
2023-05-05 08:32:56 -05:00
Radosław Kapka
bd833e1c12
Use v1alpha1 server in block production ( #12336 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-05-04 19:52:41 +02:00
kasey
918129cf36
Replace statefeed Initialize ( #12285 )
...
* refactor initialization to blocking startup method
* require genesisSetter in blockchain, fix tests
* work-around gazelle weirdness
* fix dep gazelle ignores
* only call SetGenesis once
* fix typo
* validator test setup and fix to return right error
* move waitForChainStart to Start
* wire up sync Service.genesisWaiter
* fix p2p genesisWaiter plumbing
* remove extra clock type, integrate into genesis
and rename
* use time.Now when no Nower is specified
* remove unused ClockSetter
* simplify rpc context checking
* fix typo
* use clock everywhere in sync; [32]byte val root
* don't use DeepEqual to compare [32]byte and []byte
* don't use clock in init sync, not wired up yet
* use clock waiter in blockchain as well
* use cancelable contexts in tests with goroutines
* missed a reference to WithClockSetter
* Update beacon-chain/startup/genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/blockchain/service_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* more clear docs
* doc for NewClock
* move clock typedef to more logical file name
* adding documentation
* gaz
* fixes for capella
* reducing test raciness
* fix races in committee cache tests
* lint
* add tests on Duration slot math helper
* startup package test coverage
* fix bad merge
* set non-zero genesis time in tests that call Start
* happy deepsource, happy me-epsource
* replace Synced event with channel
* remove unused error
* remove accidental wip commit
* gaz!
* remove unused event constants
* remove sync statefeed subscription to fix deadlock
* remove state notifier
* fix build
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com >
2023-05-03 04:34:01 +00:00
terencechain
5b8084b829
Proposer builds block in parallel. (Consensus vs Execution) ( #12297 )
...
* Proposer builds block in parallel. Cosensus vs Execution
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Use feature flag
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-05-01 14:37:26 +00:00
james-prysm
83416f31a5
Unregister validator - fix behind feature flag ( #12316 )
...
* adding changes to blocks
* trying out expiration
* adding implementation, have WIP for tests
* adding unit tests for cache
* fixing bazel complaints
* fix linting
* adding safe check for unint type
* changing approach to safety check
* adding cache to bazel to test fixing build
* reverting bazel change and adding flag to usage
* implementing interface on mock to fix build error
* fixing unit tests
* fixing unit test
* fixing unit tests
* fixing linting
* fixing more unit tests
* fixing produce blinded block tests
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* resolving review comments
* fixing cache
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/cache/registration.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* fixing time logic
* adding context to trace
* fix bazel lint
* fixing context dependency
* fix linting
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing review comments
* fixing deepsource issues
* improving the default settings
* fixing bazel
* removing irrelevant unit test
* updating name
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-28 21:27:47 +00:00
Sammy Rosso
d382abe198
InsertFinalizedDeposits: return an error ( #12342 )
...
* InsertFinalizedDeposits: return an error
* Remove logging
* Radek' Review
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-28 20:59:09 +00:00
terencechain
8481a3e6ec
Beacon-api: save atts to pool ( #12345 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 22:47:03 +02:00
james-prysm
f9f40975c5
Validator registration filter non active keys before submission ( #12322 )
...
* adding filter for validator registration
* adding new filter logic based on validator status
* make sure to check status each time
* WIP unit testing
* fixing unit tests
* adding ux improvement
* addressing nishant's comments
* cleanup for already slice error
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-27 13:10:18 -05:00
Potuz
b56f3e70df
log correctly the head changed when it actually changes ( #12324 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 17:13:58 +00:00
terencechain
ce0616b88e
Add verify slot tolerance test ( #12344 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 15:53:28 +00:00
Preston Van Loon
7dffee1c66
Update to go1.20 ( #12333 )
...
* Update to go1.20
* Update gohashtree
* fix build tags for bytesutil and add nilness exclusion
* more broad nilness exclusion
* Reset nogo config
* Update golang.org/x/tools
* update rules_go to 0.39.0
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 15:41:57 +00:00
kasey
cec631d760
Fixing flaky validator tests ( #12339 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-27 13:05:13 +00:00
kasey
ba9a744552
Keymanager mock cleanup ( #12341 )
...
* add callback for deterministic key fetch ordering
* provide a nicer way to control key ordering
* more concise test setup = less confusion
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-04-27 05:25:17 +00:00
kasey
f962d13407
Fix committee test race ( #12338 )
...
* fix races in committee cache tests
* lint
* gratuitous defer ClearCache if ClearCache
* log warning to avoid failed block processing
* gaz
* add Clear to cache stubs
* fix Clear mistakes
* last fake cache fix
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-04-27 00:50:04 +00:00
Radosław Kapka
34b6c8f333
Use mock v1alpha1 server in Beacon API's validator functions ( #12319 )
2023-04-26 18:59:29 +02:00
terencechain
73fea51398
Use next slot cache for payload attribute ( #12286 )
2023-04-25 16:13:24 -07:00
terencechain
fa7a2bd445
Move update next slot cache earlier ( #12321 )
...
* Move next slot cache earlier
* update next slot cache if it's head
2023-04-25 21:03:54 +00:00
Preston Van Loon
3894d60282
blockchain: add more spans to analyze block production timing ( #12332 )
...
* blockchain: add more spans to analyze block production timing
* There is a reason that we do not use the incoming context for forkchoice updates
2023-04-25 15:45:08 +00:00
Radosław Kapka
328e6fb074
Move some errors to separate consensus-types package ( #12329 )
...
* move `ErrNilObjectWrapped` to separate package
* build fix
* move not supported
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-25 15:07:24 +00:00
Radosław Kapka
9e3598334d
Avoid double state copy in latestAncestor ( #12326 )
...
* Avoid double state copy in `latestAncestor`
* remove trailing newline
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-25 14:12:56 +00:00
Radosław Kapka
ebccdfadb5
Remove unused argument from field index ( #12327 )
...
* Remove unused argument from field index
* bzl
2023-04-25 13:03:55 +00:00
Cyyber Ttechno
efdda168c5
Corrected err return for GenesisState while calling db.View ( #12325 )
2023-04-25 02:57:07 +00:00
terencechain
08d6eccfb3
Change native execution value to Gwei Uint64 ( #12291 )
...
* Default value to uint64
* Fix spectest
* Fix tests
* Fix tests
* Fix tests
* Fix test
* Fix test
* Fix build
* Potuz feedback
* Add test
* Fix test
* Fix test
2023-04-22 00:44:28 +00:00
Nishant Das
97a32e1b72
Fix Status Checks For Double Deposits ( #12318 )
...
* fix status
* fix test
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-21 12:08:55 +00:00
Radosław Kapka
b7ef762701
Return errors from ProduceBlindedBlock ( #12309 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-21 11:41:43 +02:00
dependabot[bot]
c9e333723e
Bump k8s.io/client-go from 0.18.3 to 0.20.0 ( #11972 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.18.3 to 0.20.0.
- [Release notes](https://github.com/kubernetes/client-go/releases )
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.18.3...v0.20.0 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-04-20 17:41:04 +00:00
Potuz
300a827027
Use same signature for unrealized justified hash and justified hash ( #12314 )
...
* Use same signature for unrealized justified hash and justified hash
* fix build
2023-04-20 15:59:12 +00:00
Nishant Das
6374cc0118
Add Exceptions For Transaction Fuzzer ( #12313 )
...
* fix it
* comment
2023-04-20 14:42:51 +00:00
Preston Van Loon
9f886da1de
db: Deduplicate saveCheckpoint functionality ( #12304 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-20 12:13:21 +00:00
james-prysm
7e7a2a2959
improve the blinded block error ( #12310 )
2023-04-19 18:27:00 -05:00
james-prysm
b0bf402469
version check to blinded block ( #12305 )
2023-04-19 10:55:36 -05:00
james-prysm
a090751c8c
removing phrasing on not being able to withdraw ( #12306 )
2023-04-19 11:46:27 +08:00
Justin Traglia
4c916403e9
Enable dupword linter & fix findings ( #12271 )
...
* Enable dupword linter & fix findings
* Correct an incorrect fix
* Add nolint comment
* Add another nolint comment
* Revert unintended change to bazel version
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-18 22:01:27 +00:00
Justin Traglia
b6181f8d1a
Enable nilerr linter & fix findings ( #12270 )
...
* Enable nilerr linter & fix findings
* Deal with other findings
* Fix another finding that I missed somehow
* Fix another another issue
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update tests to expect error
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-18 20:53:16 +00:00
Preston Van Loon
00001c8628
builder: add more tracing data for builder code paths ( #12302 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-18 19:20:42 +00:00
Justin Traglia
8428a79971
Enable whitespace linter & fix findings ( #12273 )
...
* Enable whitespace linter & fix findings
* Fix new finding
* fix new violation
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-04-18 18:58:27 +00:00
terencechain
03f63f294b
Update spec test to v1.3 ( #12300 )
2023-04-18 16:10:55 +00:00
Preston Van Loon
f4681fde19
windows: Fix build after PR 12293 ( #12296 )
2023-04-17 20:43:40 +00:00
Preston Van Loon
0c7292b85b
prysmctl: Add support for writing signed validator exits to disk ( #12262 )
...
* prysmctl: Add support for writing signed validator exits to disk
* Add dir suffix
* Add test to ensure no broadcast call was made
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-17 18:01:13 +00:00
james-prysm
10b438e2c8
Keymanager fixes for bad file writes ( #12284 )
...
* WIP changes for keymanager
* WIP fix
* WIP needs unit tests
* fixing order
* adding unit test
* fixing linter
* updating unit tests and creating more reusable functions
* making accountStore copy method part of struct
* Update validator/keymanager/local/delete_test.go
* Update validator/keymanager/local/delete.go
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/import.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/keymanager/local/delete.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing suggestion of not reinitializing from reading the file but instead update the information based on memory on hand
* Update validator/accounts/wallet_create.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* adding changes based on suggestions
* making logs more consistent
* fixing linting
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-04-17 12:08:27 -05:00
Nishant Das
e2386cfb11
Fix Attester Slashing Validation In Gossip ( #12295 )
...
* fix slashing checks
* fix to make it more performant
* gaz
* fix up
* potuz's comment
* potuz's comment
* fix cache
* change index in test for better case
* gaz
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2023-04-17 15:35:38 +00:00
Radosław Kapka
898cb0b512
Deflake TestWaitForActivation_AccountsChanged ( #12282 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-04-17 15:04:42 +00:00
Sammy Rosso
6944d22ce3
Add support for engine_exchangeCapabilities ( #12224 )
...
* Add call to engine_exchangeCapabilities
* Fix unused import
* Cleanup + tests
* Warning only when needed
* Add Radek' feedback
2023-04-17 12:55:22 +00:00
Nishant Das
1eb00866ea
Add License For Vendored Dependency ( #12294 )
2023-04-17 08:16:47 +00:00
Nishant Das
4862d57b13
Fix Broken Dependency ( #12293 )
...
* vendor in library
* comment
* lint
* lint
2023-04-17 12:22:34 +08:00
Potuz
191b0c4652
Correctly use Gwei to compare builder bid value ( #12290 )
...
* Correctly use Gwei to compare builder bid value
* Minimal 1gwei for TestProduceBlindedBlock
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-04-16 16:47:51 +08:00
kasey
c09977d8a8
support modifying genesis.json for capella ( #12283 )
...
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-04-14 20:32:40 +00:00
Nishant Das
52d72c989e
Check that Builder Is Configured ( #12279 )
...
* add configured check
* tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-14 10:21:46 +00:00
Justin Traglia
9f7711e74a
Enable misspell linter & fix findings ( #12272 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-14 10:03:11 +00:00
Nishant Das
f376427add
fix panic ( #12277 )
2023-04-13 22:42:57 -07:00
kasey
ff1b03ab13
prysmctl using the same genesis func as e2e ( #12268 )
...
* prysmctl using the same genesis func as e2e
* add whitespace to genesis.json for readability
* fix typo in fork name
* don't require validator count if deposits given
* add gosec exception
* the other nosec :(
* appease deepsource
* fix comments on renamed public value/func
---------
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-04-13 17:19:06 +00:00
Potuz
5fdd4e9148
Add prepare-all-payloads flag ( #12260 )
...
* Add prepare-all-payloads flag
* add unit tests
* do not use the nsc
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-13 14:47:13 +00:00
Patrice Vignola
80e26143eb
Add REST API endpoint for beacon chain client's GetChainHead ( #12245 )
...
* Add REST API endpoint for beacon chain client's GetChainHead
* Remove unused parameters
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-13 11:42:59 +00:00
Nishant Das
75338dd83d
Fix User Agent In Builder Client ( #12264 )
2023-04-13 03:12:51 +00:00
terencechain
99eebe9bac
Fix capella unblind block with bls field ( #12263 )
2023-04-12 18:47:34 -07:00
keithchew
6b1efff4e8
allow setting GOMAXPROCS from environment variable ( #12256 )
...
* allow setting GOMAXPROCS from environment variable
* remove unused import
2023-04-10 23:28:48 -04:00
Preston Van Loon
763e9e3361
Update go to version 1.19.8 ( #12238 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-10 19:03:24 +00:00
Nishant Das
37182168e3
Fix Deadlock in StreamChainHead ( #12250 )
...
* fix it possibly
* buffer it more
* fix test
2023-04-07 15:41:31 -05:00
terencechain
0325741318
Add orphaned operations to the appropriate pools in saveOrphanedOps() and mark included slashings in prunePostBlockOperationPools(). ( #12249 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-06 16:26:01 -05:00
Preston Van Loon
150e8aa14d
Remove unused beacon-chain/server binary ( #12241 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-06 20:56:55 +00:00
kasey
f4307a902c
build tag to exclude mainnet genesis from prysmctl ( #12244 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-04-06 19:45:35 +00:00
james-prysm
d257ef1742
Builder: fix nil panic edgecase ( #12236 )
...
* adding fix for buildervalue nil
* fixing linting
* changing based on review comment
* editing based on suggestions
* fixing unit test
* fixing linting
* fall back to local
* fix linting
* updating based on slack feedback
2023-04-06 14:19:51 -05:00
Nishant Das
aad7aa79d4
Fix Next State Mismatch ( #12247 )
...
* fix mismatch
* add regression test
2023-04-06 17:52:15 +08:00
terencechain
2eb2f87913
Default to local payload should set block to not blind ( #12243 )
2023-04-05 23:29:41 +00:00
Patrice Vignola
9214364c5e
Add REST API endpoint for beacon chain client's ListValidators ( #12228 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-04-05 13:00:49 +02:00
Potuz
fb65421678
refactor next slot cache ( #12233 )
...
* refactor next slot cache
* fix test
* rename function
* fix spectests
* remove TODO comments
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-04-04 16:04:00 +00:00
terencechain
35e3eeddf9
Add flag to boost local block value ( #12227 )
...
* Add builder bid fraction to compare with local block value and use builder bid if (bid * fraction) > local block value
* Prioritize local block construction over relay/builder block construction using a boost value for local block construction
* Refactor builder and local block value calculation to use percentage comparison
* Add a test for local with boost
* Use uint64
* Fix log
2023-04-04 14:58:56 +00:00
Sammy Rosso
2618a114e5
Testnet: override Eth1Data for genesisState from input JSON ( #12231 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-03 15:13:51 +00:00
Radosław Kapka
aac47640b4
Fix broadcast of slashings ( #12230 )
...
* Fix broadcast of slashings
* tests
2023-04-03 14:57:59 +00:00
Nishant Das
17cfc60bdd
Enable Static Peer ID ( #12220 )
...
* static peer id
* kasey's review
2023-04-01 00:00:11 +00:00
Radosław Kapka
8d001d49d4
Unskip block tests ( #12222 )
2023-03-31 15:45:42 +00:00
Nishant Das
5ecebbe15a
Recover State Summary Correctly ( #12214 )
...
* fix it
* add zerohash checks
* preston's review
2023-03-30 09:09:36 -05:00
james-prysm
5ae7e17ada
E2E: improve beacon api logging ( #12211 )
2023-03-30 02:51:04 +00:00
terencechain
17488028a6
Use justified hash as safe block hash when passing attribute ( #12196 )
...
* With attribute, use justified hash as safe block hash
* Use UnrealizedJustifiedPayloadBlockHash
* Cleanups
* Add test to forkchoice
* Block proposal
* Fix mock
* Fix test
* Fix rest of the tests
* Potuz feedback
* Fix test
* Use unrealized justified hash for regular fcu
2023-03-29 23:38:36 +00:00
james-prysm
163f65f8a3
E2E: updating web3signer dependency ( #12207 )
...
* updating dependency
* missed updating a number
2023-03-29 20:32:34 +00:00
Potuz
6ebe5ea8b2
Faster and cached square root ( #12191 )
...
* Faster and cached square root
* deal with 0
* Rename function
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-29 16:23:16 -03:00
Radosław Kapka
5ea0417df2
Improve voluntary exit confirmation prompt ( #12205 )
2023-03-29 14:17:21 +00:00
Patrice Vignola
61fed336e1
Add REST API endpoint for node client's GetSyncStatus ( #12189 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-03-29 13:38:31 +00:00
Nishant Das
fed6a351cc
Update Dependencies ( #12204 )
...
* update
* update
2023-03-29 13:04:47 +00:00
Radosław Kapka
98949d8075
Block rewards API endpoint ( #12020 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-28 18:44:41 +02:00
Nishant Das
5cbbd26df4
Fallback in Update Head On Error ( #12199 )
...
* return if head call fails
* potuz's feedback
* potuz's feedback
2023-03-28 23:06:44 +08:00
Patrice Vignola
83ccb15e66
Add REST API endpoint for node client's GetGenesis ( #12168 )
...
* Add REST API endpoint for node client's GetGenesis
* Remove unused parameter
* Fix test name
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-28 11:36:41 +00:00
james-prysm
f5bfb8e9eb
revert protobuf depreciation - ValidatorPerformanceResponse ( #12192 )
...
* accidently deprecated protobuf message
* accidently checked in blob changes
2023-03-27 13:39:21 -05:00
terencechain
b00f7f4592
Update the badges to latest version ( #12145 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-03-24 18:02:53 +00:00
Nishant Das
191e603e28
Fix Bad Merge in V4 ( #12183 )
2023-03-24 14:05:31 +00:00
Nishant Das
76c729f9fa
Add Pubsub Metrics Tracer ( #12178 )
...
* add tracer
* gaz
* preston's review
* preston's review
2023-03-24 12:36:10 +08:00
Potuz
797cc360c7
Isolate forkchoice to blockchain package ( #12174 )
...
* Isolate Forkchoice to blockchain package
* Nishant's feedback
* Terence's feedback
* Nishant saving the day
2023-03-22 09:12:54 +08:00
terencechain
79da486508
Add locks to forkchoice spec tests ( #12165 )
...
* Add locks to forkchoice spec testS
* Fix
* Rm forkchoice store getter
* Rm useless lock
2023-03-21 18:39:40 +00:00
terencechain
5bb1491d8f
Remove blob protos ( #12173 )
...
* Remove old protobufs
* Rm generated files
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-21 18:08:05 +00:00
Patrice Vignola
c0ee781638
Remove unused validator endpoints from validator REST API ( #12167 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-21 16:52:42 +00:00
shana
4d5827c527
Fix payload attributes json ( #12169 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-21 13:36:18 +00:00
Nishant Das
88f03967dd
Apply Goimports to Generated Files ( #12170 )
...
* gofmt
* build
2023-03-21 11:12:23 +00:00
Potuz
fb65287ba2
Remove unused methods from interface ( #12164 )
2023-03-20 15:36:33 -05:00
Radosław Kapka
0cb46eb29a
Do not HTR the state when checking for optimistic mode ( #12143 )
...
* initial impl
* review feedback
* fix tests
* review feedback
* some improvements
* tests and small improvements
* gzl
* one more review
* fix test
* fix other test
* get the roots instead of hashing them
* fix comment
* fix justified case
* fix all tests
* misc
* gzl
* fix broken tests
* use isOptimisticForRoot once we have the blockroot
* Fix is_not_finalized_when_head_is_optimistic but reviewing the logic first
* Fix is_not_finalized_when_head_is_optimistic
* better root tests
* move optimistic check before parsing root
* check for last validated checkpoint
* add right check for finalized
* fix finalized tests
* removed impossible condition
* fix TestGetSyncCommitteeDuties
* Use Ancestor from chaininfo
* fix test
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-03-20 17:04:40 -03:00
Potuz
abe9e7fa7e
mainnet capella epoch ( #12144 )
...
* mainnet capella epoch
* Update spec test to v1.3.0-rc5
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-20 19:18:58 +00:00
Potuz
3536669a70
lock forkchoice on calls to Ancestor ( #12162 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-20 15:51:42 -03:00
Patrice Vignola
7c49277e83
Add REST API stubs for beacon chain, node and slasher clients ( #12094 )
...
* WIP
* WIP
* Remove duplicate mock
* WIP
* Revert "WIP"
This reverts commit a8010057fe .
* Fix build break
* Remove unused variable
* Fix build break
* Rename validator_mock to validatormock
* Fix failing test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-20 16:32:32 +00:00
terencechain
6480d5a0fd
Send missing slot event at the correct place ( #12160 )
2023-03-19 16:25:58 -07:00
Potuz
d1c45b44be
Call FCU at 4 seconds if we haven't updated head ( #12159 )
2023-03-19 00:21:52 +00:00
Nishant Das
2a1c626707
Add Flags To Dev Mode ( #12152 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-17 23:01:23 +00:00
james-prysm
67595d576c
fixing SSE payloads ( #12154 )
...
* fixing typo on casing
* WIP get missed slot
* missed in commit
* reverting changes onfeedback
* reverting bazel
* using the current or head slots for events
* fixing linting
* use emitSlot
* fixing time and preRando change
* updating based on feedback
* fixing linting
* clarifying variable
* removing useless if statement
* fixing function to use the current slot+1
* updating based on feedback
* fixing unit tests
* missed dependency injection
* fixing linting
2023-03-17 14:25:36 -05:00
terencechain
d17996f8b0
Update to V4 🚀 ( #12134 )
...
* Update V3 from V4
* Fix build v3 -> v4
* Update ssz
* Update beacon_chain.pb.go
* Fix formatter import
* Update update-mockgen.sh comment to v4
* Fix conflicts. Pass build and tests
* Fix test
2023-03-17 18:52:56 +00:00
terencechain
7d82a0510f
Fix typos from bls pool metric PR ( #12155 )
2023-03-17 16:00:07 +00:00
Nishant Das
3072b17329
Fully Deprecate Batch Aggregation Flag ( #12151 )
...
* fix evaluator
* fmt
* config
2023-03-17 12:09:28 +00:00
Nishant Das
e58b66f76d
Fully Deprecate Vectorized HTR Flag ( #12148 )
...
* cleanup
* gaz
* fix tests
* remove unused hasher
* gaz
* fix last one
* fix tests
* fmt
2023-03-17 11:41:02 +00:00
Nishant Das
a937d78711
Remove Disable Flag For Doubly Linked Tree ( #12141 )
...
* deprecate
* remove this as the feature never worked
* fix
2023-03-17 11:08:05 +00:00
Nishant Das
5243ca7d64
Deprecate Reorg Flag Correctly ( #12147 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-17 10:26:58 +00:00
Nishant Das
04b0a84de1
Disable E2E Run For Slasher ( #12150 )
...
* fix evaluator
* fix tests
2023-03-17 10:08:56 +00:00
Potuz
5beb5e8912
Invert reorg of late blocks flag ( #12146 )
...
* Invert reorg of late blocks flag
* add flag to beacon node
2023-03-16 22:44:24 -03:00
Potuz
99997fa2e3
forkchoice changes ( #12126 )
...
* forkchoice changes
* gazelle
* remove best justified from forkchoice dump
* keep protobufs and update comment
* remove phase0 tests
* bumb spectests version
* missing sha
* Fix sha256 for spec
* rpc tests
* Mark field 3 as reserved so it will never be used it again
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-03-16 14:27:30 -03:00
Nishant Das
5ea6e32d6c
Remove Deprecated HTTP Provider Flag ( #12140 )
...
* remove deprecated http provider flag
* test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-16 12:15:02 +00:00
Nishant Das
ab407809f0
Remove Deprecated Flags ( #12139 )
2023-03-16 11:54:02 +00:00
Nishant Das
4d28d69fd9
Make Peer Scorer Permanent Default ( #12138 )
...
* add changes
* gaz
* fix
2023-03-16 18:52:49 +08:00
Patrice Vignola
3802761088
Fix the TestEndToEnd_Slasher_MinimalConfig test ( #12116 )
...
* WIP
* WIP
* WIP
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-15 19:15:46 +00:00
terencechain
2669c93375
Add bls pool metric ( #12133 )
...
* Add metric gauge for bls to exec pool count
* Fix
* Fix
* Gazelle
2023-03-15 14:12:21 +00:00
Patrice Vignola
ce32453c7b
Remove unused beacon chain altair mocks ( #12095 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-03-15 13:12:34 +00:00
Nishant Das
ee8cb8bd6f
Update Pubsub Library ( #12132 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-15 12:51:42 +00:00
Sammy Rosso
be4ef54482
Prysmctl add eth1Data to genesis state ( #12125 )
...
* Add Eth1Data to genesis state
* James' review
* Nishant' review
2023-03-15 20:31:57 +08:00
james-prysm
0c025ab719
prysmctl: fix withdrawals fork checking logic ( #12130 )
...
* coded based on suggestions from slack
* fixing linting
* removing unused flags and space
* small improvement to log
2023-03-15 12:32:11 +08:00
james-prysm
b180a7de81
Prysm V4: SSE api adding payload_attributes ( #12102 )
2023-03-14 19:04:31 -07:00
terencechain
5c234c8c68
Mark GetChainHead deprecated ( #12128 )
...
* Mark GetChainHead deprecated
* Add deprecation notice to protobuf definition
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon_chain.pb.go
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-14 21:06:34 +00:00
james-prysm
f92d492e33
use headblock for prunePostBlockOperationPools, remove duplicate markInclusionBLStoExecutionChange calls ( #12085 )
...
* removing duplicate function
* moved markInclusion for bls to use headblock instead of processed block
* updating based on internal feedback
* addressing some comments
* addressing feedback from slack
* fixing conflict
* making changes based on suggestions on slack
* reverting a change
* making chases based on potuz's comments
* removing one additional block copy
* clarifying comments
2023-03-14 15:23:11 -05:00
int88
a926028e45
fix error message in TestStateSummary_CanDelete ( #12123 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2023-03-14 18:17:32 +00:00
Sammy Rosso
49f0c44dfe
Add getpayloadbodies ( #11973 )
...
* el payload bodies code
* Add getPayloadBodies
* Add error 38004
* Add unmarshal
* Add ExecutionPayloadBodyV1 to proto
* Add EnableCapellaEngineMethods flag
* Small fixes
* Add proto files
* gazelle
* passing tests
* compile
* Add remaining tests
* fix tests
* Cleanup
* Fix gazelle
* Remove comments
* Rename the flag + add missing description
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-14 15:52:16 +00:00
Sammy Rosso
8aec170f9b
Eip4881: Tests ( #11754 )
2023-03-14 08:29:48 -07:00
Nishant Das
cc764c346b
Run Altair Fork Transition ( #12124 )
2023-03-14 13:59:26 +00:00
james-prysm
7d5d30ac94
validator startup deadline bug ( #12049 )
...
* trying fix for validator startup deadline
* updating deadline duration to be set by params
* adding a runner test
* trying nishant's suggestion
* editing based on review feedback
* reverting a change
* fixing epoch deadline
* reverting aliasing
2023-03-14 12:52:56 +08:00
Preston Van Loon
f6eb42b761
Update bazel to 6.1.0 ( #12121 )
...
* Update references for cc toolchain after removal of @bazel_tools//cpp/cc_toolchain_config.bzl in 1727361563
* Update to bazel 6.1.0
* Update cross-toolchain configs
2023-03-13 23:17:26 +00:00
Preston Van Loon
39fe29d8f4
Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar ( #12120 )
...
* Replace @bazel pkg_tar rule with canonical @rules_pkg pkg_tar
* gazelle on workspace
2023-03-13 20:17:12 +00:00
Preston Van Loon
81fbfceea8
Update rules_go to v0.38.1 and go_version to 1.19.7 ( #12055 )
...
* Update rules_go to v0.38.1
* Bump go version
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-13 19:22:37 +00:00
Preston Van Loon
a0ff5ff792
Only build non-test targets in hack/update-go-pbs.sh ( #12101 )
...
* Only build non-test targets in hack/update-go-pbs.sh
* run ./hack/update-go-pbs.sh
* Add ability to pass config to bazel
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 17:49:34 +00:00
Potuz
4528ea8d0d
Gate GetProposerHead behind the feature flag ( #12110 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 17:20:01 +00:00
terencechain
00b9e484e5
Cleanups from eip4844 branch ( #12109 )
...
* Minor cleanups from eip4844 branch
* Add back handler
* Fix gazelle
* More fixes
* More fixes
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-10 16:46:27 +00:00
Preston Van Loon
5eaa152589
Bazel: fix remote cache uploads ( #12108 )
2023-03-10 00:24:37 +00:00
Potuz
6d3ff65635
increase attempted reorgs at the right spot ( #12106 )
2023-03-09 15:06:46 +00:00
Marius van der Wijden
83a294c1a5
go.mod: set a non-zero version for tx-fuzz ( #12098 )
...
* go.mod: set a non-zero version for tx-fuzz
* go.mod: use upstream tx-fuzz instead of fork
* run gazelle
* fix tests
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-03-09 09:23:45 +00:00
james-prysm
753e285fb6
Prysm V4: Remove Prysm Remote Signer ( #11895 )
...
* removing all prysm remote signer code
* fixing unit tests
* resolving more build issues
* resolving deepsource complaint
* fixing lint
* trying to fix bazel library
* trying testonly true
* removing assert and require from non test settings
* fixing bazel and tests
* removing more unused files related to remote signer
* fixing linting
* reverting some changes
* reverting a change that broke some code
* removing typo
* fixing unit test
* fixing mnemonic information
2023-03-08 21:21:12 -06:00
Potuz
525d3b05a6
Late block reorgs metrics and logs ( #12097 )
...
* Late block reorgs metrics and logs
* tests
* mixed thresholds
* use threshold variables
* use infof
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-03-09 01:51:50 +00:00
Nishant Das
4f38ba38b7
Update Libp2p ( #12096 )
...
* update deps
* add preston's fix
* fix build
* gaz
* test fixes
2023-03-08 23:52:51 +08:00
Potuz
eb0b5a6146
Do not call repeated times FCU ( #12091 )
...
* Do not call repeated times FCU
* cleanup
* only log if prune attestations fail
2023-03-08 09:36:46 -03:00
Preston Van Loon
4356cbc352
Update cross compile toolchains ( #12069 )
...
* Regenerate cross-toolchain configs
* Remove some extra whitespaces
* Run gazelle and add that note to the README
* Format numbered lists better in markdown
* gcloud docker command is deprecated, just use docker
* Add comment about docker credentials for gcr.io
* Update dockerfile, some remote executor config work
* gazelle
* Remove commented lines
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-07 20:09:46 +00:00
kasey
0893821e35
Disable conditional go 1.20 code until module is also at 1.20 ( #12084 )
...
* disable conditional go 1.20 code until we upgrade
* bazel decided this was unreachable and removed it!
---------
Co-authored-by: kasey <kasey@users.noreply.github.com >
2023-03-07 16:25:35 +00:00
Bret
c3346fefa7
Fix log messages ( #12086 )
...
These two log messages were appending a `d` to the hash. When compared to the other hash, they matched up until the `d`
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-03-07 07:16:39 +00:00
Nishant Das
d639a26bbe
Fix E2E Flakes ( #12074 )
...
* fix flakes
* make it longer
* make it less to prevent triggering of other issues
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-07 04:15:51 +00:00
Potuz
bb95d951cc
Use Epoch boundary cache to retrieve balances ( #12083 )
...
* Use Epoch boundary cache to retrieve balances
* save boundary states before inserting to forkchoice
* move up last block save
* remove boundary checks on balances
* fix ordering
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-06 21:42:47 +00:00
terencechain
78d49fda13
Minor cleanup to forkchoice pkg ( #12078 )
...
* Minor cleanup to forkchoice pkg
* Rm implementation
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-06 17:01:36 +00:00
Nishant Das
3aaba7c065
Remove Feature Flag From Prater ( #12082 )
2023-03-06 09:56:53 +00:00
terencechain
b8a1bcdfe3
Circuit breaker: lower max builder epoch missed slots to 5 ( #12076 )
...
* Circuit breaker: lower max builder epoch missed slots to 5
* Change equality to >=
* Fix tests
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-05 19:10:41 +00:00
Potuz
93514de00f
Proposer head v5 ( #12075 )
...
* Use ShouldOverrideFCU in regular sync
* fix build
* fix tests
* add feature flag gate in updatehead
* fix rpc tests
* fix grcp tests
* deepsource
* add locks and reuse isNewProposer
* flip flag
* Fix ticker for late blocks
* implement get_proposer_head in GetBeaconBlock
* fix unit tests
2023-03-04 20:19:23 -03:00
terencechain
86a883aa19
Add capella fork epoch for Goerli ( #12073 )
...
* Add capella fork epoch for Goerli
* update pr
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
2023-03-04 09:43:20 +00:00
Preston Van Loon
c000e8fde5
Raise the max grpc message size to a very large value by default ( #12072 )
...
* Raise the max grpc message size to a very large value by default
* unused import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 19:04:58 +00:00
dependabot[bot]
75e5887f07
Bump golang.org/x/net from 0.6.0 to 0.7.0 ( #12063 )
...
* Bump golang.org/x/net from 0.6.0 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
* gazelle
* go mod tidy
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 17:37:16 +00:00
Radosław Kapka
4ca3c5b058
Add slot to proposal error logs ( #12071 )
...
* Add slot to proposal error logs
* remove one field
2023-03-02 16:33:39 +00:00
Radosław Kapka
25d06d41be
Fix type name in field_trie_helpers error message ( #12070 )
...
(cherry picked from commit bc9330c329 )
2023-03-02 14:33:22 +00:00
Potuz
0a87210514
Forkchoice external locks v2 ( #12036 )
...
* write locks
* fix forkchoice tests
* blockchain locks
* lock on IsOptimistic
* use forkchoice instead of chaininfo within savehead
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* don't write lock wrappers
* fix validateBeaconBlock
* Terence's review and more missing locks
* add lock for InForkChoice
* lock head on fillMissingBlockPayload
* fix lock on IsOptimisticForRoot
* fix lock in fillMissingBlockPayloadId
* extra comments
* lock proposerBoost on spectests
* nishant's review
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-02 09:10:52 -03:00
Nishant Das
196798eacc
Update Deps For Capella ( #12067 )
...
* update
* gzl
* Using zstd workaround from @tals, per github.com/bazelbuild/rules_go/issues/3411
* gaz
* hacky patch
---------
Co-authored-by: rkapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-02 03:31:41 +00:00
Radosław Kapka
17fe935343
Deprecate --interop-genesis-state ( #12008 )
...
* Deprecaste `--interop-genesis-state`
* better pattern
* fix errors
* test fix
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-03-01 19:39:17 +00:00
Radosław Kapka
ac4483417d
Redesign voluntary exits pool ( #11898 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-01 17:44:00 +01:00
Potuz
0d3fb0a32b
lock head on fillMissingBlockPayload ( #12068 )
2023-03-01 13:09:10 +00:00
Nishant Das
3d337b07e1
Remove Ropsten Testnet Config ( #12058 )
...
* remove support for ropsten testnet
* add deprecated flag for ropsten
---------
Co-authored-by: P <1674920+peterbitfly@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-03-01 13:26:32 +08:00
Raul Jordan
11b90e1f63
Store Blinded Beacon Blocks by Default for New Prysm Databases ( #11591 )
...
* fresh database checks
* gaz
* fix up tests
* fix test
* build
* bellatrix pass tests
* fix flags
* gaz
* fix up rpc test
* gaz
* building
* refactor, remove boolean blindness
* kv blocks
* fix up ensure coverage
* e2e default
* add missing case
* nishant feedback:
* log
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-01 00:07:23 +00:00
Preston Van Loon
3c73bac798
Update protoc-gen-go-cast to suppress tool output ( #12062 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-28 23:04:22 +00:00
Preston Van Loon
91fee5db17
Update distroless base images ( #12061 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-28 22:50:37 +00:00
Preston Van Loon
155b0c161e
Bazel: cleanup .bazelrc file ( #12059 )
...
* Reorganize bazelrc and intro new flags
* move cross compilation toolchain into its own bazelrc
* Restore build_tests_only
2023-02-28 21:36:43 +00:00
Nishant Das
a7010d817d
Fix Scenario Test Failures ( #12056 )
...
* fix scenario failures
* fix up
* continue fixing
2023-02-28 23:21:15 +08:00
james-prysm
c0dd233a1c
E2E: beacon api post attester duties ( #11899 )
...
* adding new post request util and attester duties test
* adding in status checks
* fixing error
* increasing size of request
* fixing gofmt
2023-02-28 13:35:02 +08:00
Preston Van Loon
c391fad258
Update rules docker to v0.25.0 ( #12054 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-02-27 23:46:10 +00:00
Radosław Kapka
e92b546a36
Return proposer reward from ProcessSyncAggregate ( #12047 )
2023-02-27 19:04:23 +01:00
Patrice Vignola
765345ac3a
Remove the gRPC fallback client from the validator REST API ( #12051 )
2023-02-27 12:46:34 +00:00
Potuz
ec13d52f03
Remove VerifyFinalizedBlkDescendant ( #12046 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
* remove VerifyFinalizedBlkDescendant
* fix validateBeaconBlock
2023-02-25 13:39:13 -03:00
Manu NALEPA
08ebc99bc3
Add (lack of) REST implementation for GetFeeRecipientByPubKey ( #11991 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-02-24 21:43:52 +00:00
james-prysm
8918e8c274
prysmctl: check capella fork for blstoexecutionchange ( #12039 )
...
* adding in a check for current fork to disable submission prior
* fixing linting
* fixing error return
* updating error contains in test
* fixing unit test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-24 16:28:32 +00:00
Patrice Vignola
0e4185b40c
Remove the StreamDuties endpoint ( #12044 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-24 15:56:31 +00:00
Nishant Das
383edb3553
Fix Validator Participation Evaluator ( #12045 )
...
* fix bug
* remove proto changes
2023-02-24 10:39:06 +00:00
james-prysm
40589905bc
Prysm V4: Web3signer changes for capella ( #12001 )
...
* adding in changes for capella
* fixing metrics
* updating the web3signer version
2023-02-24 06:21:39 +00:00
Potuz
ae76240f83
Use forkchoice HasNode to check if a block is consistent with finality ( #12040 )
...
* Use forkchoice HasNode to check if a block is consistent with finality
* interface fix
* fix tests
2023-02-23 21:21:34 +00:00
Radosław Kapka
096cf7b8c1
Test invalid change inclusion in blstoexec pool ( #12037 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 17:18:37 +00:00
james-prysm
7c3027801b
Prysm v4 - mark old endpoints for deprecation ( #11997 )
...
* updating some protos
* updating proto endpoints
* updating generated code
* fixing linting
* updating protos
* updating based on feedback. also removing unused storage protos
* adding in deprecation notice on the server functions
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/debug.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/v1/beacon_chain.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/prysm/v1alpha1/health.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update proto/eth/service/beacon_chain_service.proto
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing feedback
* rewording comment
* updating comments
---------
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 16:32:03 +00:00
Raul Jordan
8f6d5ff075
Web-ui-version-v2.0.3-commit ( #12038 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2023-02-23 10:11:42 -06:00
james-prysm
c379c9ea47
Prysm V4 - Deprecate web UI endpoints ( #12025 )
...
* wip adding deprecation to web api endpoints
* wip adding more deprecation notices
* adding in a few more deprecation markers
* updating order of comments
2023-02-23 15:24:06 +00:00
Radosław Kapka
75e8f85ba5
Handle EL offline/unavailable in getSyncingStatus ( #12031 )
...
* Handle EL offline/unavailable in `getSyncingStatus`
* fix type
* better name
* test fix
2023-02-23 12:09:56 +00:00
Nishant Das
8d82ca08ab
Allow Testing Of Withdrawals On E2E Mainnet ( #12027 )
2023-02-23 12:04:53 +01:00
Radosław Kapka
29f645f0cc
Add Eth-Consensus-Version header to SubmitBlindedBlock ( #12029 )
...
* Add `Eth-Consensus-Version` header to `SubmitBlindedBlock`
* bring back function
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:42:05 +00:00
Radosław Kapka
15016555f5
Remove SubmitBlindedBlockCapella ( #12030 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:06:52 +00:00
Potuz
98d2d5f324
implement get_proposer_head ( #12022 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 16:40:01 +00:00
Nishant Das
a4579398cb
Add Clarifying Comments for Withdrawal Functions ( #12028 )
2023-02-22 11:00:36 +00:00
Pedro Gomes
094ff877f6
Fix NPE, ensure the listener is available ( #11946 )
...
* Fix NPE, ensure the listener is available
* Added test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-22 06:53:09 +00:00
terencechain
9ccfe17227
Check unblinded payload root before proposal ( #12026 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 02:28:59 +00:00
Manuel Caspari
bf25b34ac1
Fix error handling when using BatchCall ( #11960 )
...
* fix error handling when using BatchCall
* fix typo
* simplify code
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-22 01:42:43 +00:00
terencechain
da69af9b6e
Fix first bellatrix block when using mev-boost ( #12019 )
...
* Update head before block proposal
* Fix first bellatrix block when using mev-boost
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 00:42:51 +00:00
terencechain
3c8f5deb66
Add v1.3.0-rc.3 spec tests ( #12024 )
...
* Add v1.3.0-rc.3 spec tests
* Replace 4844 with deneb
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-21 23:01:32 +00:00
Potuz
dc5cf88243
Do not check signatures when packing BLS changes ( #12021 )
...
* Do not check signatures when packing BLS changes
* gaz
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-02-21 22:18:54 +00:00
terencechain
0c52064d90
Engine API: fix blockValue endianness conversion ( #12018 )
2023-02-21 13:42:32 -08:00
Preston Van Loon
032f9b7450
Update general spectest tar.gz SHA value ( #12023 )
...
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-02-21 15:45:20 +00:00
Potuz
166f7119ec
Implement should_override_forkchoice_update ( #11981 )
...
* Implement should_override_forchoice_update
* add tests
* remove unused exported function
* go mod tidy
* fix go mod
* Fix go mod tidy
* Fix context import
* mod tidy
* fix test
* Terence's review
* fix test
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2023-02-18 07:37:03 -03:00
Potuz
b687d29d02
Forkchoice interface cleanup ( #12010 )
...
* remove AllTipsAreInvalid
* rename InsertOptimisticChain
* remove proposer boost interface
* remove HasParent
2023-02-17 17:36:52 +00:00
terencechain
2839f2c124
Proposer compare withdrawal roots ( #11977 )
...
* Proposer use highest value payload vs header
* Default to interface for changes
* Clean up
* Clean up
* Clean up
* Capella condition
* Proposer compare withdrawal roots
* Add unit test
* Fix test
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:20:12 +00:00
Potuz
3d0ecdff3f
Fix forkchoice endpoint path ( #11986 )
...
* fix endpoint path
* update protos
* fix double import
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 13:45:25 +00:00
terencechain
481d24cb1b
Update head before block proposal ( #11992 )
...
* Update head before block proposal
* Move before opt sync
* Fix test
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 08:41:26 +00:00
Nishant Das
7d7c91c17f
Fix Failing E2E Runs ( #11993 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 08:08:54 +00:00
terencechain
a6dd561b9d
Process blind withdrawals ( #11995 )
...
* Update head before block proposal
* fix e2e runs
* Can process blind withdrwals
* Rm bad change
* Should be in process payload header
* Version check
* Compare roots
* Typo
* Remove redundant checks
* Add tests
* Rm errors
---------
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-17 15:49:30 +08:00
Potuz
c7f0a94b19
Remove state balance cache ( #11964 )
...
* Remove state balance cache
* remove unused metrics
* add missing balance update
* add comment about locks
* update balance only when updataing the justified checkpoint on unrealization
* update checkpoint balances at launch
* fix unit tests
* fix remaining test
* review
* fix build file
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-15 14:19:46 +00:00
terencechain
f49720209e
Utilize head only state on rpc endpoints ( #11950 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-02-14 19:57:11 +00:00
Nishant Das
2d03c233b8
Add Support For Multiclient E2E in Capella ( #11989 )
...
* add support for it
* fix it up
2023-02-14 13:05:54 -06:00
Dhruv Bodani
bc643f8872
Add REST implementation for SubmitAggregateSelectionProof ( #11980 )
...
* add implementation of submit aggregate selection proof
* add tests
* handle head optimistic case
* fix imports
* address deepsource errors
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-14 11:25:21 +00:00
Potuz
fa4c9beb13
Only pack attestations and deposits if no err ( #11987 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-14 06:12:59 +00:00
Nishant Das
449d767294
Fix Bandwith Limiter Panic ( #11988 )
2023-02-14 05:44:20 +00:00
Manu NALEPA
93298dfc56
Fix #11948 and reduces call to GetFeeRecipientByPubKey only in ListFeeRecipientByPubkey in nothing is defined in VC ( #11970 )
...
* Fix #11948 and reduces call to `GetFeeRecipientByPubKey` only in `ListFeeRecipientByPubkey` in nothing is defined in VC
* Fix typo
2023-02-14 04:53:54 +00:00
Patrice Vignola
791110f795
Add REST implementation for Validator's StreamBlocksAltair ( #11974 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-13 14:22:11 +01:00
Nishant Das
63186c8b0f
Fix Batch Requesting Of Headers ( #11982 )
...
* fix bug
* remove
2023-02-11 01:38:13 +00:00
terencechain
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08:00
Sammy Rosso
81b29ea2d8
Update produce block funcs to support Capella ( #11959 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2023-02-10 17:20:38 +01:00
terencechain
71b4468be6
Add Capella fork epoch for Sepolia ( #11979 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-10 10:46:39 +00:00
Nishant Das
76ed634f73
Capella E2E ( #11951 )
...
* save changes
* fix build
* fix build
* fix signatures
* fix
* fix
* finally fix it
* mainnet
* deps
* make it 10
* back to phase0
* fix build
* gofmt
* etherbase
* rm logs
* build
* james review
* fix yaml
* Update testing/endtoend/evaluators/fork.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-10 14:19:15 +08:00
Dhruv Bodani
5092738be6
add REST implementation for GetSyncSubcommitteeIndex ( #11971 )
...
* add implementation for GetSyncSubcommitteeIndex
* fix goimports
* update error parsing for validator sync committee index
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
* fix imports
---------
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-09 10:03:32 +00:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
terencechain
e1f7c52e6b
Add and use SignedBeaconBlockWriteOnly ( #11968 )
2023-02-08 08:39:14 -08:00
Potuz
0d6e8718fd
Aditya's PR 18 ( #11945 )
...
* Aditya's PR 18
This PR implements PR18. There is still a missing piece which is
consistency of head with finalized checkpoint. I will think on ways to
enforce this.
* prune finalized incompatible
* don't check finalization on viable for head
* unit tests fixes
* gazelle
* remove finalized epoch from viableForHead
* remove finalized epoch from leadsToViableHead
* use non-slashed indices
* function rename
* lint fixes
* lint fixes
* lint fixes
2023-02-05 09:40:07 -03:00
a
4f6cb3209d
Generic map ( #11953 )
...
* generic-map
* add tx bench
* fix keys
* rename functions to hopfully make static lint hapy
* reduce a line :)
* remove generic map
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-02 17:59:51 +00:00
Radosław Kapka
dc4440abe7
Small cleanup ( #11963 )
2023-02-02 17:24:09 +00:00
terencechain
23c4cc0249
Prune canonical attestations when head changes ( #11771 )
...
* Only prune canonical attestations
* Feedback from potuz
* Merge conflict
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 16:53:01 +00:00
terencechain
9e15316351
Enhance block arrival delay metrics by adding a gauge ( #11897 )
...
* Enhance block arrival delay metrics
* Remove histograms
* Revert histogram
* Rm new line
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-02 15:43:25 +00:00
Potuz
0d01debe9a
reuse code from stategen in the justified balance cache ( #11961 )
...
* add balance cache tests to testsuite
* reuse code from stategen in the justified balance cache
* remove state getters from the balance cache
* fix unit tests
* rebase on 11962
* unused error
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-02 14:53:08 +00:00
Potuz
1b11a9672a
add balance cache tests to testsuite ( #11962 )
2023-02-02 13:41:44 +00:00
Nishant Das
5e89dac9f0
pin it ( #11958 )
2023-02-02 06:55:15 -03:00
Potuz
2579242669
modify slice in place ( #11956 )
...
* modify slice in place
* unit test
* comment explaning function
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-02-02 00:01:46 +00:00
terencechain
529d48d0c5
Capella: use builder ( #11906 )
2023-02-01 08:24:51 -08:00
Raul Jordan
b8bbeae740
Introduce Thread Safe Map Data Structure ( #11940 )
...
* fix thread safety issue
* gazelle
* push up benchmarks
* rev
* rem keys method
* shallow copy
* fxi
2023-02-01 14:32:01 +00:00
terencechain
59cb9f0dd7
Use head state only for bls messages broadcast ( #11949 )
...
* Use head state only for bls messages broadcast
* Fix build
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-02-01 06:01:10 +00:00
Radosław Kapka
b10e59a144
Add finalized flag to API responses ( #11947 )
...
* server code
(cherry picked from commit fc68e6e78f2a84c66cd6c4db2a482cccdaf487d5)
* tests
* middleware
* more tests
* fix one more test
2023-01-31 17:58:16 -06:00
terencechain
c070283bf1
Call FCU with attribute on non head block ( #11919 )
...
* Call FCU with attribute on non head block
* Fix condition
* Filer save head
* Refactor
* Rm
* Add tests
* Fix race test
* Potuz feedback
* Reorder r != currentHeadRoot
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 19:17:16 +00:00
Nishant Das
3f67818a65
Utilize Read Only Head State ( #11932 )
2023-01-31 10:41:53 -08:00
Manu NALEPA
847835534d
Validator client: Add missing endpoint.DeleteRequest - Fixes #11943 ( #11944 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-31 18:01:51 +00:00
Potuz
c2194c57b7
Rate limit broadcasting of BLS changes at the fork and at RPC endpoint ( #11936 )
2023-01-31 09:31:22 -08:00
int88
bd83018e76
delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap ( #11813 )
...
* delete from s.nodeByPayload as well when pruneFinalizedNodeByRootMap
* regresstion test
* add different payload node
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-31 10:53:29 +00:00
terencechain
39114e6817
Use copied head state for metrics reporting ( #11933 )
...
* Use copied head state
* Move metrics to the end
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 10:07:27 +00:00
terencechain
67a9701e06
Add spec tests v1.3.0 rc.2 ( #11929 )
...
* Update test
* Fix shas
* Fix shas
* Use hotfix path for spectests
* Gazelle
---------
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 09:42:09 +00:00
Nishant Das
5dc7741b30
Revert Bazel Hash Change ( #11941 )
2023-01-31 09:17:14 +00:00
james-prysm
53a135adbd
update-go-pbs.sh: fixing script for mac users & updating bazel dependency ( #11937 )
...
* fixing script for mac users
* updating checksum for bazel tool
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-31 01:17:12 +00:00
Raul Jordan
950d0c0282
Update Bazel Grail Toolchain SHA and Protect Digest Map with Lock ( #11939 )
...
* lock digest map
* imports
* toolchain update
2023-01-30 22:40:48 +00:00
Nishant Das
e8c25effb0
Cache Fork Digest Computation ( #11931 )
2023-01-29 16:07:50 +00:00
Potuz
cc454bb42c
Cycle the BLS changes pool when falling below a threshold ( #11873 )
...
* Cycle the BLS changes pool when falling below a threshold
* move cycle logic within pool
* set threshold at 2000
* fix conflict
* more fixes
---------
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-28 14:42:03 +00:00
Sammy Rosso
9529c73ff1
EIP-4881: Spec implementation ( #11720 )
...
* Initial spec rewrite
* Finish adding merkle tree implementation
* Last bits
* Move reverse function
* Add comments
* Add deposit tree snapshot
* Add deposit tree
* Add comments + cleanup
* Fixes
* Add missing errors
* Small fixes
* Add unhandled error
* Cleanup
* Fix unsafe file.Close
* Add missing comments
* Small fixes
* Address some of deepSource' compaints
* Add depositCount check
* Add finalizedDeposit check
* Replace pointer magic with copy()
* Add test for slice reversal
* add back bytes method
* Add package level description
* Remove zerohash gen and add additional checks
* Add additional comments
* Small lint fixes
* Forgot an error
* Small fixes
* Move Uint64ToBytesLittleEndian32 + test
* Fix uint subtraction issue
* Move mixInLength below error handling
* Fix
* Fix deposit root
---------
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 17:35:25 +00:00
terencechain
eca129d8ff
Better log for block that never became head ( #11917 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:58:43 -05:00
terencechain
53a4939da4
Use correct attribute if there's a payload ID cache miss ( #11918 )
...
* Use correct attribute if there's a payload ID cache miss
* Test
* Default case unknown state version
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-27 11:13:47 +00:00
Manu NALEPA
efc1e06c6b
Validator client beacon api non functional fixes ( #11915 )
...
* Validator Client Beacon API: Use Go idiomatic error handling
* Validator Client Beacon API: Use `buildURL`
`buildURL` sort params by keys.
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-27 10:44:23 +00:00
james-prysm
07210d7360
prysmctl: withdrawal ux improvement ( #11909 )
...
* adjusting submit bls to not early exit function in partial success
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-27 09:57:36 +00:00
Sammy Rosso
9136d30121
Return error when using unsupported mnemonic language ( #11805 )
...
* Return error when using unsupported mnemonic language
* Fix failing tests
* More test fixes
* Add MnemonicLanguage to CreateWalletRequest
* Add MnemonicLanguage to remaining tests
* Add language to error
* Add missing (.)
* Set default language + fix renumbered fields
* Replace hardcoded language with default var
* default set
* gaz
* fix proto field setting
* fix up
* Remove WithMnemonicLanguage from tests
* Remove WithMnemonicLanguage from tests
* Fix conflicting information failure
* Gazelle + remove hardcoded english values
* fix
* Fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-26 23:44:38 +00:00
Potuz
56907bb2c6
Randomize bls changes at fork ( #11923 )
...
* Rate Limit broadcasting of BLS changes
* Rate limit BLS changes broadcasting
* random
* linting
* mock test
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-26 23:13:28 +00:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Radosław Kapka
a296a0c783
Update builder code to Capella ( #11904 )
2023-01-26 14:07:44 +01:00
Guillaume Ballet
c6338e3a31
beacon-chain, config: get consensus values from beacon config ( #11798 )
...
* beacon-chain, config: get consensus values from beacon config
* review feedback
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-25 10:42:03 +00:00
terencechain
0a4b0a68d3
Clean up unused code ( #11900 )
...
* Clean up unused code
* More unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-25 10:09:14 +00:00
james-prysm
f9dd462338
PrepareBeaconProposer: bug fix ( #11912 )
...
* fixing bug and adding unit test
* reverting small change
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 22:47:26 +00:00
Potuz
943eb93a57
save genesis state to hot cache and do not look it up from disk ( #11911 )
...
* do not lookup genesis state from disk
* make sure genesis state is saved
* fix tests
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
2023-01-24 23:14:50 +01:00
Potuz
9619170df1
Return error structures from bls changes endpoint ( #11908 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 15:58:43 +00:00
james-prysm
4da0abace7
validator exit test ( #11910 )
...
* adding exit test
* fixing deep source errors
2023-01-24 15:26:58 +00:00
Patrice Vignola
d919f800e3
Add REST implementation for Validator's GetDuties ( #11893 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Address PR comments
* Remove duplicate import
* Fix build break
* WIP
* WIP
* WIP
* Add valid test case for getDutiesForEpoch
* Add failure tests for getDuties
* Revert test change
* Address PR comments
* Address PR comments
Co-authored-by: Emmanuel NALEPA <emmanuel.nalepa@kiln.fi >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-24 14:33:29 +00:00
james-prysm
38f095d556
prysmctl: changeblstoexecutionaddress ( withdrawals) ( #11790 )
...
* adding unit test for withdrawal
* updating to handle api changes
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* updating based on feedback
* rewording prints
* Update cmd/prysmctl/withdrawal/withdrawal.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* add error handling when status not ok
* addressing some of the feedback, adding new tests
* adding unit test with error return
* adjusting based on review comments
* addressing more comments and fixing unit test
* updating prompts
* migrating some functions to api/client
* removing unused function
* adding review feedback
* removing unused functions
* migrating command, old command under accounts still exist
* reverting tos.go
* fixing bazel lint
* fixing build
* resolving unused parameter caught by deepsource
* fixing unit tests
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* adding in website
* addressing review comment
* adding new verify only flag
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/beacon/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/withdraw.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing comments
* fixing unit test
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* Update cmd/prysmctl/validator/cmd.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* adjusting object for new provided format
* adding omit empty
* fixing unit test, and linting
* adjusting based on cli changes
* fixing test data and metadata property
* addressing backwards compatability
* reverting based on review comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 10:05:55 +00:00
Potuz
04010d45c8
Do not check headstate being Capella for BLS changes on gossip ( #11902 )
...
* Do not check headstate being Capella for BLS changes on gossip
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-24 00:11:26 +00:00
Radosław Kapka
1a048a2f2a
Refactor BLS change pool ( #11894 )
...
* Refactor BLS change pool
* update mock's signature
* do not return error from `MarkIncluded`
* fix tests
* fix mock's signature
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-23 14:11:45 +00:00
terencechain
3df2dedbb2
Exit properly with terminal block hash ( #11892 )
2023-01-23 14:27:36 +01:00
Potuz
2fee906d25
Use LIFO instead of FIFO when packing BLS changes ( #11896 )
2023-01-20 16:30:42 +00:00
Sammy Rosso
9f44d6e452
Add flag for custom slasher database directory ( #11890 )
...
* Add slasher database directory flag
* Fix up some beacon chain flag uses
* fmt
Co-authored-by: rauljordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 21:52:53 +00:00
Patrice Vignola
55f311eb73
Add REST implementation for Validator's SubscribeCommitteeSubnets ( #11804 )
...
* WIP
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Remove redundant test
* Initialize dutiesProvider
* Remove duplicate import
* Fix build break
* Address PR comments
* Remove file committed by mistake
* Fix broken test
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-18 21:21:07 +00:00
Manu NALEPA
0f90bacac9
Add REST implementation for CheckDoppelGanger ( #11835 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* Address PR comments
* Add REST implementation for `CheckDoppelGanger`
* Use context
* Fix comments
* Fix PR comments
* Fix PR comments
* remove blank lines
* Fix comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-18 16:13:45 +00:00
Radosław Kapka
30974039f3
Small adjustments to Beacon API ( #11874 )
...
* better `fillDBTestBlocks`
* error when submitting unknown block type
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-18 12:15:25 +00:00
int88
3392ecb3e1
fix TestVotes_CanFindHead ( #11821 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-18 10:54:44 +00:00
Nishant Das
fa2b64f702
Remove Unused Block Setter ( #11889 )
...
* remove methods
* remove mock
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-18 08:56:44 +00:00
omahs
6f5e35f08a
Fix: typos ( #11885 )
...
* Fix: typo
Fix: typo
* Fix: typos
Fix: typos
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-18 15:21:58 +08:00
terencechain
79d6ce45ad
Add capella's marshal and unmarshal ( #11879 )
...
* Add capella's marshal and unmarshal
* skip test
* Fix TestJsonMarshalUnmarshal/execution_payload_Capella
* Fixing test
* Skip http test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 23:44:59 +00:00
terencechain
73cd7df679
Add capella fork version for Sepolia testnet ( #11888 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:51:01 +00:00
Nishant Das
d084d5a979
Add Disable Staking Contract Check Flag ( #11886 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 19:00:30 +00:00
Sammy Rosso
db6b1c15c4
Add additional tests to bytesutil ( #11877 )
...
* Add missing tests from bytes.go and integers.go
* Fix failing test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-01-17 17:54:43 +00:00
Dhruv Bodani
7c9bff489e
Add REST implementation for GetSyncCommitteeContribution ( #11875 )
...
* add REST implementation for GetSyncCommitteeContribution
* fix imports
* Update validator/client/beacon-api/sync_committee.go
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-17 16:43:22 +00:00
Nishant Das
1fca73d761
Delete interop.Dockerfile ( #11887 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 15:09:32 +00:00
Potuz
fbafbdd62c
Stream blocks capella ( #11883 )
...
* capella blocks stream
* add unit tests
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-17 12:17:18 +00:00
Potuz
75d98cf9af
Do not log an overflow computing Capella's slot start ( #11884 )
...
* Do not log an overflow computing Capella's slot start
* nishant's review
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-17 10:59:51 +00:00
Radosław Kapka
96401e734e
Implement bls_to_execution_change API event ( #11865 )
...
* Implement `bls_to_execution_change` API event
(cherry picked from commit 1c8a2c580b3664e1238380138dc65c30e238cb11)
(cherry picked from commit aabcaac619 )
* missing event code
(cherry picked from commit daa4fd2b72 )
* Update beacon-chain/core/feed/operation/events.go
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-17 09:45:20 +00:00
terencechain
5480d607ac
Change withdrawal amount unmarshal to uint64 (gwei) ( #11866 )
...
* Change withdrawal amount unmarshal to uint64 (gwei)
* Init server
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2023-01-16 21:25:16 +00:00
terencechain
38f0a81526
Clarify circuit breaker logs ( #11876 )
...
* Clarify circuit breaker logs
* Revert bad changes
* Fix test
2023-01-16 17:49:23 +00:00
Potuz
ad680d3417
Move broadcast of BLS changes to the forkwatcher ( #11878 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 15:00:11 +00:00
Potuz
047cae5e8b
Sign BLS_TO_EXECUTION_CHANGES with GENESIS_FORK_VERSION ( #11870 )
...
* Sign BLS_TO_EXECUTION_CHANGES with GENESIS_FORK_VERSION
* update spectests
* extra blank line
* fix consensus_specs_sha
* get rid of LightClients tests
* fix unit tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 14:29:33 +00:00
terencechain
179252faea
Address historical summaries feedback ( #11864 )
...
* Address historical summaries feedback
* Fix build
* Fix test
* Move historicalSummaries
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-16 12:44:40 +00:00
Potuz
f93b82ee89
broadcast bls changes at the fork ( #11872 )
2023-01-16 11:51:03 +00:00
int88
508e1ad005
optimize and fix bug of attestations related code ( #11869 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-16 02:19:46 +00:00
terencechain
1b2d917389
New prysm get block RPC ( #11834 )
2023-01-13 15:45:17 -08:00
kasey
eb6b811071
Remove ShardingForkVersion/Epoch from config ( #11868 )
...
* remove ShardingForkVersion/Epoch from config
* update magic value counting config params
* skip the sharding params, which we disavow
we wanted to remove these upstream and may well do some day but right
now it's too big of a mess to untangle.
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-13 17:11:33 +00:00
kasey
cf71dbdf97
"Fail" in logs makes FAIL in e2e hard to find ( #11867 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2023-01-13 13:03:30 +01:00
kasey
9328e9af1f
Capella State Detection ( #11862 )
...
* capella state version detection bug fix
* add capella to yaml "template"
* changes for capella state detection
* lint
* don't set capella fork version == altair!!!
* less brittle test for fork schedule rpc
* fix assertions that use wrong field name
* don't test capella/sharding fv against upstream
* hat tip Terence for sanity check
* Update config/params/loader_test.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-13 04:04:37 +00:00
terencechain
4762fd71de
Add historical summaries to beacon api state ( #11863 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-12 17:06:23 +00:00
Nishant Das
769daffb73
Fix State Fetcher ( #11820 )
...
* fix fetcher
* kasey's review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-12 10:00:12 +00:00
Radosław Kapka
16e6e0de6c
Replace FutureForkStub with specific interfaces ( #11861 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-12 00:42:35 +00:00
Nishant Das
396fc3dc7e
Fix Waiting For Bandwidth Issue While Syncing ( #11853 )
...
* fix bugs
* fix up
* comment
* raul's review
* comment
* finally fix it
2023-01-12 00:07:09 +00:00
terencechain
7fa3ebfaa8
Add historical summaries to state and processing ( #11842 )
...
* Add historical summaries to state and processing
* Process historical roots test
* Passing spec tests
* Fix shas and tests
* Fix mainnet spectest sha
* Fix tests
* Update beacon-chain/core/epoch/epoch_processing.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/core/epoch/epoch_processing_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/prysm/v1alpha1/beacon_state.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/hasher.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek's feedback
* Getters error
* Dont return
* Fix else
* Fix tests
* Fix test
* Rm white space
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-11 22:20:15 +00:00
Patrice Vignola
81b9eceb50
Add Capella support for Validator's REST API ProposeBeaconBlock and GetBeaconBlock endpoints ( #11848 )
...
* Add Capella support for Validator's REST API ProposeBeaconBlock and GetBeaconBlock endpoints
* Fix
* Fix
* Add context to capella tests
* Update validator/client/beacon-api/beacon_block_proto_helpers.go
* Update validator/client/beacon-api/beacon_block_proto_helpers.go
* Update validator/client/beacon-api/beacon_block_proto_helpers_test.go
* Update validator/client/beacon-api/beacon_block_proto_helpers_test.go
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-11 16:55:09 +00:00
Radosław Kapka
505ff6ea3d
Replay state to current slot in StateBySlot ( #11858 )
2023-01-11 14:53:06 +01:00
Nishant Das
2b5125c7bc
Check If Validator Is In Sync Committee ( #11860 )
2023-01-11 10:19:31 +00:00
Preston Van Loon
1e3a55c6a6
Refactor bytesutil, add support for go1.20 slice to array conversions ( #11838 )
...
* Refactor bytes.go and bytes_test.go to smaller files, introduce go1.17 and go1.20 style of array copy
* rename bytes_go17.go to reflect that it works on any version 1.19 and below
* fix PadTo when len is exactly the size
* Add go1.20 style conversions
* Forgot another int method
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-10 16:41:01 +00:00
Dhruv Bodani
116f3ac265
Add REST implementation for validator's ProposeAttestation ( #11800 )
...
* Add REST implementation for validator's ProposeAttestation
* handle nil attestation
* update propose attestation with context
* fix lint
* add remaining nil testcases
* Update validator/client/beacon-api/propose_attestation_test.go
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
* fix BUILD.bazel
Co-authored-by: Radosław Kapka <radek@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-10 16:21:29 +00:00
Jacob Shufro
bbe003720c
add custom headers to DomainData requests ( #11767 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-01-10 00:20:45 +00:00
Patrice Vignola
e957edcb12
Add REST implementation for Validator's SubmitSignedContributionAndProof ( #11812 )
...
* Add REST implementation for Validator's SubscribeCommitteeSubnets
* Add context
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 22:54:52 +00:00
Dhruv Bodani
684022fa69
Add REST implementation for validator's SubmitSignedAggregateSelectionProof ( #11826 )
...
* add REST endpoint for SubmitSignedAggregateSelectionProof
* fix linter action
* update with context
* fix context import
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 21:18:42 +00:00
Dhruv Bodani
a7a64632b1
fix TestEndToEnd_MinimalConfig_ValidatorRESTApi test ( #11856 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 21:45:37 +01:00
Dhruv Bodani
c89ab764e3
Add REST implementation for validator's GetSyncMessageBlockRoot ( #11824 )
...
* add REST implementation for GetSyncMessageBlockRoot
* improve sync_message_block_root_test.go to handle errors
* include context
* fix unit tests
2023-01-09 19:35:33 +00:00
Manu NALEPA
375a76d6c9
Add REST implementation for SubmitSyncMessage ( #11827 )
...
* Add REST implementation for `SubmitSyncMessage`
* Use context
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-01-09 17:05:18 +00:00
terencechain
bad7c6a94e
Better reconstruct error msg while EL client is syncing ( #11851 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-09 15:09:45 +00:00
Potuz
bdc3a6ef11
Capella coverage and json structs ( #11854 )
...
* Capella coverage and json structs
* use SetupTestConfig
2023-01-09 14:47:40 +00:00
Manu NALEPA
4c9a0bf772
Add REST implementation for SubmitValidatorRegistrations ( #11816 )
...
* Add REST implementation for `SubmitValidatorRegistrations`
* Remove unused context
* Use context
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 19:46:09 +00:00
kasey
1c27b21b5a
Prevent pollution between scenario tests ( #11850 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-06 07:49:42 +00:00
Potuz
c1f00923c1
Implement bls_to_execution_changes beacon endpoint ( #11845 )
...
* Initial implementation
* fix withrawal unit tests
* add custom hooks api middleware test
* unit tests for endpoint
* update screwed proto file
* double import
* Raul review
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 05:17:33 +00:00
Dhruv Bodani
700f5fee8c
Add context to beacon API REST implementation ( #11847 )
...
* add context to beacon APIs
* add TODO to merge GET and POST methods
* fix linter action
Co-authored-by: kasey <489222+kasey@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-06 03:32:13 +00:00
Potuz
66b6177ed3
Log forkchoice weights on reorgs ( #11849 )
2023-01-05 20:06:40 -03:00
Raul Jordan
0b0373f2fd
Remove Lock from Checkpoint Cache as LRU is Already Thread-Safe ( #11846 )
...
* lru cache in prysm is already thread safe
* rem import
2023-01-05 16:00:11 +00:00
Nishant Das
b481c91453
Shift Multiclient E2E to Post-Submit ( #11811 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-01-05 02:39:28 +00:00
Manu NALEPA
e1408deb40
Add REST implementation for MultipleValidatorStatus ( #11786 )
...
* Add REST implementation for `MultipleValidatorStatus`
* Fix PR comments
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-01-04 23:15:23 +00:00
Potuz
51601716dc
Rename proposer_exists ( #11844 )
2023-01-04 14:09:40 +00:00
terencechain
0e77a89208
Better version checks for future proof ( #11825 )
...
* Better version checks for future proof
* Revert changes for blob
* Use if else
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-01-04 03:47:20 +00:00
terencechain
6715f10ffc
Add canUseBuilder helper method ( #11829 )
...
* Add canUseBuilder helper method
* Fix build
* Go fmt
* Check circuit breaker first
2023-01-03 12:46:08 +08:00
terencechain
2906196786
Add test utility helper to generate valid bls-to-exec ( #11836 )
...
* Add test util helper to generate bls-to-exec
* Gazelle
2023-01-03 00:34:15 +00:00
Potuz
ff82d9ee8c
Add back BLS changes from orphaned blocks ( #11822 )
...
* Add back BLS changes from orphaned blocks
* Add full test
* add missing file
* remove duplicate imports
* Update beacon-chain/blockchain/head.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-01-01 18:22:01 +00:00
int88
42450fb24e
fix trace name of function ExecuteStateTransitionNoVerifyAnySig ( #11828 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-31 12:14:26 +00:00
terencechain
b6060d5a49
Track head slot through head block ( #11833 )
...
* Track head slot through head block
* Update beacon-chain/blockchain/head.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-29 22:23:56 +00:00
terencechain
cf6617933d
Fix BUILD.bazel for v1alpha1 rpcs ( #11830 )
...
* Fix build.bazel for v1alpha1 rpcs
* Revert common_deps
2022-12-28 21:38:28 +00:00
terencechain
4e28192541
Proposer RPC: helpers to get exits and slashings ( #11808 )
...
* Proposer RPC: helpers to get exits and slashings
* add test
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-12-23 05:50:14 +00:00
Nishant Das
4aa075abac
Use Single Log File in E2E ( #11810 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-23 03:43:00 +00:00
kasey
c1563e40bd
attempt to fix WaitForTextInFile log corruption ( #11819 )
...
* attempt to fix WaitForTextInFile log corruption
* restore Seek, just in case!
* lint
* handle file close error in all cases with a log
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-12-23 01:08:32 +00:00
terencechain
dac555a57c
Allow proposer duties one epoch in advance part 2 ( #11818 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-12-22 23:00:36 +01:00
Potuz
4d549f572c
Check BLS_TO_EXECUTION_CHANGE as if they were from Capella ( #11762 )
...
In the event we receive a BLS_TO_EXECUTION_CHANGE and our head state is
before Capella, verify it's signature with the Capella fork version.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-12-22 14:09:24 -03:00
Patrice Vignola
83f48350b2
Fix a bunch of deepsource warnings ( #11814 )
2022-12-22 09:20:10 +00:00
kasey
77a9dca9eb
Cleaner genesis state population ( #11809 )
...
* e2e using dynamic configs; runtime bellatrix setup
* starts from phase0 but fee recipient eval fails
* lower TTD to cross before bellatrix epoch in e2e
* fix debug printf
* fix it
* dynamic ttd and more robust fee_recipient eval
* let multiplication set ttd=0 if bellatrix epoch=0
* refactoring fee recipient test after cognit errors
* lint
* appease deepsource
* deep sourcin
* gazelle
* missed a usage of this when refactoring
* refactoring premine genesis to work for all forks
previous set of functions was a copypasta mess
* gaz post-merge
* gaz
* resolve merge artifact and pr feedback
* back out some unneeded changes
* appease deepsource
* move premine-state next to similar utils
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-12-22 05:38:51 +00:00
Nishant Das
9f1c6b2d18
Fix Multiclient E2E ( #11803 )
...
* fix multiclient e2e
* parallelize keystore generation
* fix config startup
* fix GetAggregateAttestation
* regression test
* kasey's review
* fix test
* gaz
* fix tests
* deep source
2022-12-22 02:48:46 +00:00
Radosław Kapka
0c997ede0f
Query duties - epoch changes ( #11806 )
...
* Allow fetching next epoch attester duties
* better formatting
* fix tests
* use param
2022-12-21 16:28:16 +00:00
Radosław Kapka
2dc56878cd
Implement getPoolBLSToExecutionChanges API endpoint ( #11801 )
...
* Implement `getPoolBLSToExecutionChanges` API endpoint
* fix
(cherry picked from commit d602c94b7b )
* unify with Capella
* newline
2022-12-21 13:01:04 +00:00
kasey
d916827fb9
E2E from Phase0 or Bellatrix ( #11802 )
...
* e2e using dynamic configs; runtime bellatrix setup
* starts from phase0 but fee recipient eval fails
* lower TTD to cross before bellatrix epoch in e2e
* fix debug printf
* fix it
* dynamic ttd and more robust fee_recipient eval
* let multiplication set ttd=0 if bellatrix epoch=0
* refactoring fee recipient test after cognit errors
* lint
* appease deepsource
* deep sourcin
* gazelle
* missed a usage of this when refactoring
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
2022-12-21 04:43:29 +00:00
Ye Ding
e43152102e
Identify invalid signature within batch verification ( #11582 ) ( #11741 )
...
* Identify invalid signature within batch verification (#11582 )
* Fix issues found by linter
* Make deepsource happy
* Add signature description enums
* Make descriptions a mandatory field
* More readable error message of invalid signatures
* Add 'enable-verbose-sig-verification' option
* Fix format
* Move descriptions to package signing
* Add more validation and test cases
* Fix build failure
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-12-20 18:41:47 +08:00
Nishant Das
90d5f6097c
lock state ( #11796 )
2022-12-20 15:39:35 +08:00
james-prysm
ce125b763c
Improve validator set change event readability and error handling ( #11797 )
2022-12-19 22:12:09 +01:00
Patrice Vignola
3ff5895548
Add REST implementation for Validator's ProposeExit ( #11785 )
...
* Add REST implementation for Validator's GetBeaconBlock
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-19 12:58:52 +00:00
Patrice Vignola
4eb4cd9756
Add REST implementation for Validator's PrepareBeaconProposer ( #11784 )
...
* Add REST implementation for Validator's PrepareBeaconProposer
* Change fee recipients
* Handle error in a better way
* Move endpoint into constant
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-19 12:23:54 +00:00
terencechain
81b049ea02
Remove copy for block setters ( #11795 )
2022-12-19 10:54:25 +00:00
Radosław Kapka
a2fc57cb03
Improve tests for ProduceBlockV2 ( #11789 )
...
* Improve tests for `ProduceBlockV2`
* Revert "Auxiliary commit to revert individual files from 31c606198bdc91bac798b7a446d04d5cce86dad7"
This reverts commit d8b264457168f8f5e03d0473288a56606e38ab39.
2022-12-16 20:54:38 +00:00
Radosław Kapka
b63f649d89
Add finalized metadata field to API block fetching ( #11788 )
2022-12-16 18:21:08 +01:00
Ye Ding
e627d3c6a4
Fix command to fetch latest stable version ( #11782 ) ( #11787 )
2022-12-16 16:13:54 +00:00
Potuz
856102cba8
Implement bound on expected withdrawals ( #11760 )
...
* Implement bound on expected withdrawals
This PR implements https://github.com/ethereum/consensus-specs/pull/3095
* Terence's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* Update spectests
* fix minimal preset
* Clear committee cache during header tests to ensure active validators ain't leaking
* Rm debug log
* Rm bad init
* Update consensus spec sha
* Fix bad tests and remove redundant casting
* Fix build
* MAX_VALIDATORS_PER_WITHDRAWALS_SWEEP typo
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 06:45:26 +00:00
terencechain
8ff6f7768f
Sync committee head state cache for Capella ( #11773 )
...
* Handle capella
* Handle capella
* Error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:42:43 +00:00
terencechain
295cc5e4f0
Engine API: new/get_payload for Capella ( #11775 )
...
* Engine API: new/get_payload for Capella
* Fix build
* Use switch for payload type check
* Fix bad tests
* Rm redundant arg
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:25:22 +00:00
Radosław Kapka
8a2c7e4269
Add finalized metadata field to API responses ( #11783 )
...
* in progress
* grpc working
* middleware
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-16 00:04:40 +00:00
Radosław Kapka
cb02a6897d
Update block Beacon APIs to Capella ( #11706 )
...
* proto+ssz
* refactor GetBlindedBlockSSZ
(cherry picked from commit 97483c339f99b0d96bd81846a979383ffd2b0cda)
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
(cherry picked from commit 9e4e82d2c5 )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* add Capella version
(cherry picked from commit 5d6fd0bbe663e5dd16df5b2e773f68982bbcd24e)
(cherry picked from commit 82f6ddb693 )
* support SSZ lol
(cherry picked from commit 52bc2c8d617ac3e1254c493fa053cdce4a1ebd63)
(cherry picked from commit d7d70bc25b )
* update withdrawals proto
* refactor and test GetBlockV2
(cherry picked from commit c1d4eaa79d )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* refactor and test GetSSZBlockV2
(cherry picked from commit fbc4e73d31 )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* test other functions
(cherry picked from commit 31d4a4cd11 )
* move stuff to blinded_blocks.go
(cherry picked from commit 0a9e1658dd )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
* fix migration code
* add Capella to SubmitBlock
* custom hooks
* missing structs
* fix tests
* fix tests
* review
* fix build issues
* replace ioutil with io
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 23:42:07 +00:00
Patrice Vignola
e843cafe7d
Add REST implementation for Validator's GetBeaconBlock ( #11772 )
...
* WIP
* WIP
* WIP
* Remove unused parameter
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-15 22:34:05 +00:00
Radosław Kapka
1c5b0596c7
More user-friendly message in ErrUndefinedExecutionEngineError ( #11777 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-15 07:46:17 +00:00
David Theodore
159228b34f
SparseMerkleTrie depth fix & regression tests ( #11778 )
2022-12-15 06:50:12 +00:00
Radosław Kapka
1fbb3f3e51
Reconstruct full Capella block ( #11732 )
...
* Merge branch 'reconstruct-capella-block' into capella
(cherry picked from commit b0601580ef )
# Conflicts:
# beacon-chain/rpc/eth/beacon/blocks.go
# proto/engine/v1/json_marshal_unmarshal.go
* remove unneeded test
* rename methods
* add doc to interface
* deepsource
(cherry picked from commit 903cab75ee )
# Conflicts:
# beacon-chain/execution/testing/mock_engine_client.go
* bzl
* fix failing tests
* single ExecutionBlockByHash function
* fix engine mock
* deepsource
* reorder checks
* single execution block type
* update tests
* update doc
* bytes test
* remove toWithdrawalJSON
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 13:42:48 +00:00
Manu NALEPA
9c21809c50
Add REST implementation for ValidatorStatus ( #11757 )
...
* Add REST implementation for `ValidatorStatus`
* Fix review comments
2022-12-14 12:58:36 +00:00
terencechain
62ffed7861
Add capella cases for RPC calls ( #11759 )
...
* Add capella cases for rpc calls
* Use if else
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 05:08:54 +00:00
Victor
bdf063819c
Fixed comments of the template ( #11652 )
...
The comments of the template were not inside the braces and appeared when creating a new Issue.
Thanks
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-12-14 02:49:19 +00:00
Radosław Kapka
9efc89f993
Correct duties calculation for old slots ( #11723 )
...
* initial code
* update proposalDependentRoot
* convert method to function
* decouple tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-12-14 00:33:30 +00:00
Preston Van Loon
5ed52b1e44
Validator: Add trace span information for AttestationRecord save requests ( #11742 )
...
* Add additional span information when saving attestation records
* Remove keymanager.sign span. It's very noisy and not a helpful data point.
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 00:06:32 +00:00
kasey
2e49fdb3d2
Start chain from bellatrix state ( #11746 )
...
* WIP trying to start from bellatrix state
* env var to control log path with unique paths
due to flaky test re-run behavior, logs from a failed test run are
overwritten by subsequent retries. This makes it difficult to retrieve
logs after the first failed run. It also takes some squinting through
output to find the location of the log file in the first place. This
flag enables logs to be placed in an arbitrary path. Note that bazel
sandboxing generally will force this path to be in the /tmp tree.
* WIP - grabbing changes from rm-pre-genesis branch
* combine bellatrix state w/ rm-pre-genesis branch
* WIP
* use encoding/detect for genesis state bytes
* WIP more fixes towards start from bellatrix
* remove debug wrapping
* WIP
* multiple bugfixes
* fix fork ordering bug and bellatrix genesis blocks
* send deposits, spam tx to advance, fix miner alloc
* WIP
* WIP mess
* WIP
* Print process ID information for purposes of attaching a debugger
* bugs: genesis body_root and deposit index mismatch
* fix voting period start, skip altair check
* add changes
* make it better
* rm startup FCU, rm logs
* cleanup import grouping&ordering
* restore FCU log, get rid of tmp var
* rm newline
* restore newline
* restore wrapped error
* rm newline
* removing boot node version override
this doesn't seem to matter?
* add issue number to todo comment
* rm commented code
* rm vmdebug geth flag
* unexport values only used with genesis test pkg
and add comments where missing from exported values.
* adding comments to special cases for testnets
* migrate comments from PR to actual code :)
* rm unused test param
* mark e2e spawns exempt from gosec warning
* Fix DeepSource errors in `proposer_bellatrix.go` (#11739 )
* Fix DeepSource errors in
* Omit receiver name
* Address PR comments
* Remove unused variable
* Fix more DeepSource errors
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Remove `Test_IsExecutionEnabledCapella` (#11752 )
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Add REST implementation for Validator's `ProposeBeaconBlock` (#11731 )
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fix validator client (#11755 )
* fix validator client
(cherry picked from commit deb138959a )
* Use signed changes in middleware block
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* API `finalized` metadata field - update protos (#11749 )
* API `finalized` metadata field - update protos
* change nums
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
* log breaks unit tests that don't do full arg setup
easiest to just remove it for now
* restore prior behavior of phase0 block for altair
* update unit tests to account for special case
* loosen condition for fork version to match config
we don't know which fork version genesis will start from, so we
shouldn't force it to be a phase0 genesis.
* skip until we can mod configs at runtime
* NewGenesisBlockForState computes state root itself
* rm noisy log
* this log would be noisy in mainnet
* fix format specifier, []byte -> string
* core.Genesis UnmarshalJson has a value receiver :)
* no longer needs to be exported
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: nisdas <nishdas93@gmail.com >
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-14 07:13:49 +08:00
Preston Van Loon
a01d08b857
Add --stamp to release builds ( #11768 )
2022-12-13 21:33:51 +00:00
Preston Van Loon
fbe0672fc4
state: Improve replay state logs metadata ( #11763 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-13 18:46:51 +00:00
Potuz
a15ec49844
Do not remove attestations twice ( #11764 )
2022-12-13 14:43:42 -03:00
int88
a268255ab1
fix mismatch of code and comment ( #11761 )
2022-12-13 15:57:52 +00:00
james-prysm
043079dafe
Adding exit codes to cli commands ( #11735 )
...
* adding exit codes to cmd
* adding in fatal logs to other cli actions
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-13 12:13:33 +00:00
terencechain
3fcdd58872
Add block setters for consensus type ( #11751 )
...
* Add block getters
* Rm changes
* Rm changes
* Revert "Rm changes"
This reverts commit 1ae5db79da .
* Fix tests
* Set graffiti right place
* Potuz feedback
* Update consensus-types/blocks/setters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek feedback
* Fix comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-13 00:03:36 +00:00
Radosław Kapka
0798092ca8
API finalized metadata field - update protos ( #11749 )
...
* API `finalized` metadata field - update protos
* change nums
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-12 16:59:27 +00:00
Radosław Kapka
fb981d29e8
fix validator client ( #11755 )
...
* fix validator client
(cherry picked from commit deb138959a )
* Use signed changes in middleware block
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-12-12 15:49:02 +00:00
Patrice Vignola
fa01ee5eba
Add REST implementation for Validator's ProposeBeaconBlock ( #11731 )
...
* WIP
* WIP
* WIP
* Add tests
* WIP
* Add more tests
* Address DeepSource errors
* Remove unused param
* Add more tests
* Address PR comments
* Address PR comments
* Fix formatting
* Remove unused parameter
* Fix TestLittleEndianBytesToBigInt
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-12 10:39:51 +00:00
terencechain
09619c388f
Remove Test_IsExecutionEnabledCapella ( #11752 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-11 22:59:12 +00:00
Patrice Vignola
1531313603
Fix DeepSource errors in proposer_bellatrix.go ( #11739 )
...
* Fix DeepSource errors in
* Omit receiver name
* Address PR comments
* Remove unused variable
* Fix more DeepSource errors
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-10 10:27:07 +00:00
Potuz
babfc66c5b
Check BLS changes when requesting from pool ( #11718 )
...
* Check BLS changes when requesting from pool
* Terence's suggestions
* Radek's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-12-09 14:41:45 +00:00
terencechain
cb9b5e8f6e
Use payload attribute type for engine-API ( #11719 )
...
* Add payload attribute type
* Gazelle
* Fix test
* Use new payload attribute type
* Fix test
* Fix test
* Update beacon-chain/execution/engine_client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Feedbacks
* Fix suggestion
* Update argument, fix test
* Return emptyAttri instead of nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-08 21:39:45 +00:00
james-prysm
145eb5a8e4
add m1 chip info ( #11736 )
2022-12-08 15:20:32 -06:00
Preston Van Loon
7510f584cb
beacondb: Remove cache look up and lock request from boltdb transaction for state summaries ( #11745 )
...
* Remove cache look up from bolt transaction
* remove bogus line, oops
* Remove independent cache lookup entirely and just use HasStateSummary
* Rm newline
2022-12-08 19:32:04 +00:00
Patrice Vignola
dbeb3ee886
Onboard validator's Beacon REST API usage to e2e tests ( #11704 )
...
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Onboard validator's Beacon REST API usage to e2e tests
* Remove unused variables
* Remove use_beacon_api tags
* Fix DeepSource errors
* Revert unneeded changes
* Revert evaluator changes
* Revert import reordering
* Address PR comments
* Remove all REST API e2e tests except minimal one
* Fix validator pointing to inexisting beacon node port
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-08 14:38:56 +00:00
Preston Van Loon
ca2618110f
e2e: Print process IDs for debugging. ( #11734 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-08 04:48:16 +00:00
Nishant Das
642c399b9d
Add Back Cross Client Option ( #11738 )
...
* add changes
* remove env var
* fix
2022-12-07 22:20:35 -06:00
Manu NALEPA
6eee539425
Add REST implementation for Validator's WaitForActivation (Ethereum Protocol Fellowship) ( #11671 )
...
* Implement REST `WaitForActivation`
* Activation: Factorize tests
* Fix PR comments
* `missingPubKeys`: Replace map by slice (no need to have a map here)
* Fix typo
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-07 19:20:11 +00:00
james-prysm
bd82eb873c
Fix to Post Submit E2E ( #11733 )
2022-12-07 18:19:44 +01:00
Nishant Das
62455b7bcb
Fix Lint and Minor Bugs in E2E ( #11730 )
2022-12-07 05:31:53 +00:00
Preston Van Loon
3d6d0a12dd
Update go to 1.19.4 ( #11727 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-06 21:20:25 +00:00
Patrice Vignola
05148dbc8f
Fix DeepSource errors in the Validator's REST API ( #11726 )
2022-12-06 20:31:56 +00:00
james-prysm
19af1d2bb0
E2E: beacon APIs Part 1 ( #11306 )
...
* adding compare beacon block test
* fixing bazel
* fixing evaluator import
* fixing imports
* changing package name
* fixing bazel
* adding logic to check for checking epoch
* fixing linting
* adding check for attester duties
* handle both blockv1 and blockv2
* making middleware objects public instead
* adding test for block attestations
* fixing typo
* adding blockroot test
* adding test for attestations
* fixing type value
* fixing test
* adding in node endpoints
* fixing bazel
* updating web3signer
* printing beacon blocks on request
* fixing struct
* temp log
* forgot string cast
* adding comparison function
* fixing bazel and evaulators, WIP
* fixing bazel
* changing how to minify json
* trying multiclient
* fixing port problem
* reverting evaluator and making test only for mainnet scenario testing
* removing test data
* fixing linting unused functions
git push
* changed to reflect
* adding in ssz comparison
* fixing tests
* fixing conflict
* fixing tests
* making v2 the standard
* adding better error logging
* fixing type
* adding lighthouse settings and fixing some deepsource items
* testing adding delay to evaluator
* testing without peers check
* changing target peers to try to fix lighthouse peer connections
* temp removing other tests
* fix lint issue
* adding peers connect back in
* adding in state version
* fixing bazel
* fixing path error
* testing changes to state
* fix unmarshal
* simplifying beacon api e2e execution
* fixing missed assertian checks
* improve logging and debugging issue
* trying to fix unmarshal
* still breaking more test edits
* removing fork to test unmarshal
* fixing pathing
* resolving error
* fixing beacon_api
* merging in debug api to beacon_api test
* fixing lint and temp commenting out endpoint
* adding in custom comparison function
* fixing custom evaluator
* adding test for block header data
* fixing header evaluation
* add node apis
* fixing linting,adding tests
* fixing bazel and temp removing unused functions
* fixing deepsource and linting issues
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing review
* resolving more review comments
* fixing linting
* removing ssz return value as it's large and possibly not needed
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing more review comments
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing linting and review iteems
* fixing cognit complexity issue
* fixing linting
* fix log printout
* test build kite only with crossclient
* switching out evaluator to depositedvalidatorsareactive
* removed wrong evaluator switching correct one
* removing skip based on review comments
* fixing pathing issue
* test without participation at epoch
* testing without special lighthouse logic in evaluator
* reducing expected participation when multiclient
* fixing imports
* reducing epochs to see if less flaky
* testing with other tests added back in
* reducing epochs ran further
* testing only cross client again
* testing multi run again
* test reverted scenario for tests
* testing with cross client
* removing commented out function
* testing without peers connect
* adding optimization based on suggestions
* removed the wrong peers connect
* accidently commited something I shouldn't have
* fixing lighthouse flag
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/endtoend/evaluators/beaconapi_evaluators/beacon_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-06 16:01:17 +00:00
Nishant Das
faf16f9e56
Allow Nodes Running Via VPNs To Make Successful Dials ( #11599 )
...
* fix it
* fix dialer for now
* fix build
* fix test
* fix to v0.24.0
* fix gaz
* fix build
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-12-06 14:54:45 +00:00
Manu NALEPA
0a5c65e29c
Add REST implementation for Validator's ValidatorIndex ( #11712 )
...
* Add GetAttestationData
* Add tests
* Add many more tests and refactor
* Fix logic
* Address PR comments
* Address PR comments
* Add jsonRestHandler and decouple http logic from rest of the code
* Add buildURL tests
* Remove handlers_test.go
* Improve tests
* Implement `ValidatorIndex` of `beaconApiValidatorClient` using Beacon API
* Implement getStateValidators
* `validatorIndex`: Use `getStateValidators`
Co-authored-by: Patrice Vignola <vignola.patrice@gmail.com >
2022-12-06 12:27:26 +00:00
Radosław Kapka
7dc966bb3b
Update state Beacon APIs to Capella ( #11708 )
...
* proto
(cherry picked from commit 24f45e021061782ab4d6c101a95368310aad67b6)
* implementation
(cherry picked from commit bbfa22c2053e8176fc004b13ba9c8d62cc3bd352)
# Conflicts:
# beacon-chain/rpc/apimiddleware/structs.go
* fix compilation error
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-06 00:36:23 +00:00
Radosław Kapka
51d35f36f0
Disallow computing committee assignments for old slots ( #11722 )
2022-12-05 23:37:08 +01:00
Patrice Vignola
943a0556e9
Add REST implementation for Validator's DomainData ( #11711 )
...
* Add REST implementation for Validator's DomainData
* Add missing dependency
* Fix getForkVersion logic
* Remove unused helpers
* Fix deepsource error
* Fix deepsource error
* Address PR comments
* Remove outdated comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-05 10:27:41 +00:00
terencechain
f7cecf9f8a
Add payload attribute type ( #11710 )
...
* Add payload attribute type
* Gazelle
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-12-02 18:23:47 +00:00
Nishant Das
8be73a52b1
Add State Check For BLS Execution Change Messages ( #11716 )
2022-12-02 11:13:21 +00:00
Potuz
bebceb3bfa
Handle BLS to execution changes included in blocks ( #11713 )
...
* Handle BLS to execution changes included in blocks
* log
* review
2022-12-02 14:04:45 +08:00
Mart1i1n
d541010bf1
Fix Typo ( #11670 )
...
* Update ffg_update_test.go
Fix some alignment typos.
* Update justification_finalization.go
Fix typo.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-11-30 22:25:55 +00:00
terencechain
8cb07e0c2b
Spec test: capella and update to v1.3.0-alpha.1 ( #11683 )
2022-11-30 12:08:04 -08:00
Preston Van Loon
aa2bf0c9c4
Spectests: ensure test directories are not empty ( #11709 )
...
* Add an assertion that test folders are not empty
* more assertions
* only run sync tests on bellatrix or later
2022-11-30 17:32:10 +00:00
Ye Ding
e49d8f2162
Fix a race condition during initialization ( #11444 ) ( #11698 )
...
* Fix a race condition during initialization (#11444 )
* Fix tests
* Add more test cases
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-29 18:24:50 +00:00
shana
c6ed4e2089
Do not omit json fields if empty in builder client ( #11673 )
...
* Do not omit json fields if empty in builder client
* fix tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-11-29 12:12:13 +00:00
int88
0ad902e47d
fix help message of metric doublylinkedtree_node_count ( #11705 )
2022-11-29 11:29:48 +00:00
Preston Van Loon
4f4775f9f9
bazel: Update rules_go and remove extra repos in WORKSPACE ( #11703 )
...
* Update rule_go to latest release, remove fuzzit stuff
* Delete another thing
2022-11-28 23:00:11 +00:00
terencechain
679e6bc54a
Cont FCU if get payload attribute fails ( #11693 )
...
* Cont FCU if get payload attribute fails
* Fix err position
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2022-11-28 19:42:32 +00:00
Radosław Kapka
c7a3cf8563
GetForkChoice API endpoint (#11680 )
...
* proto
* middleware
* change structure
* fix all issues
* test
* validity field
2022-11-28 19:17:53 +00:00
Radosław Kapka
6c3b75f908
Upgrade getBlindedBlock API endpoint to Capella ( #11687 )
...
* proto
(cherry picked from commit 7101910e0fab5a5572795115679fd6f8d8c8379b)
* GetBlindedBlock
(cherry picked from commit e5c269ddf7b0c9e04f72ed28982a82de56fcac55)
* middleware
(cherry picked from commit 1719ce5967b0f74786c596cc921f7256e6b224f3)
* refactor
* Update beacon-chain/rpc/apimiddleware/structs.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* update error message
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-11-28 18:17:05 +00:00
Patrice Vignola
f276c5d006
Make the validator REST API's WaitForChainStart blocking ( #11695 )
2022-11-28 11:58:04 +01:00
Potuz
29953cb734
Refactor Sync Committee Rewards ( #11696 )
2022-11-27 11:06:32 -08:00
Nishant Das
a23a5052bc
Add Gossip Handler For BLS To Execution Changes ( #11690 )
2022-11-26 11:07:05 -08:00
Potuz
f9e0d4b13a
Batch capella signatures with the rest of the block ( #11689 )
2022-11-25 09:45:36 +08:00
Potuz
0aaee51973
Process bls changes ( #11684 )
...
* Implement ProcessBLSToExecutionChanges
* Batch process signatures
* gaz
* Change runtime behavior
* Terence's review
2022-11-24 19:36:12 +00:00
terencechain
a0c0706224
Add Capella state changes ( #11688 )
...
* Add Capella state changes
* Use params.configs
2022-11-24 14:54:55 -03:00
Potuz
a525fad0ea
Add upgrade to Capella to statereplay ( #11686 )
2022-11-24 14:58:05 +00:00
Patrice Vignola
7ab5851c54
Add a gRPC fallback mode to the validator Beacon REST API ( #11679 )
...
* Add a gRPC fallback mode to the validator Beacon REST API
* Remove --beacon_api_grpc_fallback flag
* Add missing bazel dependency
* Reorder dependency per gazelle check
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-24 11:09:07 +00:00
Patrice Vignola
e231cfd59d
Onboard validator's beacon REST API tests to CI ( #11682 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-24 11:50:13 +01:00
kasey
0a41b957dc
env var to control log path with unique paths ( #11681 )
...
due to flaky test re-run behavior, logs from a failed test run are
overwritten by subsequent retries. This makes it difficult to retrieve
logs after the first failed run. It also takes some squinting through
output to find the location of the log file in the first place. This
flag enables logs to be placed in an arbitrary path. Note that bazel
sandboxing generally will force this path to be in the /tmp tree.
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-11-23 22:56:40 +00:00
Radosław Kapka
f2399e21e1
GetLiveness API endpoint (#11617 )
...
* proto
* initial version
* middleware + tests
* change request structure
* fix all issues
* review feedback
* simplify out-of-range check
2022-11-23 18:23:22 +00:00
kasey
395e49972e
prysmctl support generating non-phase0 genesis.ssz ( #11677 )
...
* support generating non-phase0 genesis.ssz
* make default (Value) work for EnumValue + lint
* remove messy punctuation
* Ran gazelle for @kasey
* Fix deps viz
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-11-23 14:22:24 +00:00
Radosław Kapka
ee099d3f03
Operations pool for BLS-to-execution-changes ( #11631 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-22 18:34:14 +01:00
terencechain
e2ffaf983a
Add minimal withdrawal size ( #11658 )
...
* Add selector with minimal withdrawal size
* @potuz's feedback, Add PayloadAttribruteV2
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-22 16:05:37 +00:00
Patrice Vignola
0d4b98cd0a
Add REST implementation for Validator's WaitForChainStart ( #11654 )
...
* Add REST implementation for Validator's WaitForChainStart
* Add missing error mapping
* Add missing bazel dependency
* Add missing tests
* Address PR comments
* Replace EventErrorJson with DefaultErrorJson
* Add tests for WaitForChainStart
* Refactor tests
* Address PR comments
* Add gazelle:build_tag use_beacon_api comment in BUILD.bazel
* Address PR comments
* Address PR comments
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-22 12:12:55 +00:00
Andrew Davis
fe1281dc1a
fix(beacon-chain/rpc): correct block root for block events ( #11666 )
2022-11-22 10:26:56 +00:00
james-prysm
9761bd0753
correctly assign arm64 arch for Apple M1 ( #11675 )
...
* fixing typo
* removing if statement, not needed anymore
2022-11-21 23:11:02 +00:00
Manu NALEPA
0bcddb3009
Update mockgen ( #11615 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-21 17:26:27 +01:00
terencechain
ee9da3aded
Fill missing payload ID should exit early if block has seen ( #11669 )
...
* Fill missing payload ID should exit early if block has seen
* Move metric inc to top
* Fix test
2022-11-21 10:34:40 -05:00
kasey
d58d3f2c57
E2E deposit testing overhaul ( #11667 )
...
* rewrite/refactor deposit testing code
keep track of sent deposits so that they can be compared in detail with
the validator set retreived from the API.
* fix bugs in evaluator and retry
* lint + deepsource appeasement
* typo s/Sprintf/Printf/
* gosec, more like nosec
* fix gosec number - 204->304
* type switch to get signed block from container
* improve comments
* centralizing constants and adding comments
* lock around Depositor to avoid future races
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-11-19 03:40:32 +00:00
Preston Van Loon
4b033f4cc7
Update go to 1.19.3 ( #11630 )
...
* Update go to 1.19.3
* Update other items to 1.19
* Update golangci-lint to latest release
* Run gofmt -s with go1.19
* Huge gofmt changes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-11-18 19:12:19 +00:00
terencechain
07d0a00f88
Add capella slashing parameters ( #11660 )
...
* Add capella slashing parameters
* Add capella to epoch precompute
* Revert "Add capella to epoch precompute"
This reverts commit 61a5f3d2bd .
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-17 17:03:53 +00:00
Nishant Das
08d63a0cd0
Remove Geth Bindings From Prysm ( #11586 )
...
* check in changes
* gaz
* preston's review
* comment
* fix up
* remove test
* gaz
* preston's review
* fix it
2022-11-17 17:16:19 +08:00
kasey
f02ad8a68b
disable geth nat traversal ( #11664 )
...
Co-authored-by: kasey <kasey@users.noreply.github.com >
2022-11-16 00:14:42 +08:00
Potuz
466fd359a2
Fix expected_withdrawals ( #11662 )
2022-11-14 21:33:40 -05:00
terencechain
b5f8e69b6b
Add capella to epoch precompute ( #11661 )
2022-11-14 10:05:58 -05:00
terencechain
cf466702df
Capella: validator log withdrawals ( #11657 )
...
* Capella: validator log withdrawals
* Capella: validator log withdrawals
2022-11-13 02:26:49 +00:00
Potuz
de73baa4a7
Update 3068 ( #11656 )
...
* rename last_withdrawal_validator_index
* Update Capella methods to Specs #3068
* Add missing renames
* rename minimal state
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:38:21 +00:00
Potuz
d4a3b74bc6
capella payload changes ( #11647 )
...
* capella payload transition changes
* fix leak
* add back setters_payload from capella
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-12 18:19:51 +00:00
Potuz
216cdd9361
Use finalized hash if payloadID cache misses ( #11653 )
2022-11-12 17:58:14 +00:00
Potuz
68c3e939b8
Fix withdrawalRoot hasher ( #11655 )
2022-11-12 09:00:53 -08:00
terencechain
bf7e17db8f
Fix get RANDAO endpoint for underflow ( #11650 )
...
* Fix get randao end point for underflow
* Fix test
2022-11-11 17:58:25 +00:00
Patrice Vignola
ead9a83d8d
Add customizable endpoints for the validator's REST API ( #11633 )
...
* WIP
* Refactor to use iface.ValidatorClient instead of ethpb.BeaconNodeValidatorClient
* Add mocks for iface.ValidatorClient
* Fix mocks
* Update update-mockgen.sh
* Fix warnings
* Fix config_setting syntax
* Use custom build settings
* WIP
* WIP
* WIP
* WIP
* WIP
* WIP
* Fix endpoint address and reduce timeout
* Revert most e2e changes
* Use e2e.TestParams.Ports.PrysmBeaconNodeGatewayPort
* Fix BeaconRESTApiProviderFlag port
* Revert e2e changes
2022-11-11 17:33:48 +00:00
Nishant Das
2fef03414d
Fix ENR Serialization ( #11648 )
...
* fix it
* fix test
2022-11-10 12:03:55 +00:00
Potuz
7b63d5c08c
Operations in Capella are as in Bellatrix ( #11646 )
...
* Operations in Capella are as in Bellatrix
* add unit test
2022-11-10 02:04:03 +00:00
Potuz
af6d5e9149
don't change again unecessarily ( #11645 )
...
* don't change again unecessarily
* remove blinded blocks from gossip
2022-11-09 23:59:10 +00:00
terencechain
d0d7021c1d
Add Capella p2p changes ( #11644 )
2022-11-09 15:11:46 -08:00
Potuz
4db1a02763
Implement upgrade to capella ( #11642 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-09 16:48:23 +01:00
Mart1i1n
69d7f7f6ca
Update ffg_update_test.go ( #11639 )
...
Fix some alignment typos.
2022-11-09 12:27:17 +00:00
Inphi
4e342b8802
Fix prysmctl generate-genesis yaml output file ( #11635 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-08 14:36:58 +00:00
Nishant Das
02566de74c
Copy Bytes Safely When Accessing Withdrawals ( #11638 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-08 13:40:25 +00:00
Potuz
90ecd23d41
implement process_withdrawals ( #11634 )
...
* implement process_withdrawals
* change errors to error.go
* gazelle
* James' review
* use bytes.Equal instead
* Radek's review
* Radek's review #2
* fix test
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-08 10:15:26 -03:00
int88
4d68211ad4
fix error message of subscriber ( #11622 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-07 16:44:38 +00:00
terencechain
19f6d3bef6
Capella: Add DB changes ( #11624 )
...
* Add Capella DB changes
* Add tests
2022-11-07 15:26:27 +00:00
Potuz
37108e6ed8
Implement get_expected_withdrawals ( #11618 )
...
* Implement get_expected_withdrawals
* Fix config test and export method
* Radek's review
* start from a different index in a test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-07 14:11:16 +00:00
Patrice Vignola
d33af46c90
Add support for building a Beacon API validator client versus a gRPC one ( #11612 )
2022-11-07 11:29:27 +01:00
Radosław Kapka
53d4659654
GetRandao Beacon API endpoint (#11609 )
...
* `GetRandao` Beacon API endpoint
* test optimistic execution
* review
* change epoch in test
2022-11-05 23:04:58 +00:00
terencechain
09e117370a
Flatten blob to an array ( #11614 )
...
* Flatten blob to an array
* Rename data back to blob
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2022-11-04 15:03:25 +00:00
Radosław Kapka
8ade8afb73
Remove SSZ tags from beacon state ( #11613 )
...
* Remove SSZ tags from beacon state
* tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-04 11:08:57 +00:00
Inphi
872021f10d
Remove unneeded protoarray tests ( #11607 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-04 09:39:52 +00:00
Potuz
bb09295072
Remove withdrawal Queue ( #11610 )
2022-11-03 16:55:44 +00:00
terencechain
e4b2b1ea7d
Unlock pending block queue if insertion errors ( #11600 )
...
* Unlock pending queue if insertion errors
* @saolyn's feedback
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-02 18:26:27 +00:00
terencechain
ead329e610
Implement [][] to [][48] helper ( #11606 )
2022-11-02 18:04:40 +00:00
int88
a0c5669511
RLock() for readonly operation ( #11603 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-02 16:22:42 +00:00
terencechain
0fd5253915
Remove unused protobuf imports ( #11602 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-11-02 13:46:23 +00:00
terencechain
86e855d499
Rename blob.blob to blob.data ( #11601 )
2022-11-02 14:21:03 +01:00
Sammy Rosso
001ae30a59
EIP-4881: Add merkle tree interface ( #11597 )
...
* Add merkle tree interface
* Run gazelle
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-11-01 23:31:32 +00:00
terencechain
d1f0e5dd55
Run ./hack/update-go-pbs.sh ( #11598 )
2022-11-01 23:08:52 +00:00
terencechain
2142b13a41
Add 4844 containers to protobuf ( #11596 )
2022-10-31 12:11:40 -07:00
Radosław Kapka
ffac232d89
Capella beacon block ( #11566 )
...
* in progress
* done, no tests yet
* fix ToBlinded()
* Revert "Auxiliary commit to revert individual files from 2e356b6f5b15d409ac15e825c744528591c13739"
This reverts commit 081ab74e88fb7d0e3f6a81e00fe5e89483b41f90.
* tests
* fix tests
* one more fix
* and one more
* review
* fix proto_test
* another fix
* do not return error when nil object is wrapped
* allow nil payload in body.Proto()
* correctly assert error
* nil checks in body.Execution()
* simplify PR
* Revert "Auxiliary commit to revert individual files from 5736c1f22f2d2f309b9303c13d0fb6b1679c6ecb"
This reverts commit 1ff3a4c864923f5c180aa015aa087a2814498b42.
* fix slice sizes in cloner tests
* better payload tests
* review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-31 17:58:30 +00:00
int88
26b46301d2
some minor fixes ( #11593 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-30 02:54:15 +00:00
Mark Ridgwell
fdf913aed9
corrected method name in comment ( #11594 )
2022-10-28 12:17:56 -04:00
terencechain
9435d10652
Add more buckets for block arrival latency histogram ( #11589 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-27 15:43:41 +00:00
Radosław Kapka
8fa481cb93
Flag to exit validators without confirmation prompt ( #11588 )
2022-10-27 17:24:41 +02:00
terencechain
26087d7b2d
Add unknown roots in error msgs ( #11585 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-27 10:38:07 -04:00
Nishant Das
5a3a01090a
Increase Block Burst Factor For E2E ( #11583 )
...
* test
* set higher block burst factor
* add back space
* remove space
2022-10-27 03:06:52 +00:00
Preston Van Loon
55690de685
bazel: Check in 5.3.0 cross compile clang toolchain ( #11577 )
...
* Check in 5.3.0 generated clang cross-toolchain
* Remove tools/cross-toolchain/configs/clang/bazel_5.0.0
* Add manual tags and run gazelle
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-27 02:48:23 +00:00
kasey
007c776d8a
tool to search db for a key prefix ( #11417 )
...
* tool to query db by a key prefix
* cleanup
* lint and fmt
* db/kv public visibility
We've discussed before that Bazel visibility constraints don't
accomplish much in go, so I'm phasing them out in places where they get
in the way.
* derp
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-26 21:28:02 +00:00
Sammy Rosso
a15e0797e4
Support non english mnemonics for wallet creation ( #11543 )
...
* add option to log rejected gossip message
* add bip39 supported mnemonic languages
* Revert "add option to log rejected gossip message"
This reverts commit 9a3d4486f6 .
* Add mnemonic language flag
* Update go.mod
* Simplify language mapping
* Add test for setBip39Lang
* Update go.mod
* Improve language matching
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Run gazelle + fix maligned struct
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-26 21:04:00 +00:00
int88
1572c530b5
some minor fixes ( #11572 )
...
* some minor fixes
* minor fix
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-26 20:44:24 +00:00
Preston Van Loon
652303522f
bazel: remove --stamp for builds ( #11578 )
2022-10-26 20:13:02 +00:00
Sammy Rosso
39a7988e9e
Add error if chain-config-file used concurrently with network ( #10863 )
...
* Add error if chain-config-file used with network
If the chain-config-file flag is used concurrently with the network
flag then error and exit.
Related to #10822 .
* Add config file name to error message with `fmt`
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Add unit test for hasNetworkFlag
* Add list of network flags to features
* Fix imports
* Run gazelle
* retrigger checks
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-25 10:48:25 +00:00
james-prysm
648ab9f2c2
revert moving validator-exit command ( #11575 )
2022-10-25 03:52:30 +00:00
terencechain
43a0b4bb16
Retrieve proposer existence in cache with correct parameter ( #11567 )
2022-10-24 13:20:41 -05:00
int88
57d7207554
fix typo and log error ( #11565 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-10-23 22:01:44 +00:00
Potuz
b7b5b28c5a
Fix locks in Capella setters ( #11569 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-22 23:10:45 +00:00
terencechain
968dc5d1e8
Beacon api: get duties prune payload id cache ( #11568 )
...
* Beacon api: get duties prune payload id cache
* Fix complains and bad test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-22 22:43:57 +00:00
terencechain
c24016f006
Add validator index with Withdrawal pb ( #11563 )
...
* Add validator index with Withdrawal pb
* Update BUILD.bazel
* Fix test
* Better tests
2022-10-22 20:54:50 +00:00
Nishant Das
661cbc45ae
Vendor Leaky Bucket Implementation ( #11560 )
...
* add changes
* fix tests
* change to minute
* remove dep
* remove
* fix tests
* add test for period
* improve
* linter
* build files
* ci
* make it stricter
* fix tests
* fix
* Update beacon-chain/sync/rate_limiter.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-20 16:40:13 -05:00
Nishant Das
4bd4d6392d
Reduce Block Burst Factor ( #11546 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-10-20 14:20:47 +00:00
Radosław Kapka
5f4c26875b
Remove ValidatorCapella protobuf ( #11562 )
2022-10-19 17:56:50 +00:00
Radosław Kapka
6aab2b2b8d
/eth/v1/beacon/blinded_blocks/{block_id} API endpoint (#11538 )
...
* proto + stub
* Add execution_optimistic to SSZ response
* implementation
* proto fix
* api middleware
* tests
* more tests
* switch from Errorf to Error
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-19 15:08:30 +00:00
Radosław Kapka
b7a878d011
Resolve remaining native state tasks ( #11561 )
...
* remove ToProto and ToProtoUnsafe wrappers
* TestAppendBeyondIndicesLimit
* change type of genesisValidatorsRoot
* fuzz tests
* check type assertion
2022-10-19 10:37:45 -04:00
Raul Jordan
2ae9f1be9e
Prysm Web UI Release v2.0.2 ( #11559 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
2022-10-19 03:11:22 +00:00
Radosław Kapka
98b9c9e6c9
Handle unaggregated attestation event ( #11558 )
2022-10-18 10:34:25 -04:00
james-prysm
df694aad71
prysmctl: validator exit ( #11515 )
...
* moving voluntary exit command to prysmctl
* fixing linting
* fixing imports
* removing unused import:
* refactoring and adding a new unit test
* rolling back some changes
* fixing parameters
* fixing tests
* adding to main prysm ctl
* refactoring how wallet function works and ux to validator exit
* adding interop support
* fixing bazel build
* fixing if statement
* fixing beaconcha.in printout
* fixing web3signer bug, missing signing slot info
* fixing deep source issues
* fixing bazel package visibility for prysmctl
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-17 16:04:19 -05:00
terencechain
e8400a0773
Fix complains and bad test ( #11555 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-17 16:20:26 +00:00
Radosław Kapka
dcba27ffbc
add server name to address ( #11556 )
2022-10-17 10:59:17 -04:00
Radosław Kapka
cafe0bd1f8
Capella beacon state ( #11141 )
...
* fork
* types
* cloners
* getters
* remove CapellaBlind from fork
* hasher
* setters
* spec params, config tests
* generate ssz
* executionPayloadHeaderCapella
* proto state
* BeaconStateCapella SSZ
* saving state
* configfork
* BUILD files
* fix RealPosition
* fix hasher
* SetLatestExecutionPayloadHeaderCapella
* fix error message
* reduce complexity of saveStatesEfficientInternal
* add latestExecutionPayloadHeaderCapella to minimal state
* halway done interface
* remove withdrawal methods
* merge setters
* change signatures for v1 and v2
* fixing errors pt. 1
* paylod_test fixes
* fix everything
* remove unused func
* fix tests
* state_trie_test improvements
* in progress...
* hasher test
* fix configs
* simplify hashing
* Revert "fix configs"
This reverts commit bcae2825fc .
* remove capella from config test
* unify locking
* review
* hashing
* fixes
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-12 11:39:19 -05:00
Potuz
ce7f042974
Add Withdrawal helpers ( #11552 )
...
* Add Withdrawal helpers
* Review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-12 08:44:41 -05:00
int88
974cf51a8c
fix some comment and log error ( #11550 )
...
* fix some comment and log error
* Update testing/endtoend/component_handler_test.go
* Apply suggestions from code review
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-11 14:07:47 -04:00
Radosław Kapka
eb49404a75
Expose structs from API Middleware ( #11547 )
2022-10-07 15:45:26 +00:00
Preston Van Loon
6bea17cb54
Update libp2p to support go 1.19 ( #11309 )
...
* Update libp2p to support go 1.19
* gaz
* go mod tidy
* Only update the minimum deps
* go mod tidy
* revert .bazelrc
* Update go-libp2p to v0.22.0 and update import paths (#11440 )
* Fix import paths
* Fix go-libp2p-peerstore import
* Bazel updates
* fix
* revert some comments changes
* revert some comment stuff
* fix dependency issues
* vendor problematic library
* use your brain
* remove
* tests
Co-authored-by: Marco Munizaga <marco@marcopolo.io >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-10-07 15:24:51 +08:00
Nishant Das
de8e50d8b6
Migrate Historical States In Separate Routine ( #11501 )
...
* add changes
* space
* add test
* space
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-10-05 19:11:03 +00:00
Sammy Rosso
8049060119
Add flag to enable logging on rejected gossip message ( #11524 )
...
* add option to log rejected gossip message
* fix rejectGossipMessage return
* revert test + fix import
* revert all beaconchain/sync/validate_* files
* log object and message if flag is set
* fix failing build
* remove object field
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-10-05 15:18:08 +00:00
Krasimir Georgiev
c1446a35c5
fix panic when the rpc client is not initialized ( #11528 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Your Name <you@example.com >
2022-10-05 14:02:01 +02:00
james-prysm
f5efde5ccc
Keymanager API: fix fee recipient API and add persistence ( #11540 )
...
* fixing bug with fee recipient api
* fixing unit tests
* clarifying logs
2022-10-04 17:05:46 +00:00
Nishant Das
cdcb289693
Handle New Agent Version For Lodestar ( #11536 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-10-04 14:39:12 +02:00
Nishant Das
5dca874530
Fix Validator Monitor Registration ( #11537 )
...
* fix it
* gaz
2022-10-04 12:44:57 +02:00
Nishant Das
885dd2e327
Revert "More efficient way of computing skip slot cache key ( #11441 )" ( #11535 )
...
This reverts commit 0f0d480dbc .
2022-10-04 14:13:11 +08:00
terencechain
0f0d480dbc
More efficient way of computing skip slot cache key ( #11441 )
...
* More efficient way of computing skip slot cache key
* Gazelle
* Add defensive check
* Fix test setup
* Disable skip slot cache
* Fix rpc tests for dependent root
2022-10-03 13:53:17 -04:00
terencechain
1696208318
Add CLI flag to define execution engine timout ( #11489 )
...
* Add CLI flag to define execution engine timout
* Rm unused
* Fix import
* Fix lint
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-30 18:05:05 +00:00
terencechain
7f686a7878
Cache proposer slot index for GetProposerDuties ( #11521 )
2022-09-30 19:19:40 +02:00
Potuz
2817f8e8d6
update head should go even without attestations ( #11503 )
...
* update head should go even without attestations
* add unit tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-30 13:29:18 +00:00
Radosław Kapka
db76be2f15
Remove state code owners ( #11519 )
2022-09-30 13:21:06 +00:00
Potuz
ad65c841c4
Add a justified balance getter to forkchoice ( #11513 )
...
* init
* unit test
* DeepSource complains
* gaz
* shutting deepsource down
* change var name and use handler type
* Kasey's name suggestion
* fix stategen
* interface signature
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-30 06:39:07 -03:00
terencechain
7b255f5c9d
Don't mark builder status unhealthy if mev-boost status is non 200 ( #11506 )
...
* Log error for mev boost / relayer status, not return error
* Add ticker to poll relayer status
* Add ticker to poll relayer status
* Update beacon-chain/builder/service.go
* Rm test
* Check nil before calling status
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-29 20:54:24 +00:00
Sammy Rosso
157b1e373c
fix validator loggin timeTillDuty as a negative number ( #11512 )
...
* fix timeTillDuty log shows a negative number
* Update validator/client/validator.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-29 19:48:43 +00:00
terencechain
e3df25f443
Fix attestations update head error logging ( #11514 )
2022-09-29 12:16:42 -07:00
kasey
805473cb38
Give forkchoice to stategen ( #11439 )
...
* add forkchoice to stategen.New, update everywhere
* conflict_1
* Fix proposer_bellatrix test
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-09-28 20:10:27 +00:00
terencechain
a54bb19c82
Set builder get payload timeout to 3s ( #11413 )
2022-09-28 07:55:44 -07:00
terencechain
14908f639e
Remove INTERVALS_PER_SLOT from place holder for test ( #11502 )
...
* Rm INTERVALS_PER_SLOT from place holder
* Comment
2022-09-26 15:19:04 +00:00
Potuz
77fc45304b
Remove protoarray forkchoice ( #11455 )
...
* Remove protoarray forkchoice
* exported errors
* fix spectests
* fix tests
* conflict 1
* Preston's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-26 14:45:21 +00:00
terencechain
722c7fb034
Update consensus layer badge to v1.2.0 ( #11492 )
2022-09-26 00:27:54 +00:00
Potuz
97ef8dde4d
Fix sync tests and update to 1.2.0 ( #11498 )
...
* Fix sync tests and update to 1.2.0
* fix repo sha
2022-09-25 23:48:14 +00:00
terencechain
211c5c2c5c
Beacon api: produce block should skip mev-boost ( #11488 )
...
* Beacon api: produce block should skip mev-boost
* Update comments
* Additional test and comments
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Fix suggestion
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-23 18:45:26 +00:00
Yier
2ea66a8467
Remove unwanted wrapper of GRPC status error ( #11486 )
...
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-23 14:37:30 +00:00
terencechain
7720d98764
Beacon api: propoerly submit blind block ( #11483 )
...
* Beacon api: propoerly submit blind block
* Gazelle
* Fix SubmitBlockSSZ
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/beacon/blocks.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-22 20:13:43 +00:00
james-prysm
20e99fd1f9
Improvement to Fee Recipient UX ( #11307 )
...
* updating mock
* adding new internal api
* adding generated code
* converting validator index to pubkey
* adding new API endpoint
* fixing mock related new API
* fixing unit tests
* preventing failure on startup, replacing with warnings
* improving log message
* changing warn log to error log
* fixing error formatting
* improve log on beacon node side on startup
* fixing deepsource issue
* improving logs
* fixing unit tests
* fixing more tests
* adding error check
* adding in new case for fee recipient to avoid conflicts on changing beacon node suggested fee recipient
* adding default fee recipient check for gas limit as well
* adding improved unit tests
* accidently checked in tmp folder
* adding more unit tests
* fixing gas limit unit test
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/node/config.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update proto/prysm/v1alpha1/validator.proto
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/standard_api.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/runner.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing comments
* updating proto generated files
* fixing linting and addressign review comments
* fixing unit test
* improve error handling
* accidently added tmp folder
* improving function error returns
* realizing i am wrapping error incorrectly
* fixing unit test
* addressing review comment
* fixing linting
* fixing unit test
* improving ux around enable builder
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-22 11:35:35 -05:00
Nishant Das
61f6b27548
Change Default Timeout To 30 Seconds ( #11487 )
2022-09-22 10:43:53 +00:00
terencechain
e1c1d0f864
Don't return out of routine when update head errors out ( #11470 )
2022-09-20 17:31:59 +00:00
Potuz
7a8d780869
do not return on error during on_tick ( #11463 )
2022-09-19 08:10:11 -03:00
Potuz
588674f2fd
Dont return if proposer boost roots are missing ( #11459 )
...
* Dont return if proposer boost roots are missing
* move spectests to doublylinked tree
* unit test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-17 12:46:11 +00:00
Radosław Kapka
73443208a1
Remove proto state ( #11445 )
...
* Remove native state flag and use native state in spectests
* remove feature from tests
* use e2e config in slasher simulator
* use params.BeaconConfig in testutil
* use correct function
* use minimal config in go_test
* fix TestListValidators
* parameterize sync committee bits and aggregation bits
* Fix TestServer_ListIndexedAttestations_GenesisEpoch
(cherry picked from commit 254ab623dde08ae8886b152facdbbd8889ed79db)
* fix more tests
* fix even more
* moreeee
* aaaand more
* one more fix
* one more
* simplify TestGetAltairDuties_UnknownPubkey
* comment out problematic test
* one more fix
* one more
* aaaand one more
* another
* use fieldparams in HydrateBlindedBeaconBlockBodyBellatrix
* create new package for mainnet tests
* TestServer_GetBellatrixBeaconBlock
* change slashed validator index
* clear cache in reward_test.go
* deprecate flag
* create bazel mainnet target
* move attester mainnet test to mainnet target
* "fix" proposer tests
* use minimal config in TestServer_circuitBreakBuilder
* fix TestProposer_ProposeBlock_OK
* more fixes in validator package
* more fixes
* more fixes
* test code
* move TestProposer_GetBeaconBlock_BellatrixEpoch to minimal
* finally
* remove proposer_bellatrix_mainnet_test.go
* fix TestServer_GetBellatrixBeaconBlock_HappyCase
* fix TestServer_GetBellatrixBeaconBlock_BuilderCase
* Preston needs to fix this!
* Revert "Preston needs to fix this!"
This reverts commit b03d97a16e .
* remove proto state tests
* fix migration tests
* static analysis fix
* review
* remove proto state
* swap state in tests
* fix BUILD file in /proto/testing
* remove metrics test with nil state
2022-09-16 18:17:46 -04:00
Potuz
9c2c665e92
Remove optimistic sync candidate check ( #11453 )
...
* Remove optimistic sync candidate check
Since we know we have merged and the chain has advanced 128 slots,
there's no possible forkchoice Poissoning attack anymore, removing the
check and allowing any block to be imported optimistically.
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-16 16:05:30 +00:00
Radosław Kapka
0f0ab1327e
Deprecate native state flag ( #11268 )
2022-09-15 20:47:51 +02:00
Potuz
a27feb4cb2
Implement optimistic sync spectests ( #11391 )
...
* builder changes
* New valid status
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-15 05:42:20 +00:00
Radosław Kapka
41e95cb274
Release headLock on error ( #11412 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-14 11:44:38 +02:00
terencechain
3b8a3c2276
Remove unused WithTimeout ( #11420 )
2022-09-13 17:18:30 +02:00
terencechain
5a1d260b9a
Update block arrival histogram values ( #11424 )
...
* Update block arrival histogram values
* Add 250 and 750
* Add back 1500 and 2000
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-12 16:58:15 +00:00
terencechain
53627e9709
Metrics: capture reorg distances and depths ( #11435 )
...
* Capture reorg distance and depths
* Use historgrams instead of gauges
* Fix build
* Edit help texts
2022-09-12 15:06:52 +00:00
terencechain
9fefb33cdf
Forkchoice: track highest received root ( #11434 )
2022-09-12 16:29:01 +02:00
terencechain
d860daff75
clean up: godoc comments, redundant castings and more ( #11428 )
...
* clean up: Godoc comments, redundant castings and more
* Fix assertion check
* Update beacon-chain/forkchoice/doubly-linked-tree/forkchoice.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/forkchoice/protoarray/store.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-12 14:03:20 +00:00
Potuz
6cf4f3c260
Report voted fractions for a given root ( #11421 )
...
* Report voted fractions for a given root
* unused parameters
* comment update
* change test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-11 19:04:40 +00:00
terencechain
99fbf5d3d8
Cancel context propoerly for validator runner ( #11429 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-09 18:28:20 +00:00
Preston Van Loon
d57a44b973
Update bazel to 5.3.0 (LTS) ( #11427 )
...
* update bazel version to 5.3.0
* Remove duplicated flags for test (inherits from build)
2022-09-09 16:43:15 +00:00
Nishant Das
fbe591c363
Fix Gossipsub Parameter ( #11425 )
2022-09-09 15:36:43 +00:00
Potuz
fc509cc220
Prune during on_tick ( #11387 )
...
* Prune during on_tick
* add unit test
* fix tests
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-08 14:41:10 +00:00
terencechain
78cbe4dfe1
Fall back to uncached getPaylod if first time outs ( #11404 )
...
* Fall back to uncached getPaylod if first time outs
* Skip only deadline error. Unit test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-08 14:20:32 +00:00
Potuz
436fcb8682
flip defensive pull flag ( #11419 )
2022-09-08 13:42:29 +00:00
Radosław Kapka
b4d2395a38
Tests for builder service ( #11214 )
...
* Tests for builder service
* fix glob
* minor changes to mock
* add comments to mock
* Revert "Auxiliary commit to revert individual files from bc62a140347e3cbd8bd82e99cf5e9deb98b74df0"
This reverts commit c4c1016cb597b9340d1c81ab3816e037a6b97f9e.
* correct comment
* Do not init builder for empty endpoint
* revert merging issues
* better nil checks
* test fix
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 18:29:44 +00:00
Justin Traglia
0cee01ad55
Throw error if marshaling invalid Uint256 ( #11347 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-06 20:07:08 +02:00
terencechain
14a6fe3f01
Validate downloaded state slot matches header slot ( #11396 )
...
* Ensure downloaded state slot matches header slot
* Regression test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 16:21:59 +00:00
Radosław Kapka
4d90afe944
Fixed size arrays in block interfaces and structs ( #11375 )
...
* Fixed size arrays in block fields
* test fix
* fmt
* fix fetcher test
* fix fuzz tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 14:30:16 +00:00
terencechain
b98e9019ce
Rename invalid count to invalid children count ( #11411 )
2022-09-06 14:04:32 +00:00
terencechain
45a637a3b0
Move provided time is later from warning to debug ( #11398 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 13:27:32 +00:00
terencechain
17f3d66885
Log ready for merge every min ( #11410 )
...
* Log ready for merge every min
* Update beacon-chain/execution/check_transition_config.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-09-06 13:07:48 +00:00
Potuz
29390516b0
fix forkchoice endpoint ( #11403 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 17:57:08 +00:00
Potuz
135c30e912
remove children slice when pruning ( #11402 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 16:44:03 +00:00
Potuz
50f9d2bab8
Better log fee recipient mismatch ( #11395 )
...
* Better log fee recipient mismatch
Logs if the returned payload from the engine does not have the fee
recipient set in the validator.
Also warn the user if he's proposing a block with the burner fee
recipient address.
* fix tests
2022-09-05 14:13:51 +00:00
Potuz
8743e6a688
Harden witholding fix ( #11397 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-05 02:26:10 +00:00
Potuz
08e6274c14
add forkchoice node timestamp to json response ( #11394 )
2022-09-04 19:52:39 +00:00
kasey
cca9ea6989
move forkchoice init back to node ( #11344 )
...
* move forkchoice init back to node
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-09-02 13:56:50 -05:00
Mike Neuder
cbc2153664
Wallet Create CLI manager integration ( #11331 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet create CLI Manager migration
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* Wallet recover CLI Manager migration (#11278 )
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* bazel run //:gazelle -- fix
* rename to ConstructCLIManagerOpts
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-09-02 14:56:47 +00:00
terencechain
8627fe72e8
Remove activation/exit queue metrics ( #11389 )
...
* Remove activation/exit queue metrics
* Gaz
* Rm unused vars
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 19:11:25 +00:00
Raul Jordan
65bf3d0fa8
Fix Div By 0 in Small Helper ( #11390 )
2022-09-01 18:26:28 +00:00
Raul Jordan
a5da9aedd4
Add in P2P Metrics for Mainnet ( #11386 )
...
* connected peers gauge vec
* build
* add in gossip metric
* clean
2022-09-01 18:00:54 +00:00
Potuz
e1ab034d25
Defensive pulls protoarray ( #11385 )
...
* Defensive pull tips protoarray
* unit test
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 15:05:44 +00:00
Potuz
84bc8f3d64
Fix fillInMissingBlocks ( #11353 )
...
* Fix fillInMissingBlocks
Only check that the chain's parent is in forkchoice, rather than it
being the finalized checkpoint. Forkchoice anyway guarantees that the
chain will be a descendant of the finalized checkpoint.
* ensure root is not zero
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 14:40:32 +00:00
Radosław Kapka
c4deb84012
Simplify BeaconBlockIsNil() ( #11373 )
...
* Simplify `BeaconBlockIsNil()`
* remove unused code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-09-01 03:40:20 +00:00
kasey
488e19e428
less ominous --weak-subjectivity-checkpoint warning ( #11362 )
...
* fix #11361
* change log level to debug
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-09-01 01:56:56 +00:00
Raul Jordan
bcaae1c440
Performance Metrics for Prysm ( #11377 )
...
* atts performance and blocks
* idiomatic observe
* all attestation related errors
* block metrics
* db metrics
* metrics func
* rem old metrics
* naming
* rem metric
* rem unneeded
* fix
* fix up
* rev
* fix
* rem
2022-09-01 01:26:19 +00:00
terencechain
587ba83aca
Better batch block processing warning ( #11372 )
...
* Better batch block warning
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-01 00:57:55 +00:00
terencechain
091f16b26c
Don't hard shutdown if mev-boost / relay is not available ( #11380 )
...
* Don't hard shtudown if mev-boost / relay is not available
* Add else
2022-08-31 23:58:27 +00:00
Potuz
fb9626fdd7
Feature flag to disregard deposit contract ( #11370 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 22:35:59 +00:00
terencechain
c638e114db
Add new metrics ( #11374 )
...
* Better batch block warning
* New metrics
* Revert "Better batch block warning"
This reverts commit e21fcfcebe .
* More metrics
* Add activation and exit queues
* Gaz
2022-08-31 18:05:50 -04:00
terencechain
b1e08307ed
Fix time to duty to round slot number ( #11371 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 19:54:44 +00:00
kasey
cac5d0f234
giving commands more clear names per issue #11287 ( #11360 )
...
* giving commands more clear names per issue #11287
* mark the top-level help text for cpt deprecated
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-08-31 13:18:35 -05:00
james-prysm
52d48b328f
Improve Validator Index RPC Error Handling ( #11363 )
...
* adding in nil check for head
* adding changes based on feedback
* Update beacon-chain/rpc/prysm/v1alpha1/validator/server_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-31 16:42:49 +00:00
Nishant Das
9729b2ec77
Remove The Header Time Check ( #11329 )
...
* remove the check
* remove function and tests
* dead code
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-31 14:54:29 +00:00
terencechain
7aa3776aa6
Log tx count only on payload ( #11368 )
2022-08-31 14:38:44 +02:00
Potuz
760c71ef77
Only update finalized checkpoint in DB if it's newer ( #11356 )
...
* Only update finalized checkpoint in DB if it's newer
Do not save to DB a finalized checkpoint that it's older than the
current one.
* Add a test
* Add more strict condition check
* Revert params.SetupTestConfigCleanupWithLock(t)
* Remove new line
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2022-08-31 00:16:22 +00:00
james-prysm
6c209db3ca
fixing json unmarshalling ( #11357 )
...
* fixing json unmarshalling
* adding unit test for no conent
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 19:31:23 +00:00
Raul Jordan
0725905797
Informative Errors on Execution Client Connection Issues ( #11359 )
...
* add err auth help
* error working
* add err auth fix
2022-08-30 19:09:42 +00:00
terencechain
166f8a1eb6
Log corerct header value ( #11354 )
...
* Log corerct header value
* gaz
* Go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 16:23:21 +00:00
Radosław Kapka
85896e994e
Explain the purpose of deprecatedBeaconFlags ( #11355 )
2022-08-30 15:47:36 +00:00
Nishant Das
4a00b295ed
Pin Fuzzbuzz to Go 1.18 ( #11350 )
2022-08-30 10:18:23 +02:00
Potuz
d2b39e9697
Defensive pull tips, doubly-linked-tree ( #11175 )
...
* Defensive pull tips, doubly-linked-tree
* feature flag
* gaz
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-30 00:48:25 +00:00
Shem Leong
97dc86e742
Support passing of headers to all Engine API calls ( #11330 )
...
* Support passing of headers to all Engine API calls
* Update execution headers example
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-29 23:34:29 +00:00
terencechain
cff3b99918
Fix can propose blind block ( #11346 )
2022-08-29 13:30:28 -07:00
terencechain
be9847f23c
Remove unused code ( #11345 )
2022-08-29 18:03:03 +00:00
Håvard Anda Estensen
4796827d22
Replace deprecated linter deadcode with unused ( #11334 )
...
* Replace deprecated linter deadcode with unused
* Ignore unused warnings
* Print filename and line number when linting fails
* Fix path
* Remove unused methods
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-29 12:45:25 -04:00
Preston Van Loon
57b7e0b572
db: Wrap errors in db.fetchAncestor to better identify unmarshalling issues ( #11342 )
...
* db: Wrap errors in db.fetchAncestor to better identify unmarshalling issues. See #11327
* Wrap genesis state fetch, just in case
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-29 16:08:03 +00:00
terencechain
b5039e9bd9
Better chain start log ( #11332 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-29 15:48:23 +00:00
james-prysm
f5d792299f
e2e: updating web3signer version ( #11339 )
...
* updating version
* reverting change to lighthouse sha
2022-08-29 15:29:40 +00:00
Potuz
9ce922304f
Track timestamp in forkchoice ( #11333 )
2022-08-29 14:49:02 +00:00
Nishant Das
3cbb4aace4
Fix IPC Paths For Windows ( #11324 )
...
* return early for windows
* mick's review
2022-08-26 23:05:28 +00:00
terencechain
c94095b609
Accept everything when node is optimistic ( #11320 )
2022-08-26 21:41:59 +00:00
kasey
ae858bbd0a
removing dead code to appease linter ( #11326 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2022-08-26 16:06:44 +00:00
Radosław Kapka
30cd158ae5
Move forkchoice dump to eth namespace ( #11325 )
...
* protos
* server code
* rename v2 to v1 in endpoint
* middleware
* test fix
* test fix
* oops
* remove duplicated import
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-26 14:54:32 +00:00
Nishant Das
2db22adfe0
Handle Execution Client Failures Better ( #11321 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-26 14:30:13 +00:00
Nishant Das
161a14d256
Update Lighthouse to v3 in our E2E Runner ( #11323 )
...
* update to v3
* fix sha
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-26 13:24:28 +00:00
Håvard Anda Estensen
9dee22f7ab
Pre-allocate slices ( #11317 )
2022-08-26 13:49:50 +02:00
Potuz
52271cf0ba
Report depth and distance on reorgs ( #11315 )
...
* Report depth and distance on reorgs
* rename to CommonAncestor
* change event feed
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:59:08 +00:00
Potuz
e1f56d403c
Restore forkchoice dump endpoint. ( #11312 )
...
* Restore forkchoice dump endpoint.
Only working on doubly-linked-tree.
* unit test
* revert proto changes
* protoarray
* Deepsource
* shut up!
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 23:37:23 +00:00
terencechain
a2193ee014
Accept attestations when node is optimistic ( #11319 )
...
* Accept attestations when node is optimistic
* Fix tests
* Add regression tests
* Fix tests
* Fix more bad tests
2022-08-25 20:15:07 -03:00
james-prysm
762b3df491
Beacon API: api wrongly marked deprecated ( #11316 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-25 21:02:17 +00:00
terencechain
2b3025828f
ErrorContains dont allow empty string (#11314 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 19:07:39 +00:00
terencechain
436792fe38
Builder: filter header with 0 bid and empty tx root ( #11313 )
...
* Filter header with 0 bid and empty root
* Check nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 18:24:02 +00:00
terencechain
1d07bffe11
Beacon api: fix get blind block ( #11304 )
...
* Beacon api: fix get blind block
* Gaz
* Add back before bellatrix behavior
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-25 17:19:17 +00:00
Preston Van Loon
f086535c8a
Update llvm to 13.0.1 ( #11310 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-25 15:15:14 +00:00
Han Shen
3a4c599a96
Implement delete gaslimit ( #11290 )
...
* Implement delete gaslimit.
* Minor comment change.
* Reset gaslimit to DefaultConfig's gaslimt instead of 0.
* After gaslimit deletion, use global gaslimit default value instead of values provided in ProposalConfig.
* After deletion, use config default, if that is not available, use global default gaslimit value.
* Use grpc's codes.NotFound instead of http code "404".
* Updated bazel deps (new imports "google.golang.org/grpc/codes" was added for tests).
* Fix "TestServer_RecoverWallet_Derived" test failure.
Previously "params.BeaconConfig()" (thus the default global value
"BLSSecretKeyLength") was overriden by standard_api_test:TestServer_DeleteGasLimit.
Fixed the problem by retoring the origin global default after the test is done.
* Do not change BeaconConfig object, instead change BeaconConfig.DefaultBuilderGasLimit.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-25 14:43:21 +00:00
Nishant Das
1c6cbc574e
Update Geth Version In Prysm ( #11308 )
...
* clean up
* clean up
2022-08-25 13:55:01 +00:00
Potuz
2317375983
Add feature flag to treat all blocks as optimistic at startup ( #11303 )
...
* Add feature flag to treat all blocks as optimistic at startup
* Terence's review
* remove changed empty lines
* Apply suggestions from code review
* Go fmt sorry
* bad comments
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-25 12:40:29 +00:00
terencechain
6354748b12
Update badges ( #11305 )
...
* Update badges
* Update README.md
2022-08-24 22:46:56 +00:00
Nishant Das
e910471784
Add In Duty Logging ( #11301 )
...
* add it in
* use time until
* potuz's review
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-24 19:50:19 +00:00
Potuz
ab7e97ba63
Fix setNodeAndParentValidated ( #11302 )
...
* Fix setNodeAndParentValidated
* fix tests
2022-08-24 19:30:45 +00:00
Mike Neuder
e99de7726d
Wallet recover CLI Manager migration ( #11278 )
...
* Wallet recover CLI Manager migration
* bazel run //:gazelle -- fix
* fix lint and build errors
* add TODO to remove duplicate code
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-24 16:57:03 +00:00
Justin Traglia
606fdd2299
Return copy of deposits instead of internal pointer ( #11273 )
...
* Return copy of deposits instead of internal pointer
* Update the comment
* Fix linter warning
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-24 15:46:51 +00:00
james-prysm
1eb6025aaa
Beacon API: validator registration encoding bug ( #11299 )
2022-08-24 15:05:43 +00:00
Nishant Das
d431ceee25
Improve Logging When Parsing JWT Secret ( #11300 )
...
* remove all references
* remove warning
2022-08-24 13:16:48 +00:00
james-prysm
4597599196
Code Cleanup: remove forkchoicer from beacon node ( #11294 )
...
* removing forkchoicestore on beacon node
* fixing linting
* Update beacon-chain/node/node.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* fixing if statement
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:47:12 +00:00
james-prysm
0c32eb5c03
Beacon API: skip updating fee recipient if it's the same ( #11296 )
...
* adding in redudant check
* adding unit tests
* fixing linting
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-23 17:26:43 +00:00
terencechain
4b1cb6fa80
Fork aware beacon API end points ( #11274 )
...
* Make operation RPC fork aware
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-23 17:07:11 +00:00
Nishant Das
9cfb823cc6
Simplify List Attestations RPC Method ( #11292 )
...
* simplify
* fix tests
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-23 12:47:16 -04:00
terencechain
cb502ceb8c
Skip updating fee recipient if it's the same ( #11295 )
2022-08-23 10:54:38 -05:00
Roberto Bayardo
8da4d572d9
fix wrapping of nil errors ( #11282 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-22 16:57:43 +00:00
terencechain
1c6fa65f7b
Add back deprecated flags ( #11284 )
...
* Add back deprecated flags
* Add enable-validator-registration as alias
* Clean up
* Add deprecatedEnableLargerGossipHistory
* Rm duplicated gossip batch aggregation
2022-08-22 16:05:15 +00:00
Nishant Das
eaa2566e90
Add Back Fallback Provider Flag ( #11281 )
...
* add it back
* remove all references
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-22 11:20:21 -04:00
Nishant Das
6957f0637f
Bring Down Error To A Debug Log ( #11283 )
2022-08-22 12:00:50 +00:00
Nishant Das
01b1f15bdf
Add Back Resync Routine ( #11280 )
2022-08-21 13:31:40 +00:00
Nishant Das
b787fd877a
Handle Deprecated Flags Correctly ( #11276 )
2022-08-20 04:16:14 +00:00
Nishant Das
2c89ce810d
Bring back old execution flag as an alias ( #11275 )
2022-08-20 03:28:22 +00:00
Potuz
e687fff922
Insert attestations on block ( #11260 )
...
* Insert attestations from blocks to forkchoice
* do not insert twice
* use OnAttestation instead
* Revert "use OnAttestation instead"
This reverts commit 577c37bbeb .
* unit test
* fix test
* Update beacon-chain/blockchain/receive_block_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-19 17:02:17 +00:00
james-prysm
5e2498be7e
Gas_Limit as string ( #11264 )
...
* setting gas limit as string in json and yaml
* adding more tests
* fixing unit test
* fixing string conversion
2022-08-19 11:36:49 -05:00
Potuz
76f958710f
Protoarray deadlocks ( #11271 )
...
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:46:12 +00:00
Potuz
1775cf89c6
Call on_tick on every skipped slot for spectests ( #11262 )
...
New spectests ensure that we call on_tick for every slot between the
last tick and the current one. This PR fixes that
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:25:35 +00:00
Potuz
8fecfaee48
DoublyLinkedTree double locks ( #11269 )
...
* DoublyLinkedTree double locks
* fix updateCheckpoints
* add comment
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 14:06:57 +00:00
terencechain
f089405d2f
Update spec tests to v1.2.0-rc.3 ( #11261 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:46:41 +00:00
Nishant Das
029c81a2e4
Switch Down Libp2p Logging Level By Default ( #11266 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-19 13:09:29 +00:00
Nishant Das
56c48b4971
Tag Gosec To Last Stable Version ( #11267 )
2022-08-19 13:00:30 +00:00
Raul Jordan
20ed47a107
Add a Generate Genesis State Command to Prysmctl ( #11259 )
...
* genesis tool
* done with tool
* delete old tool
* no fatal
* fix up
* Update cmd/prysmctl/testnet/generate_genesis.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek feedback
* more feedback
* required
* fix up
* gaz
* radek feedback
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-19 09:26:25 +00:00
terencechain
e30471f1a0
Remove inclusion distance & slots ( #11265 )
2022-08-18 16:31:22 -07:00
terencechain
3b38765a2d
Better re-org log ( #11253 )
...
* Better re-org log
* Dont' return err
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-18 16:53:17 +00:00
Raul Jordan
b60e508c89
Remove Slasher Deprecated Protos ( #11257 )
...
* rem deprecated
* fix slasher
2022-08-18 15:56:05 +00:00
Justin Traglia
a65c670f5e
Use function argument in error message instead of return value ( #11244 )
...
* Do not use return value in error handling
* Revert changes to EpochFromString & SlotFromString
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-18 14:01:24 +00:00
Han Shen
4af7d8230a
Implement "set gaslimit" for KeyManager API ( #11208 )
...
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit".
* Fixed comment string.
* Regenerated key_management proto files.
* Addressed code review comment - explitly set BuildConfig.Enabled to false.
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-18 04:49:54 +00:00
Han Shen
27733969f7
Fixed flag usage text typo. ( #11254 )
2022-08-17 23:50:26 +00:00
Raul Jordan
e70fe1c9fd
Support Chain Config File Loading in Genesis State Tool ( #11249 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:44:29 +00:00
Justin Traglia
9b3a834437
Parse slot as uint64 in spectest ( #11252 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-08-17 19:34:43 +00:00
terencechain
d815fa8f21
Remove deprecated eth endpoints ( #11251 )
...
* Remove deprecated eth endpoints
* Add back blockroot
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 19:20:34 +00:00
Justin Traglia
ac3079f8cd
Add lock around unsafe append in goroutine ( #11247 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-17 19:01:01 +00:00
Raul Jordan
cb8f6423e0
Do Not Push Prysmctl Docker Images to Dockerhub ( #11250 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:15:31 +00:00
terencechain
515e7c959f
Remove deprecated RPC ListBlocks ( #11243 )
...
* Remove deprecated RPC ListBlocks
* Fix test
* Rm mock
* Go imports
* Rm unused
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 18:07:28 +00:00
Raul Jordan
82bbfce524
Use GolangCI-Lint for Goimports Checking Instead of Third-Party Image ( #11246 )
2022-08-17 17:15:08 +00:00
terencechain
95430ddb57
Remove deprecated SubmitValidatorRegistration ( #11242 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 16:35:41 +00:00
james-prysm
21b7861d37
Keymanager API: enum lowercase ( #11194 )
2022-08-17 16:11:04 +00:00
Raul Jordan
c1e7afa201
Prysm Web UI Release v2.0.1 ( #11240 )
...
Co-authored-by: james-prysm <james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 15:38:18 +00:00
terencechain
dfa400d4a1
Add mainnet merge epoch and ttd ( #11207 )
...
* Add tentative mainnet merge epoch and ttd
* Update minimal
* Update commit
* Update WORKSPACE
* Update spec tests
* Add eip4844 place holders
* Skip lightclient types
* Skip lightclient types
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 15:18:43 +00:00
terencechain
b04c28b30c
Remove disable-attesting-history-db-cache ( #11239 )
2022-08-17 14:23:13 +00:00
Taranpreet26311
ed07359573
Enable Gofmt Linting via Golang-CI Lint to Allow for Generic Code in Prysm ( #11205 )
...
* converting to generic
* enable gofmt linting
* enable gofmt
Co-authored-by: James He <james@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 13:53:46 +00:00
Nishant Das
25d87dd27b
Remove Disable DiscoveryV5 Flag ( #11237 )
...
* remove flag
* go fmt
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 12:45:12 +00:00
Nishant Das
a9ccabf6c9
Remove Bolt Mmap Flag ( #11236 )
...
* remove mmap flag
* fix mmap
* fix all build
* gaz
* config
* fix
2022-08-17 12:22:41 +00:00
james-prysm
2377d6d6ea
Register validator beacon api ( #11225 )
...
* adding in beacon API request Object
* fixed proto generation
* fixing protos
* adding new API logic and fixing linting
* adding work in progress unit test for validator registrations
* fixing unit test
* fixing linting
* fixing function name to match interface
* changing emptypb to empty.Empty
* fixing import complaint
* removing unused import
* fixing import
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* adding emptypb.Empty back in
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/eth/validator/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* adding validator registration API to apimiddleware
* fixing import
* fixing import format
* fixing protos
* fixing goimports
* removing duplicate import
* fixing proto
* fixing error message in test
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-17 11:41:51 +00:00
Raul Jordan
100ca0ebaf
Prysmctl Command to Request Beacon Nodes for Block Ranges Over P2P ( #11035 )
...
* first
* attempt p2p connect send tool
* attempt
* stream registration
* trying to register
* attempt
* workinnnn
* begin
* p2p prysmctl tool
* ignore
* fix
* delete deprecated
* p2p smaller iface surface area
* further p2p refactor
* gaz
* better logging
* process
* all functionality
* fix up
* rhandle
* v2 req
* cmd
* send sub
* v1 handle
* show head slot
* cmd
* cmd lib
* gazelle fix
* bazel
* gaz
* work on the handshake items
* prevent dial to self
* add config awareness
* gaz
* inferring host addrs from p2p
* initialize data mappings
* add own mock
* fix up logic
* gaz
* add img
* gaz
* add images
* builds
* builds
* nishant feedback:
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-17 06:38:57 +00:00
Nishant Das
49ef0ad284
Remove Gossip History Flag ( #11232 )
...
* Remove gossip history flag
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 04:49:51 +00:00
Nishant Das
e9ee6e2c9d
Remove Backup Webhook In the Beacon Node ( #11235 )
...
* remove it
* gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 04:29:39 +00:00
Han Shen
a3cc26dd2a
Replace deprecated jwt.StandardClaims with jwt.RegisteredClaims. ( #11230 )
...
* Replace deprecated StandardClaims with RegisteredClaims.
* Replace deprecated StandardClaims with RegisteredClaims.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-17 04:10:11 +00:00
Nishant Das
5ad36486b0
Remove Skip BLS Verification Feature ( #11233 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 02:59:13 +00:00
Nishant Das
faa0643b16
Remove Toggle ( #11234 )
2022-08-17 02:40:12 +00:00
Nishant Das
868377318c
Remove Checkpoint Info Flag ( #11231 )
2022-08-17 02:12:12 +00:00
Radosław Kapka
1c180e5088
Protobuf cleanup ( #11096 )
...
* remove v2 from all messages that are not request/responses
* rename StreamBlocksAltair to StreamBlocks
* fix tests
* fix validator module
(cherry picked from commit 7f2263e90e80499a851c2e09605e2ef5dccb0df8)
# Conflicts:
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* fix mocks
* update validator.pb.go
* Revert "rename StreamBlocksAltair to StreamBlocks"
This reverts commit 9c961c4e64 .
# Conflicts:
# proto/prysm/v1alpha1/validator.pb.go
# testing/mock/beacon_validator_client_mock.go
# testing/mock/beacon_validator_server_mock.go
* Revert "Auxiliary commit to revert individual files from a872c9d59dee869da5a9c7236c7ac34fcaf8d54c"
This reverts commit 89f19e4f15006c4a0efe593229abc433491e578e.
* Revert "Auxiliary commit to revert individual files from 9acbf7b0160626dae0d39c58fa0d8a3e48c203e0"
This reverts commit 398ecc9cef460c27e7fc92efe4df3fc9d3dbe566.
* update mocks
* fix build errors
* patch up
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-17 01:35:27 +00:00
Potuz
b4fb8304fe
Revert --enable-vectorized-htr ( #11229 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-16 20:24:08 +00:00
Raul Jordan
1062f5fe4d
Fix Proto Generation Scripts and Regen Protos With V3 Bindings ( #11227 )
...
* proto gen fix
* regen protos and ssz bindings
* regen
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:52:24 +00:00
Radosław Kapka
01614e7bfb
Add execution_optimistic to getBlockV2 ( #11226 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:31:59 +00:00
terencechain
8d3f474bfa
Misc builder fixes ( #11228 )
...
* Fix a few bugs
* Fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 19:10:40 +00:00
Radosław Kapka
ccfc09151f
Add expected waiting time to pending validator log ( #11213 )
...
* Add expected waiting time to pending validator log
* fix TestValidator_HandleKeyReload
* test fix
* fix imports
* test fixes
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 18:05:56 +00:00
Potuz
85ad61ea83
Check for SIGILL before using gohashtree ( #11224 )
...
* Check for SIGILL before using gohashtree
* gohashtree dep
* check error
* move to config startup
* Kasey's advice
* review #1
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-16 17:43:59 +00:00
terencechain
2728b83f6a
Remove Execution Client Fallback and Make Providing an Execution Client Required ( #10921 )
...
* Starting
* Done
* Fix more tests
* Fix test
* Fix test
* fix up
* building
* requirement
* gaz
* builds
* rem deadcode
* fix
* fix up
* removed checked method
* Update service_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-16 17:22:34 +00:00
james-prysm
e0eee87bf4
Improve beacon chain coverage Part 1 ( #11080 )
...
* first node test
* adding in configuration flags for code coverage
* adding line to remove file on unit test
* adding new test for compressed field trie but is currently broken
* changing limit on trie
* adding new trie length coverage
* adding in test for empty copy of trie
* adding more trie tests
* adding new field trie
* adding more field trie tests
* adding clarity to chunking equation
* fixing linting
* clarifying function for limit
* updating native state settings to improve ease of future unit tests
* improving unit test
* fixing unit tests
* adding more tests and fixing linting
* adding more coverage and removing unused file
* increasing node coverage
* adding new test for checking config for booleans
* fixing db test
* fixing linting
* adding signing root test
* fixing linting
* removing accidently created beacondata
* switching not non native state
* reverting back to proto use for spec test
* reverting back to proto for some tests
* turning off native state on some tests
* switching more to proto state
* rolling back disablenativestate
* switching to native state in the state-native package for tests
* fixing linting
* fixing deepsource complaint
* fixing some tests to native state and removing some unused flag checks
* convert to native state
* fixing linting
* issues are being triggered by deleting the db this way so reverting change in hopes of changing this
* rolling back testing util
* rolling back some tests from native state
* rolling back db deletion
* test switching native state off after test runs
* fixing hasher test
* fixing altair and bellatrix hashers for native state
* Update beacon-chain/node/node_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/rpc/auth_token_test.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing imports
* adding altair proof test
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-08-16 16:19:01 +00:00
Potuz
5c84192606
Revert --enable-forkchoice-doubly-linked-tree ( #11212 )
...
* Revert --enable-forkchoice-doubly-linked-tree
* fix tests
* fix parallell test
* fix noviablehead tests
* Terence's suggestion
2022-08-16 10:39:57 -03:00
Raul Jordan
d077483577
Add V3 Suffix to All Prysm Packages ( #11083 )
...
* v3 import renamings
* tidy
* fmt
* rev
* Update beacon-chain/core/epoch/precompute/reward_penalty_test.go
* Update beacon-chain/core/helpers/validators_test.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/alias.go
* Update beacon-chain/db/iface/BUILD.bazel
* Update beacon-chain/db/kv/kv.go
* Update beacon-chain/db/kv/state.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go
* Update beacon-chain/sync/initial-sync/service.go
* fix deps
* fix bad replacements
* fix bad replacements
* change back
* gohashtree version
* fix deps
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-16 12:20:13 +00:00
Potuz
155d60dd60
Remove forkchoice debug endpoint ( #11105 )
...
* Remove forkchoice debug endpoint
* change protos
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-15 21:04:39 +00:00
james-prysm
63b7376b75
Prysm V3: update signing type ( #11099 )
...
* updating proto name
* updating generated files
* updating names on block v2 and v3 signing types
* fixing import format
* fixing unit tests
* fixing unit test
* fixing more conflicts
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 18:22:14 +00:00
terencechain
8de5512908
Builder: check payload and header HTR root match ( #11223 )
...
* Check roots compliance
* Update BUILD.bazel
* Fix test
2022-08-15 18:03:38 +00:00
Nishant Das
65b5c430d1
Fixes API To Only Return Canonical Blocks ( #11221 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 15:48:44 +00:00
terencechain
afe9fa71f0
Add circuit breaker for relayer/builder ( #11215 )
...
* Add circuit breaker for relayer
* Update mainnet_config.go
* Renamings
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 15:28:34 +00:00
terencechain
12b3a0048b
Add warning about block delay when outsourcing block cosntruction ( #11222 )
...
* Add warning about block delay when outsourcing block constr
* Update beacon-chain/builder/service.go
* Update beacon-chain/builder/service.go
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-15 15:04:11 +00:00
terencechain
aa73250373
Health check: optimistic status ( #11204 )
...
* Health check: optimistic status
* Tests
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/rpc/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/rpc/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update beacon-chain/blockchain/service.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Use correct import
* Update BUILD.bazel
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-15 14:45:50 +00:00
Nishant Das
9565ee12d7
Batch Reconstruction Of Bellatrix Blocks ( #11210 )
...
* batch reconstruction
* add test
* clean up
* terence's comment
* terence's other comment
* try out in e2e
* fix
* fix some more
* fix blinded blocks
* fix it
* remove dev flag
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-15 10:16:20 -04:00
sragss
7d7e6fcd62
deprecate eth http api endpoints; update protos ( #10946 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-14 23:29:56 +00:00
Nishant Das
e04a8bcfbd
Remove Deprecated Feature Flags ( #11125 )
...
* remove deprecated feature flags
* remove unused flags
* remove other deprecated flags
* remove native state flag
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-14 12:47:53 +00:00
Potuz
186fbc5f99
release checkpoints lock from store.head ( #11217 )
2022-08-13 07:19:52 -07:00
Potuz
c79ec31c17
Release checkpoints lock on on_tick ( #11216 )
...
There is a double lock race condition when NewSlot acquires the
checkpoints lock first and the nodes lock later, while calls to Head()
acquire the nodeslock first and the checkpoints lock later.
This PR releases the checkpoints lock in NewSlot, to reaquire it later
in updateUnrealizedCheckpoints after getting the nodes lock
2022-08-13 09:30:08 -03:00
Potuz
c64cf05879
update gohashtree ( #11206 )
...
* update gohashtree
* go mod
2022-08-12 12:25:43 +00:00
james-prysm
f7a298ae8f
Prysm V3: delete old unused APIs ( #11086 )
...
* initial commit
* removing old unusued functions and tests
* updating proto generated files
* fixing unit tests
* fixing linting
* fixing file format
* fixing formatting
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-12 09:48:38 +00:00
Siyuan Han
f3997647ac
Fix typos ( #11209 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-12 11:27:24 +02:00
terencechain
9c6efe4abd
Don't insert attestations to forkchoice store ( #11201 )
2022-08-11 19:35:37 -07:00
Leo Lara
9aaa42156b
Add cross compilation for OSX ARM64 (Apple Silicon) ( #10981 )
...
* Upgrade Grail Bazel toolchain to latest release v0.7.2
This should allow Prysm to compile on Ubuntu 21.10 and 22.04
* Changes necessary in .bazelrc for new version of com_grail_bazel_toolchain
* Add cross compilation for OSX ARM64 (Apple Silicon)
* Update cross-toolchain README to include osx_arm64
* Add double quotes to shell code
* Rename install_clang_cross10.sh -> install_clang_cross.sh
* Update with prysmatic labs uploaded assets
* Touch README to trigger CI
* Revert "Touch README to trigger CI"
This reverts commit 826ac8a6d8 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prestonvanloon <preston@prysmaticlabs.com >
2022-08-11 21:40:24 +00:00
terencechain
d72e42bbb8
Rename web3 provider flag to execution endpoint ( #11133 )
...
* Rename web3 provider flag to execution endpoint
* Fix test
* Add aliase and update default port
* Rm alias
2022-08-11 20:39:55 +00:00
kasey
6b42a0a3a1
decreasing stategen interface surface area ( #11132 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 20:12:05 +00:00
james-prysm
f8ff36f534
Builder API Error Log Simplification ( #11199 )
...
* adding in unit tests and updated error messaging
* returning errors correctly
* Update api/client/builder/client.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* updating based on comments
* fixing unit tests
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 19:49:16 +00:00
terencechain
bd9776f510
Remove disable sync flag ( #11120 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 19:27:53 +00:00
Radosław Kapka
252086a0b2
Issue validator warning when beacon node does not use builder ( #11203 )
...
* Issue validator warning when beacon node does not use builder
* typo
* improve log and fix test
* gazelle
2022-08-11 15:05:08 -04:00
terencechain
6dc38ba3a9
Make payload ID key reorg resistant ( #11186 )
...
* Validate cached payload before propose
* Return payload
* Fork resistent key
* Fix tests
* Add comments
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 14:55:26 +00:00
terencechain
93ebba6dca
Remove duty countdown flag ( #11121 )
2022-08-11 14:33:30 +00:00
terencechain
d08aa6b23f
Remove deprecated block RPC ( #11106 )
...
* Remove deprecated block RPC
* Sync and fix test
* Update BUILD.bazel
* Fix e2e
* Fix e2e
2022-08-11 14:07:52 +00:00
terencechain
b0f1ea0451
Remove head sync capability ( #10787 )
2022-08-11 01:05:08 +00:00
Radosław Kapka
0f19beb105
Change proposer cache overwrite logic ( #11191 )
...
* Change proposer cache overwrite logic
* improve comment
* Update beacon-chain/cache/payload_id.go
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* review
* do not hardcode
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2022-08-10 22:49:35 +00:00
Radosław Kapka
5c580d4a1c
Replace version.BellatrixBlind with b.isBlinded ( #11159 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-11 00:00:10 +02:00
terencechain
d35006b0a3
Validate builder header ( #11195 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-10 18:31:37 +00:00
Radosław Kapka
f96b47bcc7
Typo fix ( #11197 )
2022-08-10 12:48:12 -04:00
terencechain
1117118435
Add highest slot and blocks received last epoch tracking ( #11146 )
...
* Add highest slot and blocks received last epoch tracking
* Comments
* Potuz feedback
* Fix tesT
* Potuz feedback, use clock time
* Raul's feedback
* Raul's feedback
* Use field params
* Fix minimal value
* Fix constant
* Fix constant
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-10 15:58:52 +00:00
Radosław Kapka
c2e4ecdfb5
Rename statefetcher methods ( #11196 )
2022-08-10 13:24:56 +00:00
terencechain
9b4d22c48c
Remove unused ctxs ( #11192 )
...
* Remove unused ctxs
* Check ctx errors
2022-08-09 16:43:29 +00:00
Nishant Das
7d5eac7458
Fix Fuzzbuzz Builds ( #11190 )
2022-08-09 11:09:53 +00:00
Preston Van Loon
ed1116e578
Logging: strip new lines and other control characters ( #11185 )
...
* Logging: strip new lines and other control characters
* Use strings.Map and only sanitize the field value
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-08 18:12:12 +00:00
Han Shen
760d2fcfbc
This PR is for issue #11155 "Keymanager APIs: gas limit api" ( #11156 )
...
* This PR is for issue #11155 "Keymanager APIs: get_limit api".
This PR implements the first task "get gas limit for the validator key".
* Removed useless import alias.
* Added regenerated key_management.pb.go/pb.gw.go files as well as endpoint_factory.go changes.
* Address James's comments:
1. api path component should be "gas_limit" instead of "gaslimit".
2. ran curl test like:
- go build -o tmp/validator
- ./tmp/validator --web --validators-external-signer-url=http://localhost:9000/
- curl -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.C-BuVfWhKpr9elB05GTJdEEx_8AzkImxzXL03IqcHR8" 127.0.0.1:7500/eth/v1/validator/0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5/gas_limit
- {"data":{"pubkey":"0xb4844195ce8ca78d9d4f7ffdf4001cfdb079e059542bcc4f45ddfff2bcec7defb1482db4f9426f92f59972da395dd2b5","gas_limit":"30000000"}}
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-08 17:52:18 +00:00
Raul Jordan
c1f2c36704
Respond With Empty Payloads Pre-Merge ( #11184 )
...
* regression test
* build
* nil check
* fix test
* gazelle
* lint
2022-08-08 13:04:09 -04:00
james-prysm
bd3dfb27f3
BugFix: cli stringSlice bug ( #11166 )
...
* fixing stringslice issue and adding one more filter
* fixing linting and improving function based on feedback
* rolling back generic function to check ci
* adding function back in
* testing printing error
* reverting change
* Added gofmt detail flag
* temporary change
* Another flag added
* Revert changes
* Modifed entrypoint
* Another change
* Revert
* Change go image
* Added -e flag
* Switched to alpine image
* Switched go to strech
* Fix typo
* Yet another image added
* Added go alpine
* rolling back generic
* reverting version
* Update go.sum
reverting
* Update go.mod
reverting
* Update Dockerfile
rolling back
* Update entrypoint.sh
rolling back
* Update go.yml
reverting changes
* fixing flag for config
* reverting changes and moving change to another PR
* Update validator/node/node.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* updating based on review
* Update container/slice/slice.go
Co-authored-by: Taranpreet26311 <taran@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-08 16:04:34 +00:00
terencechain
4e225fc667
Use correct fork and genesis root to verify bid ( #11176 )
2022-08-05 18:55:55 +00:00
Nishant Das
9261da7fb1
Update E2E ( #11140 )
...
* save progress
* tidy
* Update go.yml
* make CI happy
* gosec
* revert back
* Update go.yml
* change go version
* remove fixed test case
* fix ci
* fix updates
* fix up
* fix race tests
* fix bad mock
* lock it
* fix it
* fix e2e builds
* use gotags
* Revert "use gotags"
This reverts commit 808863f427 .
* Revert "fix e2e builds"
This reverts commit eb351e7d31 .
* Revert "fix it"
This reverts commit 9e99dac94f .
* Revert "lock it"
This reverts commit 1a3c60ad41 .
* different approach
* better
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-05 13:01:47 +00:00
Vie
ea93a68818
improve log for public key not found ( #11174 )
...
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-08-05 11:39:47 +00:00
Preston Van Loon
9d375969d1
Enforce log.WithError(err) static analysis and fix all violations ( #11163 )
...
* Use log.WithError static analysis from #11143 and fix all violations
* Fix another log violation after pulling from develop
* Update beacon-chain/sync/pending_blocks_queue.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* @potuz feedback
* Copy paste fail
* fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-05 10:52:02 +00:00
David Theodore
1323912625
Node by root mutex fix ( #11172 )
2022-08-04 19:40:25 -07:00
terencechain
c05c18787e
Improve terminal difficulty has not been reached yet logging ( #11171 )
...
* Improve terminal difficulty has not been reached yet logging
* Update beacon-chain/execution/check_transition_config.go
Co-authored-by: mick <103775631+symbolpunk@users.noreply.github.com >
Co-authored-by: mick <103775631+symbolpunk@users.noreply.github.com >
2022-08-04 16:51:42 +00:00
james-prysm
0ed739ac5f
Validator Client: auth-token path log ( #11170 )
2022-08-04 15:59:36 +00:00
Nishant Das
82ef9f1e48
Bring Back Mplex ( #11169 )
...
* bring back
* fix mod
2022-08-04 15:04:51 +00:00
Nishant Das
e169ce9107
Fix Goodbye Codes In Prysm ( #11168 )
...
* fix goodbye codes
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-04 14:11:45 +00:00
Potuz
cef95dd5b2
Revert --experimental-disable-boundary-checks ( #11160 )
...
* Revert --experimental-disable-boundary-checks
* add deprecation
* gaz
* spectests
* spectests fix
* fix previous justified checkpoint
* copy previous jcp
* Revert "copy previous jcp"
This reverts commit 6e2b865c23 .
* update previous jcp on on_tick
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-04 13:26:41 +00:00
terencechain
a82325615b
Can recover from missing state summary in DB ( #11167 )
...
* Can recover from missing state summary in DB
* Tests
* fix tests
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2022-08-04 13:01:07 +00:00
Mike Neuder
8aa6057b60
Wallet edit CLI Manager migration ( #11136 )
...
* Wallet edit CLI Manager migration
* TODO for code deduplication
* s/walletEdit/remoteWalletEdit/g
* s/walletEdit/remoteWalletEdit/g
* remove unused struct field
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2022-08-03 19:44:37 +00:00
terencechain
d4ab08050f
Clean up: fix typos ( #11165 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 18:47:30 +00:00
Preston Van Loon
0c3df40b1f
Remove unused proto import ( #11164 )
...
* Remove unused proto import
* Update generated go files
2022-08-03 18:26:20 +00:00
Potuz
2349899658
Wrap missing state for checkpoint error ( #11162 )
...
* Wrap missing state for checkpoint error
* terence's review
2022-08-03 16:49:11 +00:00
Potuz
19e4cd30cf
Forkchoice: expose if no tip is viable ( #11153 )
...
* Forkchoice: expose if no tip is viable
This PR changes the behavior on when the node is considered optimistic.
A call to `blockchain.IsOptimistic()` relies solely on forkchoice, if
all tips are invalid, then it's optimistic. If the current headroot is
not in forkchoice then it's optimistic.
A call to `blockchain.IsOptimisticForRoot()` will return true if the
requested root is headroot and it's not found in forkchoice
* update comment
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-03 13:59:03 +00:00
Radosław Kapka
7f4c694bb3
Native Blocks Ep. 3 - Remove old code ( #11158 )
...
* Native Blocks Ep. 3 - Remove old code
* rename back package
* fix errors
2022-08-03 13:33:05 +00:00
terencechain
19bc691cef
Update lighthouse prater bootnodes ( #11152 )
2022-08-02 22:04:00 +00:00
Potuz
a5cab4e9c8
Add unit test for reboot behavior ( #11151 )
...
* Add unit test for reboot behavior
* fix conflicts
2022-08-02 17:23:27 +00:00
Radosław Kapka
879e310332
Native Blocks Ep. 2 - Switch usages to new package ( #10885 )
...
* panic in SizeSSZ
* moving slowly
* adapt old code to new interfaces
* return interfaces from factory functions
* replace the rest of WrappedSignedBeaconBlock
* WrappedBeaconBlock
* WrappedBeaconBlockBody
* miscellaneous
* Test_BeaconBlockIsNil
* replace usages of BeaconBlockIsNil
* replace usages of mutator
* fix all build errors
* fix some more issues
* mutator changes
* relax assertions when initializing
* revert changes in object_mapping.go
* allow calling Proto on nil
* Revert "allow calling Proto on nil"
This reverts commit ecc84e4553 .
* modify Copy and Proto methods
* remove unused var
* fix block batch tests
* correct BUILD file
* Error when initializing nil objects
* one more error fix
* add missing comma
* rename alias to blocktest
* add logging
* error when SignedBeaconBlock is nil
* fix last test
* import fix
* broken
* working
* test fixes
* reduce complexity of processPendingBlocks
* simplified
2022-08-02 15:30:46 +00:00
Potuz
4b46dead2f
only viable head is invalid ( #11117 )
...
* failing onBlock syncing
* passing merge check
* failing signature verification
* still failing block signature
* mock full bellatrix blocks
* working unit test
* return error from FCU if head fails to update
* move bellatrix block generator
* remove bellatrix signature function
* Add liveness unit tests
* revert removal of sync_aggregate.go
* gaz
* Terence's suggestion
Co-authored-by: terencechain <terence@prysmaticlabs.com >
* go fmt
* Nishant's suggestion
Co-authored-by: Nishant Das <nishdas93@gmail.com >
* Fix build
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-08-02 11:55:05 -03:00
james-prysm
c1f89cc4c8
fixing log parsing of public validator key ( #11142 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-01 17:08:09 +00:00
Nishant Das
881b5c8adb
Make Batch Gossip Aggregation The Default ( #11144 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-01 16:46:24 +00:00
Preston Van Loon
d17826fb9d
Static Analyzer: require log.WithError instead of log.Errorf("bad: %v", err) ( #11143 )
...
* Add analysis template with failing test
* Works for the most common use case
* Progress on tool and more test cases
* Improvements
* handle nil
* works for the most part
* Fix some TODOs in the tool
* Fix some TODOs in the tool
2022-08-01 16:08:01 +00:00
terencechain
699bfdfdb4
Rename pow to execution ( #11135 )
...
* Rename pow to execution
* Fix complain
* Fix complain
2022-08-01 14:43:47 +00:00
terencechain
758d28678c
Don't create payload with same timestamp as terminal block ( #11129 )
2022-07-31 17:17:55 +00:00
terencechain
616cfd3390
Add flag for validator gas limit catch-all ( #11134 )
...
* Add flag for validator gas limit catch-all
* Update flags.go
2022-07-29 17:20:56 -05:00
terencechain
5005fbfe71
Validate builder signature for Bid ( #11124 )
...
* Validate builder signature for Bid
* Few renamings
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-29 05:16:18 +00:00
terencechain
015cf5ed92
Update teku sepolia bootnode ( #11131 )
...
* Update teku sepolia bootnode
* Update teku sepolia bootnode
2022-07-29 12:56:16 +08:00
Potuz
801d5eabe5
Deal with nil LVH ( #11127 )
...
* Deal with nil LVH
After https://github.com/ethereum/execution-apis/pull/254 the EL may
return `nil` for LVH. Our current implementation would treat this as a
zero hash and thus mark all blocks since the merge block as INVALID
* Apply suggestions from Terence
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-28 16:46:50 +00:00
Radosław Kapka
eb066da5c2
Capella changes to protobufs ( #11128 )
2022-07-28 16:19:36 +00:00
terencechain
44ae300b04
Use the correct withdrawal ( #11123 )
...
* Use the correct withdrawal
* Move withdrawal to engine.proto
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-28 13:56:30 +00:00
Nishant Das
588021f75b
Penalize Bad Payloads Properly ( #11126 )
...
* penalize peers better
* fix it
* fix test
2022-07-28 21:30:47 +08:00
Preston Van Loon
78c55019e6
Do not print stack traces with log.WithError(err)... ( #11116 )
...
* Add a copy of github.com/x-cray/logrus-prefixed-formatter with fixes for our static analysis
* gazelle and add failing test
* fix it
* fix link
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-27 17:20:54 +00:00
Nishant Das
1601972625
Make Peer Scorer The Default ( #11115 )
...
* make it the default
* deprecate this
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-27 17:01:13 +00:00
Radosław Kapka
e5ab259ee1
Capella changes to protobufs ( #11119 )
...
* manual proto changes
* generated files
* missed comment
2022-07-27 18:39:15 +02:00
Raul Jordan
9e74c3d641
Better Log In Case Contract Code Not Found At Address ( #11118 )
2022-07-27 15:22:16 +00:00
terencechain
59dcea81c2
Clean up push proposer setting method ( #11091 )
...
* Clean up push proposer setting method
* Update validator_test.go
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-26 16:57:23 +00:00
terencechain
9149dc2aae
Run ./hack/update-go-pbs.sh ( #11107 )
2022-07-26 16:45:16 +00:00
Nishant Das
a7c9c76b18
Fix Failures With Prysm Starting Up ( #11103 )
2022-07-26 13:54:49 +00:00
Leo Lara
5a4edf897f
Initialise slasher service using New in slasher test to avoid panics ( #11046 )
...
* Initialise slasher service using New in slasher test to avoid panics
* Handle unhanlded error
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-07-26 12:06:05 +00:00
Nishant Das
2d6b157eea
Disable Fuzz Targets ( #11060 )
...
* add changes
* fix fuzzer again
* is fixed
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-26 16:19:30 +08:00
Denys Yaroshenko
32745b5484
Do not send empty block header to slasher in validation ( #11071 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-25 21:03:48 +00:00
terencechain
bfdaf2ec5a
Add feature flags to testnet default ( #11098 )
2022-07-25 19:22:10 +00:00
Raul Jordan
39c343bcab
Enable Only Saving Blinded Beacon Blocks for Prater ( #11097 )
2022-07-25 17:44:30 +00:00
Potuz
de1ecf2d60
non-canonical IsOptimistic check ( #11088 )
...
When requesting with IsOptimistic for a root which is non-canonical and
historic, we should check if it is canonical before returning false.
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-25 17:05:32 +00:00
Potuz
7aee67af90
Withdrawals: containers and process BLS to ETH1 changes ( #11090 )
...
* add proto for withdrawal containers
* process BLSToExecutionChange
* unit tests
* go fmt
* gaz
* unused error
* Fix import error
* Radek's review
* failed test
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-25 14:10:18 +00:00
terencechain
9830ce43d6
Set invalid roots for bad block ( #10982 )
...
* Set invalid roots for bad block
* Update for fcu
* Update for fcu
* Set bad blocks in subscriber
* Update process_block_test.go
* Rename
2022-07-25 13:45:03 +00:00
Raul Jordan
63a8690140
Use More Granular Metrics for P2P Blocks By Range Latency Histogram ( #11085 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-22 18:08:21 +00:00
james-prysm
7978a0269b
initial commit ( #11084 )
2022-07-22 13:10:19 -04:00
nixorokish
021df67fdc
[README] Add GitPOAP Badge to Display Number of Minted GitPOAPs for Contributors ( #11081 )
...
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-22 15:21:27 +00:00
terencechain
f20e6351f5
Add prater bellatrix fork epoch and ttd ( #11072 )
...
* Add prater bellatrix fork epoch and ttd
* Update workspace with tar and fix tests
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-22 14:16:35 +00:00
Potuz
a2e834a683
Fix optimistic sync status during init sync ( #11074 )
...
Co-authored-by: rkapka <rkapka@wp.pl >
2022-07-21 17:59:51 +02:00
Preston Van Loon
da25624b1d
Validator gRPC: Add deprecated endpoint to prevent breaking change from v2.1.3 ( #11078 )
...
* Add a deprecated gRPC endpoint to prevent breaking changes from prior release
* Fix validator build, tests still fail
* Fix validator tests
* Fix validator tests
* Fix validator tests
* Update mocks and uncomment the endtoend fee recipient check. Also
updates proto generated files.
* Remove unrelated changes
* Remove unrelated changes
* Stop yelling
* Finish renaming
2022-07-20 11:08:13 -05:00
Radosław Kapka
1a5dd879c5
Change Unable to cache headers... log level to warning ( #10956 )
...
* Change `Unable to cache headers...` log level to warning
* better solution
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-07-20 13:56:25 +00:00
james-prysm
65a9ede2d3
Validator-Registration: E2E current release fix and better error handling ( #11075 )
...
* initial commit
* removing generated auth-token
* addressing feedback
* removing mev from message
* removing unneeded limitation
2022-07-20 09:15:20 -04:00
Potuz
4b083c2ca9
Fix IsExecutionEnabled for blinded blocks ( #11076 )
...
* Fix IsExecutionEnabled for blinded blocks
The TransactionsRoot of a blinded block may be non-zero, anyway we do
not insert the header in the state until IsExecutionEnabled is true.
This last check was failing on blinded blocks because it was actively
checking that the root should be zero, when it needn't be.
Superseeds #11068
* fix test
* test case
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-07-19 20:45:45 +00:00
terencechain
82ae4caca8
Add Goerli as an alias to Prater ( #11065 )
...
* Add Goerli as an alias to Parter
* Revert "Add Goerli as an alias to Parter"
This reverts commit 47311ce8b0 .
* Preston's feedback
2022-07-19 20:00:16 +00:00