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
Preston Van Loon
62fec4d1f3
Replace context.Background with testing.TB.Context where possible ( #15416 )
...
* Replace context.Background with testing.TB.Context where possible
* Fix failing tests
2025-06-16 22:09:18 +00:00
kasey
d12da8cbe0
remove usages of params from proto packages ( #15403 )
...
* remove usages of params from proto packages
* make it harder to mess up the order of request limit args
* remove errant edit (Terence review)
* fix missed updates after sig change
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2025-06-11 21:15:10 +00:00
james-prysm
0d5a52d20d
merge builder and structs payload types ( #15283 )
...
* wip
* more wip
* commenting out builder redefinition of payload types
* removing unneeded commented out code and unused type conversions
* fixing unit tests and removing irrelevant unit tests
* gaz
* adding changelog
* Update api/server/structs/conversions_block_execution.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Update api/server/structs/conversions_block_execution.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Revert some changes to test files, change the minimum to support the new type changes
* Remove commented block
* fixing import
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2025-05-27 20:34:24 +00:00
hardlydearly
3dfd3d0416
refactor: replace context.WithCancel with t.Context in tests ( #15233 )
...
Signed-off-by: hardlydearly <799511800@qq.com >
2025-05-21 17:11:02 +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
4e41d5c610
fixing e2e builder gas limit ( #15025 )
...
* fixing e2e
* linting
2025-03-07 19:00:16 +00:00
terence
4d5dddd302
Add request hash to header for builder: executable data to block ( #14955 )
...
* Add request hash to header for builder: executable data to block
* go fmt
2025-02-19 05:18:18 +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
james-prysm
e36564c4d3
goethereum dependency to v1.14~ ( #14351 )
...
* updating the goethereum dependency
* fixing dependencies
* reverting workspace
* more fixes, work in progress
* trying with upgraded geth version
* fixing deprecated functions except for the time related ones on eth1 distance due to time issues
* fixing time issues
* gaz
* fixing test and upgrading some dependencies and reverting others
* Disable cgo in hid, delete old vendored usb library
* changelog
* rolling back dependencies
* fixing go mod tidy
* Geth v1.13.6
* fix tests
* Add ping interval, set to 500ms for tests. This didnt work
* Update to v1.14.8
* Spread it out to different bootnodes
* Fix it
* Remove Memsize
* Update all out of date dependencies
* Fix geth body change
* Fix Test
* Fix Build
* Fix Tests
* Fix Tests Again
* Fix Tests Again
* Fix Tests
* Fix Test
* Copy USB Package for HID
* Push it up
* Finally fix all tests with felix's changes
* updating geth dependency
* Update go-ethereum to v1.14.11
* fixing import
* reverting blob change
* fixing Implicit memory aliasing in for loop.
* WIP changes
* wip getting a little further on e2e runs
* getting a little further
* getting a little further
* setting everything to capella
* more partial fixes
* more fixes but still WIP
* fixing access list transactions"
* some cleanup
* making configs dynamic
* reverting time
* skip lower bound in builder
* updating to geth v1.14.12
* fixing verify blob to pointer
* go mod tidy
* fixing linting
* missed removing another terminal difficulty item
* another missed update
* updating more dependencies to fix cicd
* fixing holiman dependency update
* downgrading geth to 1.14.11 due to p2p loop issue
* reverting builder middleware caused by downgrade
* fixing more rollback issues
* upgrading back to 1.14.12 after discussing with preston
* mod tidy
* gofmt
* partial review feedback
* trying to start e2e from bellatrix instead
* reverting some changes
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
Co-authored-by: nisdas <nishdas93@gmail.com >
2025-01-14 08:35:49 +00:00
Charlton Liv
a7c3004115
Go deps upgrade, from ioutil to io ( #14737 )
...
* ioutil to io
* Update CHANGELOG.md
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-12-20 09:31:00 +00:00
james-prysm
875e3e5e7d
E2E: fixing builder route registration after gorilla mux removal ( #14445 )
...
* fixing builder route registration afte gorilla mux removal
* changelog
2024-09-11 23:15:08 +00:00
Md Amaan
a5317f8117
Replaced mux with http.Servemux ( #14416 )
...
* Replaced mux with http.Servmux
* updated change log
* james suggestions
* lint
* lint fix 2
* passed middlewares from validatorclient
* gazelle fix
* fixed issue
* added middlewares field to rpc config
* suggestions applied
* updated godoc
* fixed TestCors
* refactor
* godoc added
* cli code removed and lint fixed
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-09-11 19:39:05 +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
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
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
88685bb3bd
Fix Up Builder Evaluator ( #13395 )
...
* fix it up
* fix evaluator
* fix evaluator again
* fix it
* gaz
2024-01-02 10:40:26 +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
Brandon Liu
c78d698d89
Add --jwt-id flag ( #13218 )
...
* add jwt-id flag
* optimize unit test for jwt-id
* Add jwt-id to help text
* gofmt
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2023-12-05 19:02:25 +00:00
james-prysm
10a89fef13
DEPRECTATION: Remove exchange transition configuration call ( #13127 )
...
* wip removing call to execution client for transition configuration
* updating bazel and execution engine proto
* removing more spots where the call was added
* removing unused metric
2023-10-27 15:43:00 +00:00
terencechain
76fec1799e
Replace Empty Slice Literals with Nil Slices ( #13093 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-23 16:36:11 +00:00
terencechain
823f8ee3a2
Fix redundant type converstion ( #13076 )
...
* Fix redundant type converstion
* Revert generated changes
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 15:07:10 +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
Roberto Bayardo
a46370f5bf
clean up code around setting geth client headers ( #11748 )
2023-09-26 15:15:28 +00:00
terencechain
a22ca3fecb
Update geth to v1.13.1 ( #12911 )
...
* Update geth
* Fix builder
* Update geth to v1.13.1.
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-18 21:12:07 +00:00
james-prysm
8a67f616f0
introducing deneb changes and blobs to builder ( #12477 )
2023-08-31 08:41:57 -05:00
Preston Van Loon
aeb7a45864
Update geth to 1.12.1 ( #12718 )
...
* Update geth to 1.12.1
* Fix //cmd/validator/flags:go_default_test
* fix //beacon-chain/node:go_default_test
---------
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-08-11 10:45:42 +00:00
Nishant Das
aef22bf54e
Add In Support For Builder in E2E ( #12343 )
...
* fix it up
* add gaz
* add changes in
* finally runs
* fix it
* add progress
* add capella support
* save progress
* remove debug logs
* cleanup
* remove log
* fix flag
* remove unused lock
* gaz
* change
* fix
* lint
* james review
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2023-05-11 11:10:29 -05: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
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
7f56ac6355
Massive code cleanup ( #10913 )
...
* Massive code cleanup
* fix test issues
* remove GetGenesis mock expectations
* unused receiver
* rename unused params
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-27 13:34:38 +00:00
terencechain
4c4fb9f2c0
Fix gosec scan: G112 (CWE-400) Potential Slowloris Attack ( #10872 )
2022-06-13 22:29:26 +00:00
Nishant Das
7f443e8387
Add Optimistic Sync Scenario Testing ( #10836 )
...
* add latest changes
* fix it
* add multiclient support
* fix tests
* Apply suggestions from code review
* fix test
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-09 23:24:53 +00:00
Nishant Das
6c39301f33
Integrate Engine Proxy into E2E ( #10808 )
...
* add it in
* support jwt secret
* fix it
* fix
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2022-06-06 23:35:54 +00:00
Raul Jordan
2e056b38da
Engine API Proxy Utility for Merge Testing ( #10533 )
...
* execution client package renaming
* define interceptors and options
* further clean
* further dedup
* further simplify
* rev
* rem
* more modifications
* further clean
* defines tests
* pass first test
* proper tests
* all tests in
* gaz
* lint
* wait start
* assign on ports
* gaz
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2022-04-25 05:03:05 +00:00