james-prysm
5179af1438
validator REST API: block v2 and Electra support ( #14623 )
...
* adding electra to validator client rest for get and post, also migrates to use the v2 endpoints
* changelog
* fixing test
* fixing linting
2024-11-08 18:24:51 +00:00
Sammy Rosso
c0f9689e30
Add POST /eth/v2/beacon/pool/attestations endpoint ( #14621 )
...
* modify v1 and add v2
* test
* changelog
* small fixes
* fix tests
* simplify functions + remove duplication
* Radek' review + group V2 tests
* better errors
* fix tests
2024-11-08 11:33:27 +00:00
Sammy Rosso
ff8240a04f
Add /eth/v2/validator/aggregate_attestation ( #14481 )
...
* add endpoint
* changelog
* fix tests
* fix endpoint
* remove useless broken code
* review + fix endpoint
* gaz
* fix aggregate selection proof test
* fixes
* new way of aggregating
* nit
* fix part of the tests
* fix tests
* cleanup
* fix AggSelectionProof test
* tests
* v1 tests
* v2 tests
* commiittee bits
---------
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-11-07 13:34:18 +00:00
Nishant Das
847498c648
Optimize Message ID Computation ( #14591 )
...
* Cast to String Without Allocating
* Make it its own method
* Changelog
* Gosec
* Add benchmark, fuzz test, and @kasey's implementation.
* Gosec
* Fix benchmark test names
* Kasey's Suggestion
* Radek's Suggestion
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2024-11-07 12:54:58 +00:00
terence
ab3f1963e2
Return early blob constructor if not deneb ( #14605 )
...
* Return early blob constructor if not deneb
* Update CHANGELOG.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Remove test
* Remove space
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-11-06 15:09:20 +00:00
Justin Traglia
b87d02eeb3
Fix various small things in state-native code ( #14604 )
...
* Add nil checks in AppendPending*() functions
* Import errors
* Run goimports
* Move PendingDeposit.Amount to right spot
* Rename DequeuePartialWithdrawals to DequeuePendingPartialWithdrawals
* Remove parans from errNotSupported arg
* In electraField, move LatestExecutionPayloadHeader
* Add changelog entry
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-11-05 16:07:40 +00:00
Cam Sweeney
bcb4155523
prevent panic by returning on connection error ( #14602 )
...
* prevent panic by returning on connection error
* add test
* don't close eventschannel on error
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-11-04 21:10:58 +00:00
Preston Van Loon
77f10b9e0e
Benchmark process slots ( #14616 )
...
* Benchmark process slots
* Update changelog
2024-11-04 16:27:07 +00:00
Nishant Das
928b707ef1
Rollback Block With Context Deadline ( #14608 )
...
* Rollback deadline
* Fix it
* Preston's Suggestion
2024-11-04 15:47:30 +00:00
Nishant Das
91c15247e5
Allow Protobuf State To Be Created Without Copying ( #14613 )
...
* Read raw validator registry
* Changelog
* Radek's Suggestion
* Add Nil Check
2024-11-04 15:09:15 +00:00
Potuz
5ef5b65ffe
Blocks after capella are execution ( #14614 )
...
* Blocks after capella are execution
* fix test
2024-11-04 13:59:41 +00:00
Nishant Das
9ae97786c5
Build Proto State Object Once ( #14612 )
...
* Call it Once
* Changelog
2024-11-04 09:21:34 +00:00
Potuz
66d1bb54f6
Change the signature of ProcessPayload ( #14610 )
2024-11-03 14:37:52 +00:00
Potuz
4d98049054
Use ROBlock earlier in the pipeline ( #14609 )
2024-11-03 11:04:12 +00:00
Justin Traglia
d5ff25b59d
Fix order & add slashed=false to new validator instances ( #14595 )
...
* Fix order & add slashed=false to new validator instances
* Add a line to the changelog
* Update godocs
2024-11-02 15:35:40 +00:00
james-prysm
f2ade3caff
Remove validator count log ( #14600 )
...
* remove validator count API call and update logs
* fixing test
* changelog
* removing unused function
* gaz
* casing
* fixing more tests
2024-11-01 16:58:29 +00:00
james-prysm
e6ffc0701e
Electra: exclude empty requests in requests list ( #14580 )
...
* implementing new decisions around exectuion requests
* fixing test fixture
* adding in more edge case checks and tests
* changelog
* fixing unsafe type cast
* Update beacon-chain/execution/engine_client_test.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra_test.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update proto/engine/v1/electra_test.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* updating based on preston's feedback and adding more tests for edge cases
* adding more edgecases, and unit tests
* fixing tests
* missed some export changes
* adding more tests
* Update proto/engine/v1/electra.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* reducing complexity of function based on feedback
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2024-10-31 19:12:23 +00:00
james-prysm
61c296e075
eip7251: Bugfix and more withdrawal tests ( #14578 )
...
* addressing bug with withdrawals for devnet 5
* changelog
* fixing if statement check
* adding test
* terence's review comments
* attempting to fix weird comment formatting
* moving back more comments
* Update CHANGELOG.md
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2024-10-31 17:02:22 +00:00
Sammy Rosso
f264680739
Simplify ExitedValidatorIndices ( #14587 )
...
* fix
* add to comment
* modify test
* remove unused parameter
* changelog
* exclude ejected from exited
* fix linter
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-10-31 14:49:25 +00:00
Sammy Rosso
8fe024f6a1
Simplify EjectedValidatorIndices ( #14588 )
...
* fix
* fix test
* add to comment
* changelog
2024-10-31 11:22:40 +00:00
Nishant Das
6b7dd833a3
Use Read Only Head State When Computing Active Indices ( #14592 )
...
* Use Read Only Head State
* Use Read Only Head State
2024-10-31 06:48:56 +00:00
james-prysm
060527032b
small improvements to logs ( #14405 )
...
* removing redundant log, and poorly worded log
* move log printing message
* changelog
* reverting a log change
2024-10-29 20:42:24 +00:00
Preston Van Loon
a29ecb6bbe
Update beacon-chain pgo profile ( #14589 )
...
* Update pprof image with a recent one
* Update CHANGELOG.md
2024-10-29 15:18:56 +00:00
james-prysm
54656e172f
keymanager API: bug fixes and inconsistencies ( #14586 )
...
* fixing error handling and returning empty requests with the wrong wallet type
* changelog
* adding some unit tests
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update CHANGELOG.md
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/handlers_keymanager.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/intercepter.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/intercepter_test.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update validator/rpc/intercepter_test.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* lint
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2024-10-29 14:37:14 +00:00
kasey
97c8adb003
fix --backfill-oldest-slot flag handling ( #14584 )
...
* fix --backfill-oldest-slot flag handling
* changelog
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-10-28 15:58:30 +00:00
Nishant Das
2fe8614115
Rollback Block During Processing ( #14554 )
...
* Change it to rollback
* Spacing
* Reverse order of rollback
* Add Rollback Test
* Potuz's Test Suggestion
* Potuz's Suggestion
2024-10-28 14:06:20 +00:00
Sammy Rosso
09accc7132
Add GET /eth/v2/beacon/pool/attestations endpoint ( #14560 )
...
* add ListAttestationsV2 endpoint
* fix endpoint
* changelog
* add endpoint to tests
* add trailing comma
* add version header + lint fix
* all reviews
* modify v1 and comments
* fix linter
* Radek' review
2024-10-28 10:59:27 +00:00
terence
53f1f11c6d
Fix length check between kzg commitments and exist ( #14581 )
2024-10-25 17:59:57 +00:00
Sammy Rosso
48fe9d9c4d
Add missing version headers ( #14566 )
...
* add version headers
* use headstate and add unit test
* changelog
2024-10-25 16:01:55 +00:00
Preston Van Loon
4386c244e1
Docker fix: Update bazel-lib to latest version ( #14579 )
...
* Update bazel-lib
* Update rules_oci
* Compress pkg_tar
* Add a note about 401 download for distroless/cc-debian11
* Update CHANGELOG.md
* Re-upload distroless/cc-debian11 to prysmaticlabs/distroless/cc-debian11 such that the image is public.
Ran the following command:
gcrane cp 'gcr.io/distroless/cc-debian11@sha256:b82f113425c5b5c714151aaacd8039bc141821cdcd3c65202d42bdf9c43ae60b' gcr.io/prysmaticlabs/distroless/cc-debian11:latest
* Back out "Update rules_oci"
This backs out commit 64200fb25e .
2024-10-25 02:30:21 +00:00
terence
7ac522d8ff
Use engine api get-blobs for block subscriber ( #14513 )
...
* Use engine api get-blobs for block subscriber
Debug
changelog
add proto marshal and unmarshal
Kasey's feedback
* Feedback
* Preston's feedback
* Exist argument should not be hardcoded with kzg count
2024-10-24 21:30:14 +00:00
kasey
52cf3a155d
Safe StreamEvents write loop ( #14557 )
...
* new type for tests where errors are only logged
* StreamHandler waits for write loop exit
* add test case for writer timeout
* add changelog
* add missing file
* logging fix
* fix logging test to allow info logs
* naming/comments; make response controller private
* simplify cancel defers
* fix typo in test file name
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-10-24 19:16:17 +00:00
Potuz
83ed320826
Use ROBlock in block processing pipeline ( #14571 )
...
* Use ROBlock in block processing pipeline
* Pass blockchain tests
* passing forkchoice tests
* pass rpc test
* change changelog
2024-10-24 13:27:15 +00:00
Preston Van Loon
616cdc1e8b
Update CHANGELOG.md to reflect v5.1.2 hotfix release ( #14547 )
2024-10-22 15:28:38 +00:00
Radosław Kapka
361712e886
Update the monitor package to Electra ( #14562 )
...
* Update the monitor package to Electra
* changelog <3
2024-10-22 03:09:18 +00:00
terence
9ec8c6c4b5
Use read only validator for processing ( #14558 )
2024-10-21 20:49:18 +00:00
Potuz
073cf19b69
Rollback on errors from forkchoice insertion ( #14556 )
2024-10-18 16:49:55 +00:00
Potuz
6ac8090599
rollback on SaveState error ( #14555 )
...
* rollback on SaveState error
* add test
2024-10-18 15:51:58 +00:00
Sammy Rosso
4aa54107e4
Add /eth/v2/validator/aggregate_and_proofs ( #14490 )
...
* fix endpoint
* changelog + gaz
* add to endpoints test
* Radek' review
* James' review
* fix duplication a bit
* fix changelog
2024-10-18 09:05:57 +00:00
terence
ffc443b5f2
Update correlation penalty for EIP-7251 ( #14456 )
...
* Update correlation penalty for EIP-7251
* Potuz and James feedback
2024-10-16 22:02:52 +00:00
james-prysm
d6c5692dc0
Execution API Electra: requests as a sidecar ( #14492 )
...
* wip
* gaz
* rename field
* sammy review
* updating execution api request and reverting response back
* fixing linting
* changelog
* changelog
* adding in serialization of requests
* code cleanup
* adding some happy path tests and fixing mock
* mock still broken
* fixing linting
* updating name on proto
* missed naming
* placeholder fix for TestClient_HTTP
* removing duplicate change log
* adding in test for get payloadv4 as well as some tests
* added tests for execution client testing, fixed encode type
* adding comment for placeholder test
* fixing test and addressing feedback
* feedback
* flipping the test names, was used in reverse
* feedback from kasey
* reverting switch back to if statements to fix bug
* lint
2024-10-16 20:42:29 +00:00
kasey
1086bdf2b3
recover from panics when writing the event stream ( #14545 )
...
* recover from panics when writing the event stream
* changelog
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-10-16 18:14:20 +00:00
Sammy Rosso
2afa63b442
Add GET /eth/v2/beacon/pool/attester_slashings ( #14479 )
...
* add endpoint
* changelog
* correct resp with both attestationSlashings types
* fix and comment
* fix test
* fix version check
* review + fixes
* fix
* James' review
* Review items
* Radek' review
* Radek' review
2024-10-16 09:23:23 +00:00
james-prysm
5a5193c59d
Execution API Electra: removing bodies v2 logic ( #14538 )
...
* removing bodies v2 logic
* changelog
* fixing unit test
2024-10-15 22:16:43 +00:00
Preston Van Loon
30fcf5366a
Update CHANGELOG.md for v5.1.1 ( #14541 )
2024-10-15 20:53:47 +00:00
james-prysm
f776b968ad
Remove finalized validator index to pubkey cache ( #14497 )
...
* remove the cache
* linting
* changelog
* fixing unit tests
2024-10-15 16:41:58 +00:00
Jorrian
de094b0078
Update default scrape-interval to 2 minutes for Beaconcha.in API rate limit ( #14537 )
...
* Update default scrape-interval to 2 minutes for Beaconcha.in API rate limit
* Update changelog for scrape-interval change
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-10-15 16:14:45 +00:00
terence
0a4ed8279b
Switch to compounding when consolidating with source==target ( #14511 )
...
* Switch to compounding when consolidating with source==target
* Feedback
2024-10-15 15:11:57 +00:00
Sammy Rosso
f307a369a5
Add POST /eth/v2/beacon/pool/attester_slashings ( #14480 )
...
* add endpoint
* changelog
* add required version header
* fix return values
* broken test
* fix test
* linter
* Fix
* Proto update
* fix test
* fix test
* Radek' review
* remove duplicate tests
2024-10-15 12:27:22 +00:00
Rupam Dey
dc91c963b9
feat: (light client)add new consensus types for Electra ( #14527 )
...
* add `LightClientBootstrapElectra` to proto
* add `LightClientUpdateElectra` to proto
* implement `bootstrapElectra`
* add ssz support for `LightClientBootstrapElectra`
* remove unused type
* update `CHANGELOG.md`
* implement `updateElectra`
* refactor: remove `CurrentSyncCommitteeBranchElectra()` from `LightClientBootstrap`
* remove `NewWrappedHeaderElectra`
* Update consensus-types/light-client/bootstrap.go
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
* Update consensus-types/light-client/update.go
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
* add `CurrentSyncCommitteeBranchElectra()` to `LightClientBootstrap`
* add `NextSyncCommitteeBranchElectra()` to `LightClientUpdate`
* revert changes to unrelated pb/ssz files
* Revert "revert changes to unrelated pb/ssz files"
This reverts commit 5ceaaf5ba6 .
* more refactors
* even more refactors
---------
Co-authored-by: Radosław Kapka <radoslaw.kapka@gmail.com >
2024-10-15 10:53:16 +00:00