terence
f77b78943a
Use explicit slot component timing configs ( #15999 )
...
* Use new timing configs (due BPS)
* Bastin's feedback
2025-11-13 21:55:32 +00:00
Bastin
92bd211e4d
upgrade v6 to v7 ( #15989 )
...
* upgrade v6 to v7
* changelog
* update-go-ssz
2025-11-06 16:16:23 +00:00
Preston Van Loon
499d27b6ae
Use time.Time instead of uint64 for genesis time ( #15419 )
...
* Convert genesis times from seconds to time.Time
* Fixing failed forkchoice tests in a new commit so it doesn't get worse
Fixing failed spectest tests in a new commit so it doesn't get worse
Fixing forkchoice tests, then spectests
* Fixing forkchoice tests, then spectests. Now asking for help...
* Fix TestForkChoice_GetProposerHead
* Fix broken build
* Resolve TODO(preston) items
* Changelog fragment
* Resolve TODO(preston) items again
* Resolve lint issues
* Use consistant field names for sinceSlotStart (no spaces)
* Manu's feedback
* Renamed StartTime -> UnsafeStartTime, marked as deprecated because it doesn't handle overflow scenarios.
Renamed SlotTime -> StartTime
Renamed SlotAt -> At
Handled the error in cases where StartTime was used.
@james-prysm feedback
* Revert beacon-chain/blockchain/receive_block_test.go from 1b7844de
* Fixing issues after rebase
* Accepted suggestions from @potuz
* Remove CanonicalHeadSlot from merge conflicts
---------
Co-authored-by: potuz <potuz@prysmaticlabs.com >
2025-07-14 21:04:50 +00:00
Kaloyan Tanev
56e8881bc1
Rework DV aggregation selection proofs ( #15156 )
...
* Reword DV selection proofs
* Add changelog
* Expect 1 call to DomainData in DV update duties test
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2025-07-14 15:33:26 +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
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
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
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
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
Sammy Rosso
170a864239
Otel migration ( #14424 )
...
* remove opencensus
* gaz
* update dependencies
* add missing dependencies
* fix test?
* Fix note relevance
* add otel http transport middleware
* gaz
* tidy up
* gaz
* changelog
* feedback
* gaz
* fix merge issues
2024-09-12 23:00:20 +00:00
Nishant Das
2f42f7e313
Add a Tracing Wrapper Package ( #14207 )
...
* Adds a wrapper package
* Gazelle
* Add in Empty Span
* Revert It Back
* Add back reference
* Set It As Empty
* fix missing import
* remove redundant alias
* remove unused
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Saolyn <sammy@rosso.red >
2024-08-27 20:00:53 +00:00
Radosław Kapka
365c6252ba
EIP-7549: validator client ( #14158 )
...
* EIP-7549: validator client
* server code
* tests
* build fix
* review
* remove context
* Revert "Auxiliary commit to revert individual files from 16fed79a1ae0bbe4a08cb9819c2785d6e34958dd"
This reverts commit f59e1459f3f7561e0483bc8542110794951585c5.
2024-07-11 18:41:09 +00:00
Radosław Kapka
df3a9f218d
More tracing in the validator client ( #14125 )
...
* More tracing in the validator client
* change context expectation in tests
2024-06-20 16:13:53 +00:00
Radosław Kapka
3ab759e163
One more validator client cleanup ( #14048 )
...
* interface names
* interface method names
* inspection
* regenerate pb and mock
* Revert beacon node changes
* build fix
* review
* more functions
* combine parameters
2024-05-31 15:53:58 +00:00
Radosław Kapka
30cc23c5de
Substantial VC cleanup ( #13593 )
...
* Cleanup part 1
* Cleanup part 2
* Cleanup part 3
* remove lock field init
* doc for SignerConfig
* remove vars
* use full Keymanager word in function
* revert interface rename
* linter
* fix build issues
* review
2024-05-21 16:39:00 +00:00
Radosław Kapka
b692722ddf
Optimize SubmitAggregateSelectionProof VC action ( #13711 )
...
* Optimize `SubscribeCommitteeSubnets` VC action
* test fixes
* remove newline
* Optimize `SubmitAggregateSelectionProof`
* mock
* bzl gzl
* test fixes
2024-03-19 14:09:07 +00:00
terence
5a66807989
Update to V5 ( #13622 )
...
* First take at updating everything to v5
* Patch gRPC gateway to use prysm v5
Fix patch
* Update go ssz
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-02-15 05:46:47 +00:00
Radosław Kapka
91504eb95a
Improve vc logs ( #13573 )
...
* duties
* atts
* revert some changes
* revert timeTillDuty
* Manu's review
* Revert "Auxiliary commit to revert individual files from 6806ca9fbe18101f58ccb40fe191c61c183735a8"
This reverts commit 0820c870d2627950179b0edf7ce62ee4fa4a03a3.
* remove trash
* more reivew
* making Manu happy
* test fixes
2024-02-08 18:24:03 +00:00
Dhruv Bodani
55a29a4670
Implement beacon committee selections ( #13503 )
...
* implement beacon committee selections
* fix build
* fix lint
* fix lint
* Update beacon-chain/rpc/eth/shared/structs.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update validator/client/beacon-api/beacon_committee_selections.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* move beacon committee selection structs to validator module
* fix bazel build files
* add support for POST and GET endpoints for get state validators query
* add a handler to return error from beacon node
* move beacon committee selection to validator top-level module
* fix bazel
* re-arrange fields to fix lint
* fix TestServer_InitializeRoutes
* fix build and lint
* fix build and lint
* fix TestSubmitAggregateAndProof_Distributed
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-02-05 15:43:51 +00:00
Justin Traglia
4a374435c0
Enable errname linter and fix findings ( #13341 )
2023-12-15 03:26:48 +00:00
Radosław Kapka
8387088a52
Handle HTTP 404 Not Found in SubmitAggregateAndProof ( #13320 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-12-12 19:46:19 +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
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
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00: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
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
Raul Jordan
84916672c6
Remove Eth2-Types Dependency in Prysm ( #10578 )
...
* replace eth2 types
* replace protos
* regen proto
* replace
* gaz
* deps
* amend
* regen proto
* mod
* gaz
* gaz
* ensure build
* ssz
* add dep
* no more eth2 types
* no more eth2
* remg
* all builds
* buidl
* tidy
* clean
* fmt
* val serv
* gaz
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-04-29 10:32:11 -04:00
james-prysm
8da8855ad5
Web3Signer: Sign Method Implementation ( #10084 )
...
* breaking up changes from cli pr
* reverting some changes, adding in changes from remote-web3signer
* adding raul's change
* adding fork info to signing calls
* fixing imports
* gaz
* fixing gofmt
* removing unneeded comment
* Update validator/client/aggregate.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* Update validator/client/sync_committee.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing comments
* revert proto changes
* proto changes
* reserve
* reserve
* switching to passing slot from passing fork, using slot to find the fork
* removing unneeded check
* fixing missed unit test
* optional
* optional
* gaz
* improving some definitions with constants
* improving some definitions with constants
* rem opt
* rem
* gaz
* moving mocks to its own folder
* adding in bazel field to fix
* fixing type check error
* fixing build
* fixing strict imports
* fixing dependencies
* changing bazel build
* changing bazel build
* changing bazel build
* removing testing only dependency
* removing dependency on testing util package
* update bazel build
* Update checktags_test.go
* Update active_balance.go
* Update sync_committee_minimal.go
* Update sync_committee_mainnet.go
* Update active_balance_disabled.go
* Update committee.go
* Update committee_disabled.go
* Update sync_committee.pb.gw.go
* Update powchain.pb.gw.go
* Update proposer_indices.go
* Update proposer_indices_disabled.go
* Update sync_committee.go
* Update mainnet.go
* Update p2p_messages.pb.gw.go
* Update finalized_block_root_container.pb.gw.go
* Update beacon_block.pb.gw.go
* Update attestation.pb.gw.go
* Update secret_key_test.go
* Update beacon_state.pb.gw.go
* Update version.pb.gw.go
* Update sync_committee.pb.gw.go
* Update sync_committee_disabled.go
* Update mainnet_test.go
* Update minimal.go
* Update signature_test.go
* Update gocast.go
* Update cgo_symbolizer.go
* Update validator.pb.gw.go
* Update beacon_state.pb.gw.go
* Update signature.go
* Update public_key_test.go
* Update minimal_test.go
* Update checktags_test.go
* Update bls_benchmark_test.go
* Update public_key.go
* Update secret_key.go
* Update aliases.go
* Update init.go
* Update stub.go
* Update journald_linux.go
* Update attestation.pb.gw.go
* Update config_utils_develop.go
* Update stub.go
* Update stub.go
* Update beacon_block.pb.gw.go
* Update validator.pb.gw.go
* Update node.pb.gw.go
* Update config_utils_prod.go
* Update journald.go
* Update beacon_block.pb.gw.go
* Update beacon_chain.pb.gw.go
* Update beacon_state.pb.gw.go
* Update events.pb.gw.go
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
* addressing comments from review
* updating length of comment
* Update validator/keymanager/remote-web3signer/keymanager.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* Update stub.go
revert changes
* Update validator/client/aggregate_test.go
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
* addressing final comments
* fixing gofmt
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
2022-01-18 14:31:58 -06:00
terence tsao
c69bce5d84
Use fieldparams for BLS public key ( #10042 )
...
* Use fieldparams for pubkey length
* Fix validator tests
* fix more tests
* fix mock validator
* Fix typo
* bunch of typos
* Update bytes.go
* Update BUILD.bazel
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-01-06 17:33:08 +00:00
terence tsao
c21e43e4c5
Refactor: move functions beacon-chain/core/time -> time/slots ( #9719 )
...
* Move necessary functions beacon-chain/core/time -> time/slots
* Fix fuzz
* Fix build
* Update slot_epoch.go
2021-10-01 15:17:57 -05:00
terence tsao
8219af46e4
Move slot epoch from core to time pkg ( #9714 )
...
* Move slot epoch from core to time pkg
* Fix fuzz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-30 19:00:14 +00:00
Preston Van Loon
ee0a453b7b
core: refactor signing and domain methods from helper to core/signing pkg ( #9520 )
...
* Move domain function and all signing root functions from beacon-chain/core/helpers to beacon-chain/core
* @terencechain suggestion to put these methods under core/signing
2021-09-27 16:19:20 +00:00
Raul Jordan
f3d6dbcc1e
Move Shared/Params Into Config/Params ( #9642 )
...
* config params into pkg
* gaz
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-21 19:59:25 +00:00
terence tsao
ee5d75732d
Add pkg crypto ( #9603 )
...
* Add pkg crypto
* Update go.yml
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-15 22:55:11 +00:00
terence tsao
3e71997290
Create time Package for Shared/timeutil, mclock and slotutil ( #9594 )
...
* add time pkg
* Go fmt
2021-09-15 00:09:04 +00:00
Raul Jordan
9935ca3733
Move Shared/ Subpackages Into Monitoring/ Folder ( #9591 )
...
* add tracing
* monitoring pkg
* move prom
* Add client stats
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-14 20:59:51 +00:00
Preston Van Loon
4beb352e6f
Move Slot and Epoch functions from helpers to core pkg ( #9519 )
...
* Move Slot and Epoch functions from helpers to core
* limited viz
* goimports
* fix fuzz build
* fix fuzz build
* fix
* fix
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-03 20:10:31 +00:00
Raul Jordan
eac542a8ac
Change Eth2 Repository Names ( #9425 )
...
* eth2 repo name changes
* rem sha
* use consensus spec terminology and pin sha
2021-08-19 13:00:57 -05:00
Raul Jordan
72cfe50eff
Move Validator Accounts Protos Into Proper Place ( #9416 )
...
* move into proper namespace
* package naming
* add strict deps
* regen protos
* add web api
* regen
* builds
* rename
* build
2021-08-18 21:24:01 +00:00
Raul Jordan
9145310647
Eliminate Proto V2 Namespace ( #9297 )
...
* get rid of v2 in prysm codebase
* replace block2
* builds
* terence comments
* gazelle
2021-07-28 21:23:44 +00:00
Raul Jordan
715aa408e3
Move Web Protos Into Prysm V2 ( #9249 )
...
* move web protos
* move web to v2
* update web protos
* gaz
* proto build
* replace mentions of validator v2
* gaz
2021-07-22 19:19:24 +00:00
Raul Jordan
6dadb80cc4
Move v1alpha1 into Prysm API namespace ( #9245 )
2021-07-21 21:34:07 +00:00
terence tsao
3ef0c5d6e5
Fix deepsource: shadow of builtin detected ( #9210 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2021-07-16 20:04:30 +00:00
terence tsao
4d1b5f42af
Better comments for aggregator functions ( #9053 )
...
* Better comments for aggregator functions
* Naming returned value
2021-06-17 17:28:19 +00:00
Raul Jordan
5aac06f04e
Move EthereumAPIs Into Prysm ( #8968 )
...
* begin move
* use same import path
* imports
* regen protos
* regen
* no rename
* generate ssz
* gaz
* fmt
* edit build file
* imports
* modify
* remove generated files
* remove protos
* edit imports in prysm
* beacon chain all builds
* edit script
* add generated pbs
* add replace rules
* license for ethereumapis protos
* change visibility
* fmt
* update build files to gaz ignore
* use proper form
* edit imports
* wrap block
* revert scripts
* revert go mod
2021-06-02 18:49:52 -05:00
pinglamb
5db5ca7056
Use eth2-types SSZUint64 ( #8514 )
2021-02-25 05:51:26 -08:00
Victor Farazdagi
b577869ed6
Fixes import aliases ( #8497 )
...
* Fixes import aliases
* another fix
* reset gw files
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-02-22 23:20:57 +00:00
Victor Farazdagi
a069738c20
ETH2 Types: Slot ( #8408 )
...
* update shared/params
* update eth2-types deps
* update protobufs
* update shared/*
* fix testutil/state
* update beacon-chain/state
* update beacon-chain/db
* update tests
* fix test
* update beacon-chain/core
* update beacon-chain/blockchain
* update beacon-chain/cache
* beacon-chain/forkchoice
* update beacon-chain/operations
* update beacon-chain/p2p
* update beacon-chain/rpc
* update sync/initial-sync
* update deps
* update deps
* go fmt
* update beacon-chain/sync
* update endtoend/
* bazel build //beacon-chain - works w/o issues
* update slasher code
* udpate tools/
* update validator/
* update fastssz
* fix build
* fix test building
* update tests
* update ethereumapis deps
* fix tests
* update state/stategen
* fix build
* fix test
* add FarFutureSlot
* go imports
* Radek's suggestions
* Ivan's suggestions
* type conversions
* Nishant's suggestions
* add more tests to rpc_send_request
* fix test
* clean up
* fix conflicts
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: nisdas <nishdas93@gmail.com >
2021-02-16 07:45:34 +00:00
terence tsao
068f758f49
Code inspect - clean ups ( #8445 )
2021-02-12 17:04:45 -06:00
Ivan Martinez
7c59615ae2
Remove go-ssz entirely from prysm ( #8257 )
...
* Add DepositSigningData
* gaz
* Add to ssz tests
* Rename to DepositMessage
* Remove deprecated comment
* Remove return
* Fixes from review
* Fixes
* Remove some of gossz
* Remove go-ssz entirely
* Remove unneeded file
* Fix runtime with ssztypes
* Add back ssz files
* Fix formatting
* tidy
* Remove go-ssz from static
* tidy again
* Add tests
* Change to sig
* Fix test
* fx
* Fix visiblity
* Revert "Remove unneeded file"
This reverts commit d66fcda929 .
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-01-20 21:03:46 +00:00