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
Manu NALEPA
00cf1f2507
Implement PeerDAS sync ( #15564 )
...
* PeerDAS: Implement sync
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Satyajit's comment.
* Partially fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Add tests for `sendDataColumnSidecarsRequest`.
* Fix Satyajit's comment.
* Implement `TestSendDataColumnSidecarsRequest`.
* Implement `TestFetchDataColumnSidecarsFromPeers`.
* Implement `TestUpdateResults`.
* Implement `TestSelectPeers`.
* Implement `TestCategorizeIndices`.
* Fix James' comment.
* Fix James's comment.
* Fix James' commit.
* Fix James' comment.
* Fix James' comment.
* Fix flakiness in `TestSelectPeers`.
* Update cmd/beacon-chain/flags/config.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Fix Preston's comment.
* Fix James's comment.
* Implement `TestFetchDataColumnSidecars`.
* Revert "Fix Potuz's comment."
This reverts commit c45230b455 .
* Fix Potuz's comment.
* Revert "Fix James' comment."
This reverts commit a3f919205a .
* Fix James' comment.
* Fix Preston's comment.
* Fix James' comment.
* `selectPeers`: Avoid map with key but empty value.
* Fix typo.
* Fix Potuz's comment.
* Fix Potuz's comment.
* Fix James' comment.
* Add DataColumnStorage and SubscribeAllDataSubnets flag.
* Add extra flags
* Fix Potuz's and Preston's comment.
* Add rate limiter check.
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2025-08-18 14:36:07 +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
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
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
Manu NALEPA
8a439a6f5d
Simplify next Fork boilerplate creation. ( #14761 )
...
* Simplify next Fork boilerplate creation.
* Update beacon-chain/blockchain/execution_engine.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/blockchain/execution_engine.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/blockchain/execution_engine.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/spec_parameters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/spec_parameters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/spec_parameters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/state/state-native/spec_parameters.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Fix Radek's comments.
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-01-03 14:39:08 +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
Khanh Hoa
7a394062e1
refactor: enable errorlint and refactor code ( #14110 )
...
* refactor: enable errorlint and refactor code
* revert
* revert
* add bazel
* gofmt
* gofmt
* gofmt
* gofmt
* gci
* lint
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-07-04 22:40:13 +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
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
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
1c9ded4684
Remove blind field from block type ( #13389 )
...
* Init
* Init
* Fix tests
2023-12-29 21:28:19 +00:00
terencechain
998a493ee2
Fix builder blind block namings ( #12910 )
...
* Fix builder blind block namings
* Fix
* Fix tests
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-09-18 15:32:10 +00:00
terencechain
8e91df9155
Add deneb block to consensus types ( #12368 )
2023-08-31 08:41:57 -05:00
Radosław Kapka
328e6fb074
Move some errors to separate consensus-types package ( #12329 )
...
* move `ErrNilObjectWrapped` to separate package
* build fix
* move not supported
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-25 15:07:24 +00: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
e136e10ebb
Proposer use highest value payload vs header ( #11967 )
2023-02-10 11:36:19 -08: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
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
Roberto Bayardo
8da4d572d9
fix wrapping of nil errors ( #11282 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2022-08-22 16:57:43 +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
Radosław Kapka
fce9e6883d
Native Blocks Ep. 1 - New types and functions ( #10837 )
...
* types and functions
* partially done tests
* refactor
* remaining Proto() tests
* remaining proto.go tests
* simplify UnmarshalSSZ and move BeaconBlockIsNil
* getters_test
* remove errAssertionFailed
* review feedback
* remove cloning protobuf
* fmt
* change IsNil
* fix tests
2022-06-09 13:13:02 +00:00