james-prysm
9d6a2f5390
Remove electra duplicate helpers ( #14138 )
...
* removing duplicate helper functions to reduce 6110 size
* linting
2024-06-24 21:22:46 +00:00
Preston Van Loon
490ddbf782
Enable golang.org/x/tools/go/analysis/errorsas static analysis check ( #14135 )
2024-06-24 17:20:45 +00:00
Radosław Kapka
adc875b20d
EIP-7549: p2p and sync ( #14085 )
...
* EIP-7549: p2p and sync
* small cleanup
* fuzz fix
* deepsource
* review
* fix ineffectual assignment
* fix pubsub
* update ComputeSubnetForAttestation
* review
* review
2024-06-24 13:57:11 +00:00
kasey
8cd249c1c8
update codegen dep and cleanup organization ( #14127 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-06-20 23:33:54 +00:00
Preston Van Loon
305d5850e7
ssz: Move stateutil.SliceRoot to ssz package ( #14123 )
2024-06-20 20:55:15 +00:00
Radosław Kapka
df3a9f218d
More tracing in the validator client ( #14125 )
...
* More tracing in the validator client
* change context expectation in tests
2024-06-20 16:13:53 +00:00
Preston Van Loon
ae451a3a02
Update github.com/prysmaticlabs/go-bitfield ( #14120 )
2024-06-18 14:33:06 +00:00
Radosław Kapka
17561a6576
Do not fail production when consensus block value is unavailable ( #14111 )
...
* Do not fail production when consensus block value is unavailable
* add log
* use empty string instead of 0
* build fix
2024-06-14 18:30:40 +00:00
james-prysm
b842b7ea01
proposer settings log ux ( #14106 )
...
* adding some logs to improve debugging
* fixing log functions
* Update config/proposer/loader/loader.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing feedback
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-06-14 14:16:43 +00:00
sam (jgscripts)
9bbe12e28c
Correcting spelling errors ( #14107 )
...
* fix small spelling error
* fix small grammar error
* fix small spelling errors
---------
Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com >
2024-06-14 13:41:33 +00:00
Delweng
0674cf64cc
chore: make deepsource happy ( #14081 )
...
* chore(pruner): return error directly
Signed-off-by: jsvisa <delweng@gmail.com >
* chore(rpc): unused method receiver
Signed-off-by: jsvisa <delweng@gmail.com >
* fix(rpc): use net.JoinHostPort instead of fmt.Sprintf
Signed-off-by: jsvisa <delweng@gmail.com >
* chore(amiddleware):use http.NoBody instead of nil
Signed-off-by: jsvisa <delweng@gmail.com >
* chore(rpc): rm notused params
Signed-off-by: jsvisa <delweng@gmail.com >
* chore(p2p): comment
Signed-off-by: jsvisa <delweng@gmail.com >
* feat(db/prune): reduce complexity
Signed-off-by: jsvisa <delweng@gmail.com >
* chore(db/pruner): name
Signed-off-by: jsvisa <delweng@gmail.com >
* Revert "chore(pruner): return error directly"
This reverts commit d76e745f60 .
Signed-off-by: jsvisa <delweng@gmail.com >
* revert back pruner.go
Signed-off-by: jsvisa <delweng@gmail.com >
---------
Signed-off-by: jsvisa <delweng@gmail.com >
2024-06-13 16:12:04 +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
Patrice Vignola
070a765d24
Add stub for VerifySignature when build tag blst_disabled is set ( #12246 )
...
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-06-12 12:46:23 +00:00
Preston Van Loon
8ac1647436
Delete unused config ( #14016 )
2024-06-11 15:51:17 +00:00
james-prysm
dfe31c9242
adding in softer check for content type ( #14097 )
2024-06-10 17:15:23 +00:00
Radosław Kapka
b7866be3a9
EIP 7549 spectests ( #14027 )
...
* EIP 7549 spectests
* merge fix
2024-06-10 16:33:43 +00:00
Radosław Kapka
8413660d5f
Keep only the latest value in the health channel ( #14087 )
...
* Increase health tracker channel buffer size
* keep only the latest value
* Make health test blocking as a regression test for PR #14807
* Fix new race conditions in the MockHealthClient
---------
Co-authored-by: Preston Van Loon <preston@pvl.dev >
2024-06-06 18:45:35 +00:00
Radosław Kapka
e037491756
Deprectate EnableDebugRPCEndpoints flag ( #14015 )
...
* Deprectate `EnableDebugRPCEndpoints` flag
* test fix
* add flag to deprecated list
* disable by default
* test fixes
2024-06-05 12:04:21 +00:00
kasey
ea2624b5ab
always close cache warm chan to prevent blocking ( #14080 )
...
* always close cache warm chan to prevent blocking
* test that waitForCache does not block
* combine defers to reduce cognitive overhead
* lint
---------
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-06-04 22:08:06 +00:00
james-prysm
1b40f941cf
middleware for content type and accept headers ( #14075 )
...
* middleware for content type
* adding accept middleware too and tests
* Update beacon-chain/rpc/endpoints.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/endpoints.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/endpoints.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Update beacon-chain/rpc/endpoints.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* including radek's review
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-06-04 20:38:21 +00:00
terence
57830435d7
Process epoch error to use correct state version ( #14069 )
...
* Process epoch error to use correct state version
* Fix return instead
2024-06-03 19:54:28 +00:00
Nishant Das
44d850de51
Change It To Debug ( #14072 )
2024-06-03 10:50:00 +00:00
Radosław Kapka
b08e691127
Organize validator flags ( #14028 )
...
* Organize validator flags
* whitespace
* fix comment in test
* remove unneeded flags
2024-05-31 18:36:18 +00:00
Radosław Kapka
968e82b02d
EIP-7549 gRPC (part 1) ( #14055 )
...
* interfaces move
* build fix
* remove annoying warning
* more build fixes
* review
* core code
* tests part 1
* tests part 2
* TranslateParticipation doesn't need Electra
* remove unused function
* pending atts don't need Electra
* tests part 3
* build fixes
* review
* EIP-7549 gRPC part 1
2024-05-31 17:24:06 +00:00
james-prysm
de04ce8329
EIP-7002:Execution layer triggerable withdrawals ( #14031 )
...
* wip fixing 7002 branch
* fixing tests and functions
* fixing linting
* temp fix for transition
* adding unit tests for method
* fixing linting
* partial review from terence
* Update withdrawals.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update withdrawals.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update withdrawals.go
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
* Update beacon-chain/core/electra/withdrawals.go
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* addressing feedback
---------
Co-authored-by: Sammy Rosso <15244892+saolyn@users.noreply.github.com >
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-05-31 16:55:49 +00:00
terence
5efecff631
Fix mockgen sh ( #14068 )
...
* Fix mockgen sh
* Radek's suggestion
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Generate prysm chain client
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-05-31 16:24:17 +00:00
Radosław Kapka
3ab759e163
One more validator client cleanup ( #14048 )
...
* interface names
* interface method names
* inspection
* regenerate pb and mock
* Revert beacon node changes
* build fix
* review
* more functions
* combine parameters
2024-05-31 15:53:58 +00:00
james-prysm
836d369c6c
api fix for panic on unsynced unfound block ( #14063 )
...
* api fix for panic
* adding test
* fixing how we handle the error
2024-05-31 14:46:38 +00:00
Nishant Das
568273453b
Update Libp2p Dependencies ( #14060 )
...
* Update to v0.35.0 and v0.11.0
* Update Protobuf
* Update bazel deps
2024-05-30 08:56:55 +00:00
Nishant Das
7a4ecb6060
Restrict Dials From Discovery ( #14052 )
...
* Fix Excessive Subnet Dials
* Handle backoff in Iterator
* Slow Down Lookups
* Add Flag To Configure Dials
* Preston's Review
* Update cmd/beacon-chain/flags/base.go
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* Reduce polling period
* Manu's Review
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-05-30 06:57:26 +00:00
terence
82f0ea5b11
Fix dependent root retrival for first epoch ( #14059 )
2024-05-30 04:15:00 +00:00
Sammy Rosso
6fddd13cb2
Multiple BN HTTP resolver ( #13433 )
...
* http resolver
* Redo
* Revert "Redo"
This reverts commit 5437c44ac2 .
* Revert "http resolver"
This reverts commit 206207b530 .
* Add host change to ValidatorClient + Validator
* Update mockgen
* Tidy
* Add mock validator
* Update gomock
* Gaz
* Solve interface issues
* Fix host
* Fix test
* Add tests
* Add endpoint change log
* Fix log
* Gen mock
* Fix test
* Fix deepsource
* Lint + deepsource
* Move to healthCheckRoutine
* Fix build errors
* Switch host to string
* Forgot a couple
* Radek' review
* Add PushProposerSettings to goroutine
* Radek' review
* James' review + test fix
* Radek' suggestion
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* Check if new node is healthy
* Fix linter errors
* Add host switch logic to ChangeHost
* Lint + comment
* Fix messy merge
* rename ChangeHost to SetHost
* improve log
* remove log
* switch one node
* rename param
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
Co-authored-by: rkapka <radoslaw.kapka@gmail.com >
2024-05-29 01:43:06 +00:00
terence
43c7659d18
Fix dependent root retrival genesis case ( #14053 )
...
* Fix dependent root retrival genesis case
* Remove print
2024-05-28 16:50:41 +00:00
Radosław Kapka
2d15e53dab
Eip 7549 core ( #14037 )
...
* interfaces move
* build fix
* remove annoying warning
* more build fixes
* review
* core code
* tests part 1
* tests part 2
* TranslateParticipation doesn't need Electra
* remove unused function
* pending atts don't need Electra
* tests part 3
* build fixes
* review
* remove newline
* review
* fix test
2024-05-28 13:56:36 +00:00
Radosław Kapka
2f2152e039
Only log error when aggregator check fails ( #14046 )
...
* Only log error when aggregator check fails
* review
2024-05-27 18:05:46 +00:00
Preston Van Loon
2542189efc
eip-7251: process_effective_balance_updates ( #14003 )
...
* eip-7251: process_effective_balance_updates
Spectests for process_effective_balance_updates
process_effective_balance_updates unit tests
* PR feedback from the amazing @rkapka
---------
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-05-25 00:12:38 +00:00
terence
8e6d39a44b
Support electra blob type for by range request ( #14047 )
...
Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com >
2024-05-24 18:56:40 +00:00
terence
c35889d4c6
Fix CommitteeAssignments to not return every validator ( #14039 )
...
* Rewrite CommitteeAssignments to not return every validator
* Potuz's feedback
2024-05-24 16:56:42 +00:00
Sammy Rosso
10dedd5ced
Fix race conditions + cleanup ( #14041 )
2024-05-23 22:07:16 +00:00
james-prysm
d2966a4c5b
Electra core transition operations ( #14001 )
...
* adding electra operations
* enabling spec tests
* adding electra process epoch
* skipping spec tests for now
* Update testing/spectest/minimal/electra/fork_transition/BUILD.bazel
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
* fixing naming
* gaz
* fixing more bazel build stuff
---------
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com >
2024-05-23 18:01:38 +00:00
kasey
62b5c43d87
paranoid underflow protection without error handling ( #14044 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-05-23 17:57:53 +00:00
kasey
b04baa93cd
convert ZeroWei to a func to avoid shared pointer ( #14043 )
...
Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com >
2024-05-23 15:15:50 +00:00
james-prysm
2e84208169
WebFix develop ( #14040 )
...
* fixing issues introduced by PR 13593
* missed setting db
* linting
2024-05-23 14:07: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
Sammy Rosso
4d190c41cc
Fix TestNodeHealth_Concurrently race condition ( #14033 )
2024-05-22 18:25:42 +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
Bhargava Shastry
3df3e84270
Fuzz ssz round trip ( #14006 )
...
* Initial commit
* Fuzz all generated ssz en/decoders.
* Make proto message comparison aware of nested proto messages and differing unknown fields therein.
* Don't name receiver variable if not necessary.
* Run gazelle
2024-05-21 20:09:49 +00:00
Radosław Kapka
30cc23c5de
Substantial VC cleanup ( #13593 )
...
* Cleanup part 1
* Cleanup part 2
* Cleanup part 3
* remove lock field init
* doc for SignerConfig
* remove vars
* use full Keymanager word in function
* revert interface rename
* linter
* fix build issues
* review
2024-05-21 16:39:00 +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
Radosław Kapka
8a12b78684
Remove Beacon API Postman collection ( #14014 )
2024-05-17 20:40:13 +00:00