terence
a08f185170
gloas: add new execution payload bid processing ( #15638 )
...
This PR implements
[process_execution_payload_bid](https://github.com/ethereum/consensus-specs/blob/master/specs/gloas/beacon-chain.md#new-process_execution_payload_bid )
and spec tests
2026-01-15 10:52:19 +00:00
terence
5bbdebee22
Add Gloas consensus type block package ( #15618 )
...
Co-authored-by: Bastin <43618253+Inspector-Butters@users.noreply.github.com >
2025-11-25 09:21:19 +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
Bastin
360e89767f
Canonical LC ( #15585 )
...
* create lc cache to track branches
* save lc stuff
* remove finalized data from LC cache on finalization
* read lc stuff
* edit tests
* changelog
* linter
* address commments
* address commments 2
* address commments 3
* address commments 4
* lint
* address commments 5 x_x
* set beacon lcStore to mimick registrable services
* clean up the error propagation
* pass the state to saveLCBootstrap since it's not saved in db yet
2025-09-16 12:20:07 +00:00
Bastin
d30bb63d94
Add lc p2p broadcaster functions ( #15175 )
...
* add lc boradcasters
* gazelle
* changelog entry
* remove subnet
* implement and use IsNil()
* address comments
* Apply suggestions from code review
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* address comments
* address comments
* deps
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-04-18 12:28:12 +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
Potuz
794a05af26
Remove unused Copy() from the ReadOnlyBeaconBlock interface ( #14811 )
2025-01-19 19:56:14 +00:00
Bastin
e99df5e489
Save LC Bootstrap DB Space Optimization ( #14775 )
...
* add db optimization altair
* add db optimization
* add tests
* fix tests
* fix changelog
* remove debug code
* remove unused code
* fix comment
* remove unused code
2025-01-09 18:00:08 +00:00
Rupam Dey
30a136f1fb
save light client updates (diff) ( #14683 )
...
* update diff
* deps
* add tests for `SaveLightClientUpdate`
* cleanup imports
* lint
* changelog
* fix incorrect arithmetic
* check for lightclient feature flag
* fix tests
* fix `saveLightClientBootstrap` and `saveLightClientUpdate`
* replace and with or
* move feature check to `postBlockProcess`
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-12-04 21:22:43 +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
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
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
Bastin
7fc5c714a1
Light Client consensus types ( #14518 )
...
* protos/SSZ
* interfaces
* types
* cleanup/dedup
* changelog
* use createBranch in headers
* error handling
---------
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
2024-10-08 17:07:56 +00:00
Potuz
ddafedc268
Implement consensus-specs/3875 ( #14458 )
...
* WIP
- beacon-chain builds
* pass blockchain tests
* pass beacon-chain/execution tests
* Passing RPC tests
* fix building
* add changelog
* fix linters
* Spectests
* copy requests on Copy()
* Fix tests
* Fix config test
* fix verification tests
* add aliases for Electra types
* double import and unskip spectests
* Remove unnecessary comment
2024-09-25 17:06:52 +00:00
Preston Van Loon
7898e65d4e
Electra v1.5.0-alpha.3 changes: Move consolidations from beacon block body to the execution payload header. ( #14152 )
2024-06-27 19:28:30 +00:00
james-prysm
3413d05b34
Electra: field renames ( #14091 )
...
* renaming functions and fields based on consensus changes
* execution api rename
* fixing test
* reverting spectests changes, it should be changed with new version
* reverting temporarily
* revert exclusions
2024-06-12 15:16:31 +00:00
kasey
2265af58ae
Unwrap payload bid ( #14035 )
...
* engine GetPayload returns entire response
* deprecate PayloadValueTo(Gwei|Wei)
* return entire bid from builder getter
* get bid value from api bid (not ExecutionData)
* plumb bid and bundle through BuildBlockParallel
* rm ValueInGwei
* removing wei/gwei fields from the payload wrappers
* commentary around the little-endian situation
* finish the job in BuildBlockParallel
* light self-review cleanup
* fix spectest mock
* restore engine timeout
* lint fixes
* de-duplicate imports
* remove errant comment
* James feedback
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-05-22 22:16:32 +00:00
Radosław Kapka
0fbb27d8e3
EIP-7549: Add aggregate attestation interfaces ( #14029 )
...
* interfaces move
* build fix
* remove annoying warning
* more build fixes
* review
2024-05-22 16:14:08 +00:00
kasey
9befb6bd06
g/wei math->primitives, some new helpers ( #14026 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-05-20 15:40:46 +00:00
james-prysm
2fa3694746
Electra: upgrade ( #13933 )
...
* wip fork logic upgrade
* fixing replay and fork.go
* improving process function and adding tests for transition
* updating unit tests and temporarily removing some fields on state_trie.go
* updating state
* wip adding upgrade to electra code
* adding some comments
* adding spec tests
* fixing values used in state transition logic
* updating upgrade test
* gofmt
* avoid dup word linting
* fixing spec tests for fork
* gaz
* fixing tests
* improving unit test with new getters
* fixing bazel for minimal fork test
* adding bazel file
* Update beacon-chain/core/electra/upgrade.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* addressing some comments and adding more tests
* addressing more feedback
* one more feedback
* changing value to interface after talking to preston
* adding missed review feedback
* fixing linting
* noticed I was using the wrong function in the state upgrade
* fixing and ignoring some deepsource issues
* moving core electra validator functions to helper to remove circular dependencies in other PRs
* missed deepsource complaint
* Update upgrade.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/electra_state.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/util/electra_state.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing feedback
* removing deepsoure ignore comments
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-05-08 15:16:31 +00:00
kasey
80bff0dc2d
Fork-specific consensus-types interfaces ( #13948 )
...
* fork-specific interface for electra
* add electra to wrapped payload switch
* use electra body in block factory
* deepsource
* rm pb getters from electra payload
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-05-03 17:12:27 +00:00
kasey
c312a88aa3
Removes fork-specific concrete type getters ( #13941 )
...
* removing typed pb accessors
* refactor ssz api resp handlers to avoid typed pbs
* json get block handler refactor
* SubmitBlindedBlock to use generic json handling
* update SubmitBlindedBlock
* clear out more usages of PbForkname methods
* remove fork-specific getters from block interface
* remove usages of payload pb methods
* remove pb helpers from execution payload interface
* 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 >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Radek review
* fix error message
* deal with wonky builder responses
* ✂️
* gaz
* lint
* tweaks for deep source
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-05-02 20:52:27 +00:00
Radosław Kapka
2c5a2e8ec7
Electra attestation interfaces ( #13937 )
...
* config values
* block protos
* get_committee_indices
* proto and ssz
* attestation interface
* Revert "Auxiliary commit to revert individual files from deadb2183723511721b3288c7168808a4fa97c64"
This reverts commit 32ad5009537bc5ec0e6caf9f52143d380d00be85.
* todos
* get_attesting_indices
* Revert "Auxiliary commit to revert individual files from dd2789723f90b15eb1f874b561d88d11dcc9c0bf"
This reverts commit f39644ed3cb6f3964fc6c86fdf4bd5de2a9668c8.
* beacon spec changes
* Fix pending attestation. Build ok
* Electra: add electra version
* Electra: consensus types
* gocognit exclusion
* @potuz's suggestion
* build fix
* interfaces for indexed att and slashing
* indexed att usage
* BuildSignedBeaconBlockFromExecutionPayload
* slashing usage
* grpc stubs
* remove unused methods
* Electra attestation interfaces
* cleanup
* tests
* make linter happy
* simple casting
* test fixes
* Fix spectest failures
* Regen pb and ssz files
* Handle "not ok" type assertion cases
* Setters that check version should always return an error. SetAttesterSlashings and SetAttestations
* gofmt
* Fix TestMinSpanChunksSlice_CheckSlashable
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2024-04-30 21:29:38 +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
c996109b3a
Return payload value in Wei from /eth/v3/validator/blocks ( #13497 )
...
* Add value in Wei to execution payload
* simplify how payload is returned
* test fix
* fix issues
* review
* fix block handlers
2024-01-24 20:58:35 +00:00
terence
dd15f9e0cc
Rewrite ProposeBlock endpoint ( #13380 )
...
* Init
* Tests
* Init
* Tests
* Radek's feedback
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* More Radek's feedback
* Potuz feedback
* Use inline copy
* Fix conflict
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-12-29 23:32:58 +00:00
terence
1c9ded4684
Remove blind field from block type ( #13389 )
...
* Init
* Init
* Fix tests
2023-12-29 21:28:19 +00:00
Radosław Kapka
49c16f1a71
Return SignedBeaconBlock from ReadOnlySignedBeaconBlock.Copy ( #13386 )
2023-12-28 08:55:45 +00:00
james-prysm
bc107a61e3
builder API: remove blinded blob sidecar ( #13202 )
2023-11-29 06:28:37 -08:00
Potuz
afaeff9d4c
Merkle Proofs of KZG commitments ( #13159 )
...
* Merkle Proofs of KZG commitments
* fix mock
* Implement Merkle proof spectests
* Check Proof construction in spectests
* fix Merkle proof generator
* Add unit test
* add ssz package unit tests
* add benchmark
* fix typo in comment
* ProposerSlashing was repeated
* Terence's review
* move to consensus_blocks
* use existing error
2023-11-06 08:49:35 -03: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
james-prysm
70997e2489
renaming data to blobs in execution payload ( #12664 )
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
8e91df9155
Add deneb block to consensus types ( #12368 )
2023-08-31 08:41:57 -05: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
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
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
terencechain
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08: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
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +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
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
Potuz
4db1a02763
Implement upgrade to capella ( #11642 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-11-09 16:48:23 +01: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
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
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
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
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
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