Potuz
8a22df902f
Check for nil duties on checkDependentRoots ( #15241 )
2025-05-01 19:16:55 +00:00
Potuz
5e3a5b877a
Remove slot from UpdateDuties ( #15223 )
...
* Remove slot from `UpdateDuties`
* Fix slot to epoch conversion
* Add gossip clock disparity
* do not use disparity
* check for nil duties
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-04-29 18:25:09 +00:00
Potuz
3c463d8171
Pass dependent roots in block events ( #15227 )
...
* Pass dependent roots in block events
* Check for empty roots
2025-04-28 00:00:48 +00:00
Potuz
a1c1edf285
Fix deadlines ( #15221 )
...
* Fix deadlines
* use current slot in update duties
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-04-25 19:10:20 +00:00
Potuz
bab898d1d3
Use dependent root to request duties ( #15142 )
...
* Use dependent root to request duties
* Add actual roots to the event stream
* Add feature flag
* fix no go
* fix test
* add test
* log duties changes on reorgs
* send depdendent root on grpc response
* fix wrong return status in tests
* fix tests
* gazelle
* add unil wait for wg
* parse slot twice
* add slot deadline to update duties
* fix conflict
* add dependency
* lint
* Thanks James!
* fix segfault
* fix rpc tests
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2025-04-11 21:22:57 +00:00
Radosław Kapka
ef20c45b1e
Removed Beacon API endpoints which have been deprecated at the Deneb fork ( #15166 )
...
* Removed Beacon API endpoints which have been deprecated at the Deneb fork
* fix linter
2025-04-11 14:33:06 +00:00
Radosław Kapka
e6e03c8ac9
Remove deprecated flags ( #15165 )
...
* Remove deprecated flags
* changelog <3
* unblock Github actions
2025-04-11 13:38:49 +00:00
terence
774b9a7159
Migrate Prysm repo to Offchain Labs organization ahead of Pectra V6 ( #15140 )
...
* Migrate Prysm repo to Offchain Labs organization ahead of Pectra upgrade v6
* Replace prysmaticlabs with OffchainLabs on general markdowns
* Update mock
* Gazelle and add mock.go to excluded generated mock file
2025-04-10 15:40:39 +00:00
terence
e20420aa87
Mainnet config copies by default ( #15159 )
2025-04-10 12:59:55 +00:00
james-prysm
9a79f49514
Remove old web3signer metrics: v6 ( #14920 )
...
* removing repeated fork specific metrics for a universal one
* changelog
2025-04-07 17:02:54 +00:00
james-prysm
ff02661229
fixes health tracker usage ( #15126 )
...
* fixing health interface
* reran mockgen
* breaking out mock into its own file so it's visible elsewhere
* lint
* gaz
2025-04-04 15:27:59 +00:00
james-prysm
4a1c627f6f
migrates some helper functions from beacon API to apiutil ( #15125 )
...
* migration and changelog
* missed valid root
* removing unneeded test, more optimization
* adding strict dependency
* linting
* fixing 1 more test
* bastin's suggestion
2025-04-03 19:48:26 +00:00
james-prysm
2cfc204e9a
removed redundant mock validator and replaced with test util one ( #15111 )
2025-04-02 21:17:20 +00:00
Kaloyan Tanev
785fefa3f1
Do not cache slot committee aggregations for DVs ( #15110 )
...
* Do not cache slot committee for DV agggregations
* Add changelog
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-02 15:54:47 +00:00
kilavvy
c1fc812a38
Fix typos in test code ( #14991 )
...
* Update keymanager_test.go
* Update fork_test.go
* Update README.md
* Update README.md
2025-04-01 18:31:59 +00:00
james-prysm
e3fb4e86ec
validator client initialization cleanup ( #15080 )
...
* cleanup
* fixing optimal sort order for struct
* reverting clictx change based on kasey's feedback
* adding in fix for old trace file flag
* more cleanup for clarity
* optimizing if statement check and fixing wallet open on web enable
* optimizing if statement check and fixing wallet open on web enable
* some more cleanup and bug fix on open wallet
* reverting debug.go changes will handle in a separate PR
* removing useless comment
* changing useWeb to enableAPI
* fixing tests and linting
* manu feedback and one optimization removing auth token check
* gaz
2025-03-28 14:03:42 +00:00
james-prysm
c735ed2e32
Remove use of committee list from validator client ( #15039 )
...
* wip
* fixing unit tests
* changing is aggregator function
* wip
* fully removing the use of committee from validator client, adding a wrapper type for duties
* fixing tests
* fixing linting
* fixing more tests
* changelog
* adding some more tests
* Update proto/prysm/v1alpha1/validator.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* radek's feedback
* removing accidently checked in
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-03-25 16:25:42 +00:00
james-prysm
e08ed0d823
Deprecate broken and unused debug flags in favor of --pprof ( #15083 )
...
* deprecating the trace and cpuprofile flags in favor of pprof
* gaz
* fixing change log title
* added hidden tags
2025-03-24 19:30:32 +00:00
Preston Van Loon
2aa52fb56a
Add static analyzer to discourage use of panic() ( #15075 )
...
* Implement static analysis to prevent panics
* Add nopanic to nogo
* Fix violations and add exclusions
Fix violations and add exclusions for all
* Changelog fragment
* Use pass.Report instead of pass.Reportf
* Remove strings.ToLower for checking init method name
* Add exclusion for herumi init
* Move api/client/beacon template function to init and its own file
* Fix nopanic testcase
2025-03-19 18:04:15 +00:00
james-prysm
08bfaca42d
panic to error changes and changelog ( #15074 )
2025-03-19 14:31:29 +00:00
james-prysm
9d2273c514
Move prysm specific performance endpoint ( #15062 )
...
* adding in check for non prysm node and moving the prysm endpoint to the prysm beacon client
* fixing a bug connecting to a non prysm client and moving the prysm api call to the prysm beacon client
* changelog
* fixing linting
* Update validator/client/metrics.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-03-18 15:02:54 +00:00
james-prysm
c6344e7c3e
fixing electra committee logs ( #14992 )
...
* fixing logs
* fixing tests
* addressing feedback
* fixing tests based on feedback
2025-03-03 15:35:45 +00:00
Preston Van Loon
014dbd5c3a
Lint: Fix violations of non-constant format string in call ( #14974 )
...
* Fix violations of non-constant format string in call
* Changelog fragment
2025-02-21 19:46:19 +00:00
Preston Van Loon
9bceaa59d2
tracing: Add otel tracer transport to all http clients ( #14972 )
...
* Fixed otelhttp client setups.
Note: This may not be the best solution as the http client is defined in many places. There should be a canoncial http client with the proper setup.
* Changelog fragment
* go mod tidy and gazelle
2025-02-21 19:39:53 +00:00
Preston Van Loon
832ebb3f39
Lint: Fix violations of S1009: should omit nil check; len() for nil slices is defined as zero ( #14973 )
...
* Fix violations of S1009: should omit nil check; len() for nil slices is defined as zero
* Changelog fragment
2025-02-21 19:39:33 +00:00
Preston Van Loon
31044206b8
tracing: Replace deprecated jaeger exporter with otelhttp exporter ( #14928 )
...
* Update go.opentelemetry.io/otel to v1.34.0
* Update otel exporter to replace deprecated jaeger exporter
* Changelog
* Use WithEndpointURL
* Clarify potential breaking change
2025-02-15 17:26:57 +00:00
Manu NALEPA
215fbcb2e4
Remove Fulu block and state. ( #14905 )
...
* Remove Fulu block and state.
* Add missing tests.
* Alias `ProtobufBeaconStateFulu` to `ProtobufBeaconStateElectra`
2025-02-14 10:48:24 +00:00
Dhruv Bodani
91cdd318a8
Add process slot span to slotCtx ( #14874 )
...
* attach process slot span to slotCtx
* add changelog
* fix build
* fix build
* Update changelog/dB2510_processslotspan.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-02-05 15:00:27 +00:00
Preston Van Loon
aa445713ac
Remove validator.SignValidatorRegistrationRequest span ( #14864 )
2025-02-03 17:07:49 +00:00
Radosław Kapka
4a63a194b1
Address @jtraglia's comments regarding Electra code ( #14833 )
...
* change field IDs in `AggregateAttestationAndProofElectra`
* fix typo in `validator.proto`
* correct slashing indices length and shashings length
* check length in indexed attestation's `ToConsensus` method
* use `fieldparams.BLSSignatureLength`
* Add length checks for execution request
* fix typo in `beacon_state.proto`
* fix typo in `ssz_proto_library.bzl`
* fix error messages about incorrect types in block factory
* add Electra case to `BeaconBlockContainerToSignedBeaconBlock`
* move PeerDAS config items to PeerDAS section
* remove redundant params
* rename `PendingDepositLimit` to `PendingDepositsLimit`
* improve requests unmarshaling errors
* rename `get_validator_max_effective_balance` to `get_max_effective_balance`
* fix typo in `consolidations.go`
* rename `index` to `validator_index` in `PendingPartialWithdrawal`
* rename `randomByte` to `randomBytes` in `validators.go`
* fix for version in a comment in `validator.go`
* changelog <3
* Revert "rename `index` to `validator_index` in `PendingPartialWithdrawal`"
This reverts commit 87e4da0ea2 .
2025-01-31 15:41:52 +00:00
Radosław Kapka
9cf6b93356
Handle AttesterSlashingElectra everywhere in the codebase ( #14823 )
...
* Handle `AttesterSlashingElectra` everywhere in the codebase
* simplify `TestProcessAttesterSlashings_AppliesCorrectStatus`
2025-01-28 15:06:37 +00:00
Nishant Das
5d6a406829
Update to Go 1.23 ( #14818 )
...
* Update to Go 1.23
* Update bazel version
* Update rules_go
* Use toolchains_protoc
* Update go_honnef_go_tools
* Update golang.org/x/tools
* Fix violations of SA3000
* Update errcheck by re-exporting the upstream repo
* Remove problematic ginkgo and gomega test helpers. Rewrote tests without these test libraries.
* Update go to 1.23.5
* gofmt with go1.23.5
* Revert Patch
* Unclog
* Update for go 1.23 support
* Fix Lint Issues
* Gazelle
* Fix Build
* Fix Lint
* no lint
* Fix lint
* Fix lint
* Disable intrange
* Preston's review
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2025-01-24 04:53:23 +00:00
james-prysm
e263687ea5
Remote Signer: Electra ( #14477 )
...
* updating blockv2 to handle electra blocks
* adding aggregate attesation and proof electra
* gaz
* changelogs
* updating web3signer dependency
* test mock was flipped
* fixing hex value
* accidently checked in dependency changes
* preston feedback
* readding old metrics to not break linting
* review feedback and changelog
* gaz
2025-01-16 17:51:59 +00:00
Radosław Kapka
153d1872ae
Separate type for unaggregated network attestations ( #14659 )
...
* definitions and gossip
* validator
* broadcast
* broadcast the correct att depending on version
* small updates
* don't check bits after Electra
* nitpick
* tests
* changelog <3
* review
* more review
* review yet again
* try a different design
* fix gossip issues
* cleanup
* tests
* reduce cognitive complexity
* Preston's review
* move changelog entry to unreleased section
* fix pending atts pool issues
* reviews
* Potuz's comments
* test fixes
2025-01-13 16:48:20 +00:00
Manu NALEPA
c48d40907c
Add Fulu fork boilerplate ( #14771 )
...
* Prepare for future fork boilerplate.
* Implement the Fulu fork boilerplate.
* `Upgraded state to <fork> log`: Move from debug to info.
Rationale:
This log is the only one notifying the user a new fork happened.
A new fork is always a little bit stressful for a node operator.
Having at least one log indicating the client switched fork is something useful.
* Update testing/util/helpers.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Fix Radek's comment.
* Fix Radek's comment.
* Update beacon-chain/state/state-native/state_trie.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/state_trie.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Fix Radek's comment.
* Fix Radek's comment.
* Fix Radek's comment.
* Remove Electra struct type aliasing.
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-01-07 20:09:12 +00:00
Radosław Kapka
8cff9356f1
Remove duplicate imports ( #14772 )
2025-01-03 11:42:14 +00:00
Preston Van Loon
1f720bdbf4
Fix all typos ( #14769 )
2025-01-03 09:40:13 +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
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
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
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
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
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
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
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
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
james-prysm
6c22edeecc
Replace validator wait for activation stream with polling ( #14514 )
...
* wip, waitForNextEpoch Broken
* fixing wait for activation and timings
* updating tests wip
* fixing tests
* deprecating wait for activation stream
* removing duplicate test
* Update validator/client/wait_for_activation.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 CHANGELOG.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/wait_for_activation.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* moving seconds until next epoch start to slottime and adding unit test
* removing seconds into slot buffer, will need to test
* fixing waittime bug
* adding pr to changelog
* Update validator/client/wait_for_activation.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/wait_for_activation.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* fixing incorect log
* refactoring based on feedback
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-10-10 20:29:56 +00:00
james-prysm
cfbfccb203
Fix: validator status cache does not clear upon key removal ( #14504 )
...
* adding fix and unit test
* Update validator.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* fixing linting
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-10-07 14:35:10 +00:00
james-prysm
98d8b50b0e
deflake pushsettings test - custom pattern matcher ( #14453 )
...
* adding custom matcher
* changelog
* removing unneeded map
* fixing merge conflict
2024-09-20 21:15:47 +00:00