Preston Van Loon
2fd6bd8150
Add golang.org/x/tools modernize static analyzer and fix violations ( #15946 )
...
* Ran gopls modernize to fix everything
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...
* Override rules_go provided dependency for golang.org/x/tools to v0.38.0.
To update this, checked out rules_go, then ran `bazel run //go/tools/releaser -- upgrade-dep -mirror=false org_golang_x_tools` and copied the patches.
* Fix buildtag violations and ignore buildtag violations in external
* Introduce modernize analyzer package.
* Add modernize "any" analyzer.
* Fix violations of any analyzer
* Add modernize "appendclipped" analyzer.
* Fix violations of appendclipped
* Add modernize "bloop" analyzer.
* Add modernize "fmtappendf" analyzer.
* Add modernize "forvar" analyzer.
* Add modernize "mapsloop" analyzer.
* Add modernize "minmax" analyzer.
* Fix violations of minmax analyzer
* Add modernize "omitzero" analyzer.
* Add modernize "rangeint" analyzer.
* Fix violations of rangeint.
* Add modernize "reflecttypefor" analyzer.
* Fix violations of reflecttypefor analyzer.
* Add modernize "slicescontains" analyzer.
* Add modernize "slicessort" analyzer.
* Add modernize "slicesdelete" analyzer. This is disabled by default for now. See https://go.dev/issue/73686 .
* Add modernize "stringscutprefix" analyzer.
* Add modernize "stringsbuilder" analyzer.
* Fix violations of stringsbuilder analyzer.
* Add modernize "stringsseq" analyzer.
* Add modernize "testingcontext" analyzer.
* Add modernize "waitgroup" analyzer.
* Changelog fragment
* gofmt
* gazelle
* Add modernize "newexpr" analyzer.
* Disable newexpr until go1.26
* Add more details in WORKSPACE on how to update the override
* @nalepae feedback on min()
* gofmt
* Fix violations of forvar
2025-11-14 01:27:22 +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
terence
5f8eb69201
Add proper handling for submit blind block 502 error ( #15848 )
...
* Add proper handling for builder relay 502 BadGateway errors
* James feedback
* Change wording
2025-10-13 18:36:06 +00:00
terence
900f162467
fix: use v2 endpoint for blinded block submission post-Fulu ( #15716 )
2025-09-18 00:27:46 +00:00
terence
9161b80a32
Implement fulu mev-boost change for blinded block submission ( #15486 )
...
* Builder: handle fulu submit blind block return
* Builder: update post-Fulu client to handle 202 Accepted response
* Builder: consolidate HTTP request methods and improve status code validation
2025-08-12 00:49:52 +00:00
Manu NALEPA
09485c2062
Add bundle v2 support for submit blind block ( #15503 )
...
* Add bundle v2 support for submit blind block
* add tests
---------
Co-authored-by: terence tsao <terence@prysmaticlabs.com >
2025-07-17 07:51:28 +00:00
terence
16b567f6af
Add log capitalization analyzer and apply changes ( #15452 )
...
* Add log capitalization analyzer and apply fixes across codebase
Implements a new nogo analyzer to enforce proper log message capitalization and applies the fixes to all affected log statements throughout the beacon chain, validator, and supporting components.
Co-Authored-By: Claude <noreply@anthropic.com >
* Radek's feedback
---------
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-10 13:43:38 +00:00
terence
99cd90f335
Add blob schedule support ( #15272 )
...
* Add blob schedule support
* Feedback
* Fix e2e test
* adding in temporary fix until web3signer is supported for blob schedule in config
* Add fallback
* Uncomment blob schedule from plcae holder fields for test
* Log blob limit increase
* Sort
---------
Co-authored-by: james-prysm <james@prysmaticlabs.com >
2025-05-22 03:19:03 +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
james-prysm
15ae71c0da
Builder ssz ( #14976 )
...
* wip
* refactoring functions for easier readability
* allow ssz for register validator
* changelog
* adding in blinded block submission tests
* adding in tests for header ssz
* fixing linting and tests
* adding in custom errors and fixing ssz validator registration
* Update api/client/builder/client.go
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
* Update api/client/builder/client.go
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
* manu's feedback
* linting
* adding in info log to notify that this setting was turned on
* fixing linting
* manu's feedback
* fixing import
---------
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
2025-03-14 17:23:00 +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
james-prysm
0f86a16915
builder: api calls should have appropriate headers ( #14961 )
...
* adding correct headers when posting for validator registration on builder api
* changelog
2025-02-20 14:27:14 +00:00
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
96b31a9f64
Logging improvement. ( #14735 )
...
* Add a log before filesystem cache warm-up.
* Log `Successfully registered validator(s) on builder` ==> Debug.
2024-12-20 11:14:14 +00:00
kasey
1707cf3ec7
http response handling improvements ( #14673 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-11-27 22:13:45 +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
james-prysm
4c14bd8be2
looking at ways to reduce validator registration calls ( #14371 )
...
* looking at ways to reduce validator registration calls
* small mistake, should be epoch start
* adding more optimizations for reducing registration calls while covering more edgecases
* linting
* adding change log and force full push override
* fixing bug and adding tests
* changing if statement just to be safe
* potuz feedback for easier readability
* more review feedback for simplicity
* more review suggestions from potuz
* fix unit test
* reduce redundancy
* Update CHANGELOG.md
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* small nitpick
* fixing typo
* updating logs
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-09-09 16:30:41 +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
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
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
james-prysm
2de21eb22f
adding headers to post endpoint ( #13753 )
2024-03-15 18:19:42 +00:00
Radosław Kapka
0b261cba5e
Unify log fields ( #13654 )
...
* unify fields
* fix tests
2024-02-22 22:40:36 +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
e3ce1bde45
Move API structs to api module ( #13577 )
2024-02-03 11:57:01 +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
Nishant Das
b45a6664be
Enable Deneb For E2E Scenario Tests ( #13317 )
...
* fix all cases
* update web3signer
* current progress
* fix it finally
* push it back to capella
* remove hard-coded forks
* fix failing tests
* gaz
* fix dumb bug
* fix bad test setup
* change back
2023-12-16 11:37:44 +00:00
Justin Traglia
c56abfb840
Enable usestdlibvars linter and fix findings ( #13339 )
...
Co-authored-by: terence <terence@prysmaticlabs.com >
2023-12-15 19:21:54 +00:00
Radosław Kapka
4c47756aed
HTTP endpoints cleanup ( #13251 )
...
* remove validation package
* structs cleanup
* merge with apimiddleware removal
* more validation and Bls capitalization
* builder test fix
* use strconv for uint->str conversions
* use DecodeHexWithLength
* use exact param names
* rename http package to httputil
* change conversions to fmt.Sprintf
* handle query paramsd and route variables
* spans and receiver name
* split structs, move bytes helper
* missing ok check
* fix reference to indexed failure
* errors fixup
* add godoc to helper
* fix BLS casing and chainhead ref
* review
* fix import in tests
* gzl
2023-12-08 20:37:20 +00:00
james-prysm
bc107a61e3
builder API: remove blinded blob sidecar ( #13202 )
2023-11-29 06:28:37 -08:00
Manu NALEPA
da2212f6cc
Allow validators registration batching on Builder API /eth/v1/builder/validators ( #13178 )
...
* builder `NewClient`: Simplify + fix some typos.
* Validator client: Implement `validator-registration-batch-size` option
* Address Potuz comments
* Address Potuz's comments
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-11-28 00:23:48 +00:00
james-prysm
c8b39e08ef
cleanup on api types ( #12961 )
...
* removing code duplication using shared types
* gaz
* fixing test
* fixing tests
2023-09-27 09:26:32 -05:00
james-prysm
14ce051668
Deneb builder fix ( #12921 )
...
* fixing conversion for deneb
* updating unit test to catch this in the future
* gaz
2023-09-18 20:34:28 +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
james-prysm
8a67f616f0
introducing deneb changes and blobs to builder ( #12477 )
2023-08-31 08:41:57 -05:00
terencechain
be16b64535
Remove SubmitBlindBlock context timeout ( #12453 )
2023-05-24 14:19:23 +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
james-prysm
b0bf402469
version check to blinded block ( #12305 )
2023-04-19 10:55:36 -05: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
Nishant Das
75338dd83d
Fix User Agent In Builder Client ( #12264 )
2023-04-13 03:12:51 +00:00
terencechain
99eebe9bac
Fix capella unblind block with bls field ( #12263 )
2023-04-12 18:47:34 -07: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
29f645f0cc
Add Eth-Consensus-Version header to SubmitBlindedBlock ( #12029 )
...
* Add `Eth-Consensus-Version` header to `SubmitBlindedBlock`
* bring back function
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:42:05 +00:00
Radosław Kapka
15016555f5
Remove SubmitBlindedBlockCapella ( #12030 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-22 17:06:52 +00: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
Radosław Kapka
77d3ccb9ad
Clean up state types ( #11916 )
...
* Clean up state types
* rename package
2023-01-26 14:40:12 +00:00
Radosław Kapka
a296a0c783
Update builder code to Capella ( #11904 )
2023-01-26 14:07:44 +01:00
terencechain
a54bb19c82
Set builder get payload timeout to 3s ( #11413 )
2022-09-28 07:55:44 -07:00
terencechain
3b8a3c2276
Remove unused WithTimeout ( #11420 )
2022-09-13 17:18:30 +02:00
Radosław Kapka
b4d2395a38
Tests for builder service ( #11214 )
...
* Tests for builder service
* fix glob
* minor changes to mock
* add comments to mock
* Revert "Auxiliary commit to revert individual files from bc62a140347e3cbd8bd82e99cf5e9deb98b74df0"
This reverts commit c4c1016cb597b9340d1c81ab3816e037a6b97f9e.
* correct comment
* Do not init builder for empty endpoint
* revert merging issues
* better nil checks
* test fix
Co-authored-by: terencechain <terence@prysmaticlabs.com >
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-09-06 18:29:44 +00:00