kasey
1707cf3ec7
http response handling improvements ( #14673 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-11-27 22:13:45 +00:00
Dhruv Bodani
b28b1ed6ce
Add error count prom metric ( #14670 )
...
* add error count prom metric
* address review comments
* add comment for response writer
* update changelog
2024-11-27 11:56:07 +00:00
Sammy Rosso
74bb0821a8
Use slot to determine fork version ( #14653 )
...
* Use slot to determine version
* gaz
* solve cyclic dependency
* Radek' review
* unit test
* gaz
* use require instead of assert
* fix test
* fix test
* fix TestGetAggregateAttestation
* fix ListAttestations test
* James' review
* Radek' review
* add extra checks to GetAttesterSlashingsV2
* fix matchingAtts
* improve tests + fix
* fix
* stop appending all non electra atts
* more tests
* changelog
* revert TestProduceSyncCommitteeContribution changes
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
2024-11-26 22:52:58 +00:00
terence
8025a483e2
Remove kzg proof check for blob reconstructor ( #14671 )
2024-11-26 19:36:42 +00:00
Manu NALEPA
0475631543
Improve connection/disconnection logging. ( #14665 )
...
* Improve disconnection logs.
* Update beacon-chain/p2p/handshake.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Address Sammy's comment.
* Update beacon-chain/p2p/handshake.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Fix Sammy's comment.
* Fix Sammy's comment.
* `MockPeerManager`: Stop mixing value and pointer receivers (deepsource).
* Remove unused parameters (deepsource)
* Fix receiver names (deepsource)
* Change not after into before (deepsource)
* Update beacon-chain/p2p/handshake.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/p2p/peers/status.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2024-11-26 17:53:27 +00:00
Potuz
f27092fa91
Check if validator exists when applying pending deposit ( #14666 )
...
* Check if validator exists when applying pending deposit
* Add test TestProcessPendingDepositsMultiplesSameDeposits
* keep a map of added pubkeys
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2024-11-25 20:31:02 +00:00
Radosław Kapka
67cef41cbf
Better attestation packing for Electra ( #14534 )
...
* Better attestation packing for Electra
* changelog <3
* bzl
* sort before constructing on-chain aggregates
* move ctx to top
* extract Electra logic and add comments
* benchmark
2024-11-25 18:41:51 +00:00
Manu NALEPA
258908d50e
Diverse log improvements, comment additions and small refactors. ( #14658 )
...
* `logProposedBlock`: Fix log.
Before, the value of the pointer to the function were printed for `blockNumber`
instead of the block number itself.
* Add blob prefix before sidecars.
In order to prepare for data columns sidecars.
* Verification: Add log prefix.
* `validate_aggregate_proof.go`: Add comments.
* `blobSubscriber`: Fix error message.
* `registerHandlers`: Rename, add comments and little refactor.
* Remove duplicate `pb` vs. `ethpb` import.
* `rpc_ping.go`: Factorize / Add comments.
* `blobSidecarsByRangeRPCHandler`: Do not write error response if rate limited.
* `sendRecentBeaconBlocksRequest` ==> `sendBeaconBlocksRequest`.
The function itself does not know anything about the age of the beacon block.
* `beaconBlocksByRangeRPCHandler`: Refactor and add logs.
* `retentionSeconds` ==> `retentionDuration`.
* `oneEpoch`: Add documentation.
* `TestProposer_ProposeBlock_OK`: Improve error message.
* `getLocalPayloadFromEngine`: Tiny refactor.
* `eth1DataMajorityVote`: Improve log message.
* Implement `ConvertPeerIDToNodeID`and do note generate random private key if peerDAS is enabled.
* Remove useless `_`.
* `parsePeersEnr`: Fix error mesages.
* `ShouldOverrideFCU`: Fix error message.
* `blocks.go`: Minor comments improvements.
* CI: Upgrade golanci and enable spancheck.
* `ConvertPeerIDToNodeID`: Add godoc comment.
* Update CHANGELOG.md
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/initial-sync/service_test.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/rpc_beacon_blocks_by_range.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/rpc_blob_sidecars_by_range.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/sync/rpc_ping.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Remove trailing whitespace in godoc.
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2024-11-25 09:22:33 +00:00
Manu NALEPA
415a42a4aa
Add proto for DataColumnIdentifier, DataColumnSidecar, DataColumnSidecarsByRangeRequest and MetadataV2. ( #14649 )
...
* Add data column sidecars proto.
* Fix Terence's comment.
* Re-add everything.
2024-11-22 09:50:06 +00:00
kasey
25eae3acda
Fix eventstream electra atts ( #14655 )
...
* fix handler for electra atts
* same fix for attestation_slashing
* changelog
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-11-22 03:04:00 +00:00
Rupam Dey
956d9d108c
Update light-client consensus types ( #14652 )
...
* update diff
* deps
* changelog
* remove `SetNextSyncCommitteeBranchElectra`
2024-11-21 12:28:44 +00:00
Sammy Rosso
c285715f9f
Add missing Eth-Consensus-Version headers ( #14647 )
...
* add missing Eth-Consensus-Version headers
* changelog
* fix header return value
2024-11-20 22:16:33 +00:00
james-prysm
9382ae736d
validator REST: attestation v2 ( #14633 )
...
* wip
* fixing tests
* adding unit tests
* fixing tests
* adding back v1 usage
* changelog
* rolling back test and adding placeholder
* adding electra tests
* adding attestation nil check based on review
* reduce code duplication
* linting
* fixing tests
* based on sammy review
* radek feedback
* adding fall back for pre electra and updated tests
* fixing api calls and associated tests
* gaz
* Update validator/client/beacon-api/propose_attestation.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* review feedback
* add missing fallback
* fixing tests
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-11-20 17:13:57 +00:00
Radosław Kapka
f16ff45a6b
Update light client protobufs ( #14650 )
...
* Update light client protobufs
* changelog <3
2024-11-20 14:47:54 +00:00
kasey
8d6577be84
defer payload attribute computation ( #14644 )
...
* defer payload attribute computation
* fire payload event on skipped slots
* changelog
* fix test and missing version attr
* fix lint
* deepsource
* mv head block lookup for missed slots to streamer
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-11-19 16:49:52 +00:00
james-prysm
a7ba11df37
adding nil checks on attestation interface ( #14638 )
...
* adding nil checks on interface
* changelog
* add linting
* adding missed checks
* review feedback
* attestation bits should not be in nil check
* fixing nil checks
* simplifying function
* fixing some missed items
* more missed items
* fixing more tests
* reverting some changes and fixing more tests
* adding in source check back in
* missed test
* sammy's review
* radek feedback
2024-11-18 17:51:17 +00:00
Stefano
00aeea3656
feat(issue-12348): add validator index label to validator_statuses me… ( #14473 )
...
* feat(issue-12348): add validator index label to validator_statuses metric
* fix: epochDuties added label on emission of metric
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-11-18 16:35:05 +00:00
james-prysm
9dbf979e77
move get data after nil check for attestations ( #14642 )
...
* move getData to after validations
* changelog
2024-11-15 18:28:35 +00:00
james-prysm
be60504512
Validator REST api: adding in check for empty keys changed ( #14637 )
...
* adding in check for empty keys changed
* changelog
* kasey feedback
* fixing unit tests
* 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-11-13 16:09:11 +00:00
james-prysm
1857496159
Electra: unskipping merkle spec tests: ( #14635 )
...
* unskipping spec tests
* changelog
2024-11-12 15:41:44 +00:00
Justin Traglia
ccf61e1700
Rename remaining "deposit receipt" to "deposit request" ( #14629 )
...
* Rename remaining "deposit receipt" to "deposit request"
* Add changelog entry
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-11-08 21:15:43 +00:00
Justin Traglia
4edbd2f9ef
Remove outdated spectest exclusions for EIP-6110 ( #14630 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-11-08 20:41:02 +00:00
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