james-prysm
2c78e501b3
Builder: Electra ( #14344 )
...
* removing skip from test
* builder wip
* removing todo, it's probably ok
* adding more TODOs
* adding fromProtoElectra
* using lightclient
s branch and updating values
* minor fixes
* rolling back dependency changes
* go mod tidy
* adding space back in
* updating builder changes based on execution request changes
* update ssz
* changelog
* updating based on execution request changes
* fixing validation
* adding builder test for electra
* gaz
* attempting to fix test
* fixing ssz
* fixing build and handling develop changes
* gaz
* fixing unfinished function
* fixing test
* fixing important missed regression
* removing unneeded validations
* missed linting
* gofmt
* fixing fulu test
* fixing changelog
* Update bid.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update bid.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update types.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update types.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update james-prysm_builder-electra.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update testing/middleware/builder/builder.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing review feedback and updating e2e
* fixing parsing bid version
* reversing incorrect check
* improving tests and updating more code based on review feedback
* gofmt
* fixing unit tests
* more feedback from terence
* gofmt
* Update api/client/builder/types.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/prysm/v1alpha1/validator/proposer_bellatrix.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update api/client/builder/types.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing nitpicks
* gofmt
* radek feedback
* improves error
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2025-01-23 17:48:19 +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
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
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
Potuz
884b663455
Move back ConvertKzgCommitmentToVersionedHash to primitives package ( #14508 )
...
* Move back ConvertKzgCommitmentToVersionedHash to primitives package
* Changelog
2024-10-07 14:33:23 +00:00
Radosław Kapka
62b8e63a0a
Compare with nil before invoking IsNil() on an interface ( #14431 )
...
* Compare with nil before invoking `IsNil()` on an interface
* changelog
* review
2024-09-06 19:39:33 +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
637cbc88e8
Add missing pieces of Electra ( #14227 )
...
* Add missing pieces of Electra
* update mock
2024-07-16 19:33:40 +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
9b2934f1f6
Electra: BeaconState implementation ( #13919 )
...
* Electra: Beacon State
* Electra: Beacon state fixes from PR 13919
* Add missing tests - part 1
* Split eip_7251_root.go into different files and reuse/share code with historical state summaries root. It's identical!
* Add missing tests - part 2
* deposit receipts start index getters and setters (#13947 )
* adding in getters and setters for deposit receipts start index
* adding tests
* gaz
* Add missing tests - part 3 of 3
Update the electra withdrawal example with a ssz state containing pending partial withdrawals
* add tests for beacon-chain/state/state-native/getters_balance_deposits.go
* Add electra field to testing/util/block.go execution payload
* godoc commentary on public methods
* Fix failing test
* Add balances index out of bounds check and relevant tests.
* Revert switch case electra
* Instead of copying spectest data into testdata, use the spectest dependency
* Deepsource fixes
* Address @rkapka PR feedback
* s/MaxPendingPartialsPerWithdrawalSweep/MaxPendingPartialsPerWithdrawalsSweep/
* Use multivalue slice compatible accessors for validator and balance in ActiveBalanceAtIndex
* More @rkapka feedback. What a great reviewer!
* More tests for branching logic in ExitEpochAndUpdateChurn
* fix build
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-05-06 18:04:33 +00:00
terence
75857e7177
Simplify prune invalid by reusing existing fork choice store call ( #13878 )
2024-04-23 03:09:16 +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
terence
6ddafe1159
Delete invalid blob at block processing ( #13456 )
...
* Delete invalid blob at block processing
* Fix test
2024-01-12 08:09:45 +00:00
terence
283e09569d
Remove old blob types ( #13438 )
...
* Remove old types
* Gen
* Remove old types
* Gen
* Fix lint
* Rm unused key
* Kasey's comment
2024-01-10 09:38:06 +00:00
Potuz
8c1e180dd1
Simplify fcu 2 ( #13400 )
...
* change getPayloadAttribute signature
* Unify different FCU arguments
2024-01-02 22:45:55 +00:00
Potuz
a602acf492
Remove getPayloadAttributes from FCU call ( #13399 )
2024-01-02 17:37:18 +00:00
Potuz
d4cc6fcf4a
update shuffling caches before calling FCU on epoch boundaries ( #13383 )
...
* update shuffling caches before calling FCU on epoch boundaries
* Terence's review
2023-12-28 15:19:09 +00:00
Potuz
b7e0819f00
refactor Payload Id caches ( #12987 )
...
* init
- getLocalPayload does not use the proposer ID from the cache but takes
it from the block
- Fixed tests in blockchain package
- Fixed tests in the RPC package
- Fixed spectests
EpochProposers takes 256 bytes that can be avoided to be copied, but
this optimization is not clear to be worth it.
assginmentStatus can be optimized to use the cached version from the
TrackedValidatorsCache
We shouldn't cache the proposer duties when calling getDuties but when
we update the epoch boundary instead
* track validators on prepare proposers
* more rpc tests
* more rpc tests
* initialize grpc caches
* Add back fcu log
Also fix two existing bugs wrong parent hash on pre Capella and wrong
blockhashes on altair
* use beacon default fee recipient if there is none in the vc
* fix validator test
* radek's review
* push always proposer settings even if no flag is specified in the VC
* Only register with the builder if the VC flag is set
Great find by @terencechain
* add regression test
* Radek's review
* change signature of registration builder
2023-12-22 18:47:51 +00:00
Potuz
dc9d34b41b
fix head slot in log ( #13139 )
2023-10-30 16:56:20 -03:00
Potuz
2ea5bff9c0
Log when sending FCU with payload attributes ( #13137 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 12:30:20 +00:00
Potuz
e231d88ca0
Remove sidecars with invalid proofs ( #13070 )
...
* Remove sidecars with invalid proofs
* unhandled error
* Add missing delete
2023-10-19 12:33:19 -03:00
james-prysm
723f73795f
Deneb: blob sidecar events ( #12928 )
...
* adding in deneb blob event triggers
* fixing linting
* kasey's feedback
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-22 21:54:10 +00:00
terencechain
5179305071
feat: save blobs to db for subscriber ( #12734 )
2023-08-31 08:41:57 -05:00
terencechain
d210a2368f
feat: implement eip4788 ( #12570 )
2023-08-31 08:41:57 -05:00
Potuz
57b8da08d1
Validate blobs feature ( #12574 )
2023-08-31 08:41:57 -05:00
james-prysm
a41c01cb5e
migrating get blob from eip4844 and deneb-integration ( #12603 )
2023-08-31 08:41:57 -05:00
terencechain
ff6b670d95
feat(blockchain): update payload attribute for deneb ( #12509 )
2023-08-31 08:41:57 -05:00
terencechain
5deb1f755b
Deneb: implements engine API end points ( #12384 )
2023-08-31 08:41:57 -05:00
Potuz
e9b5e52ee2
Move consensus and execution validation outside of onBlock ( #12589 )
...
* Move consensus and execution validation outside of onBlock
* reviews
* fix unit test
* revert version change
* fix tests
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-07-05 21:12:21 +08:00
Potuz
5bb482e5d6
Remove forkchoice call from notify new payload ( #12560 )
...
* Remove forkchoice call from notify new payload
* add unit test
2023-06-28 13:38:24 +00:00
Potuz
27aac105d7
disable nil payloadid log on relayers flags ( #12465 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
2023-06-16 17:01:57 +00:00
terencechain
73fea51398
Use next slot cache for payload attribute ( #12286 )
2023-04-25 16:13:24 -07:00
Potuz
300a827027
Use same signature for unrealized justified hash and justified hash ( #12314 )
...
* Use same signature for unrealized justified hash and justified hash
* fix build
2023-04-20 15:59:12 +00:00
Potuz
5fdd4e9148
Add prepare-all-payloads flag ( #12260 )
...
* Add prepare-all-payloads flag
* add unit tests
* do not use the nsc
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-04-13 14:47:13 +00:00
terencechain
17488028a6
Use justified hash as safe block hash when passing attribute ( #12196 )
...
* With attribute, use justified hash as safe block hash
* Use UnrealizedJustifiedPayloadBlockHash
* Cleanups
* Add test to forkchoice
* Block proposal
* Fix mock
* Fix test
* Fix rest of the tests
* Potuz feedback
* Fix test
* Use unrealized justified hash for regular fcu
2023-03-29 23:38:36 +00:00
Potuz
797cc360c7
Isolate forkchoice to blockchain package ( #12174 )
...
* Isolate Forkchoice to blockchain package
* Nishant's feedback
* Terence's feedback
* Nishant saving the day
2023-03-22 09:12:54 +08: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
Potuz
c7f0a94b19
Remove state balance cache ( #11964 )
...
* Remove state balance cache
* remove unused metrics
* add missing balance update
* add comment about locks
* update balance only when updataing the justified checkpoint on unrealization
* update checkpoint balances at launch
* fix unit tests
* fix remaining test
* review
* fix build file
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-02-15 14:19:46 +00:00
terencechain
d4f3257f60
Rename block interfaces ( #11975 )
2023-02-09 10:23:32 +01:00
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
terencechain
cb9b5e8f6e
Use payload attribute type for engine-API ( #11719 )
...
* Add payload attribute type
* Gazelle
* Fix test
* Use new payload attribute type
* Fix test
* Fix test
* Update beacon-chain/execution/engine_client.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Feedbacks
* Fix suggestion
* Update argument, fix test
* Return emptyAttri instead of nil
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2022-12-08 21:39:45 +00:00
terencechain
679e6bc54a
Cont FCU if get payload attribute fails ( #11693 )
...
* Cont FCU if get payload attribute fails
* Fix err position
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
2022-11-28 19:42:32 +00:00
Mark Ridgwell
fdf913aed9
corrected method name in comment ( #11594 )
2022-10-28 12:17:56 -04: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
Potuz
9c2c665e92
Remove optimistic sync candidate check ( #11453 )
...
* Remove optimistic sync candidate check
Since we know we have merged and the chain has advanced 128 slots,
there's no possible forkchoice Poissoning attack anymore, removing the
check and allowing any block to be imported optimistically.
* fix test
* fix test
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-16 16:05: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
terencechain
b98e9019ce
Rename invalid count to invalid children count ( #11411 )
2022-09-06 14:04:32 +00:00
terencechain
c638e114db
Add new metrics ( #11374 )
...
* Better batch block warning
* New metrics
* Revert "Better batch block warning"
This reverts commit e21fcfcebe .
* More metrics
* Add activation and exit queues
* Gaz
2022-08-31 18:05:50 -04: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
terencechain
6dc38ba3a9
Make payload ID key reorg resistant ( #11186 )
...
* Validate cached payload before propose
* Return payload
* Fork resistent key
* Fix tests
* Add comments
* Gaz
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-08-11 14:55:26 +00:00