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
Preston Van Loon
2aa52fb56a
Add static analyzer to discourage use of panic() ( #15075 )
...
* Implement static analysis to prevent panics
* Add nopanic to nogo
* Fix violations and add exclusions
Fix violations and add exclusions for all
* Changelog fragment
* Use pass.Report instead of pass.Reportf
* Remove strings.ToLower for checking init method name
* Add exclusion for herumi init
* Move api/client/beacon template function to init and its own file
* Fix nopanic testcase
2025-03-19 18:04:15 +00:00
Radosław Kapka
15462844f9
Remove error from signatures of UnaggregatedAttestations and pruneAttsFromPool ( #15028 )
2025-03-10 22:28:51 +00:00
Radosław Kapka
f89afb0fbd
Handle some errors from hasSeenBit and insertSeenBit differently ( #15018 )
...
* Ignore errors from `hasSeenBit` and don't pack unaggregated attestations
* changelog <3
* Revert "Ignore errors from `hasSeenBit` and don't pack unaggregated attestations"
This reverts commit dc86cb63204d6ff735d9302142068de95a8188fd.
2025-03-06 22:26:20 +00:00
Radosław Kapka
0229a2055e
Rename files in beacon-chain/operations/slashings ( #14904 )
...
* pool
* service
* changelog <3
2025-02-11 16:13:23 +00:00
Potuz
f6e5da6723
Do not error on overflow when converting slashings ( #14882 )
2025-02-05 21:01:27 +00:00
Radosław Kapka
1069da1cd2
Convert Phase0 slashing to Electra slashings at the fork ( #14844 )
...
* EIP-7549: slasher
* update chunks and detection
* update tests
* encode+decode
* timer
* test fixes
* testing the timer
* Decouple pool from service
* update mock
* cleanup
* make review easier
* comments and changelog
2025-01-31 03:17:52 +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
Radosław Kapka
d04b361cc3
Redesign of the attestation pool ( #14324 )
...
* Rename existing AttestationCache
* Cache with simple Add
* fix import cycle
* logic for unaggregated, aggregated and block attestations
* some small fixes
* remove Seen
* finishing touches
* feature flag
* extract forkchoice atts to separate type
* gate new functionality behind feature flag
* revert test files
* preparing for review
* change Id to [32]byte
* Potuz's review
* Potuz's review pt 2
* Nishant's review
* keep flat list of atts
* fix ForkchoiceAttestations() function
* Tests for Add, GetAll, Count
* Tests for remaining functions
* use DeepEqual
* fix tests
* documentation
* changelog <3
* v2 handlers
* nil check for forkchoice atts
* guard against 0 bits set
* fix failing test
* Preston's review
* better godocs
2024-12-23 09:59:32 +00:00
Dan Park
6e6012b12f
Bugfix: Apply eip7549 to slashing pool ( #14691 )
...
* Apply eip7549 to slashing pool
* Add CHANGELOG.md
* Update bazel
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2024-12-11 18:57:21 +00:00
Radosław Kapka
67cef41cbf
Better attestation packing for Electra ( #14534 )
...
* Better attestation packing for Electra
* changelog <3
* bzl
* sort before constructing on-chain aggregates
* move ctx to top
* extract Electra logic and add comments
* benchmark
2024-11-25 18:41:51 +00:00
james-prysm
a7ba11df37
adding nil checks on attestation interface ( #14638 )
...
* adding nil checks on interface
* changelog
* add linting
* adding missed checks
* review feedback
* attestation bits should not be in nil check
* fixing nil checks
* simplifying function
* fixing some missed items
* more missed items
* fixing more tests
* reverting some changes and fixing more tests
* adding in source check back in
* missed test
* sammy's review
* radek feedback
2024-11-18 17:51:17 +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
4d823acf45
moving cloners to attestation.go and adding fuzzing ( #14254 )
...
* moving cloners to attestation.go and adding fuzzing
* fixing bazel
* fixing build
2024-07-22 22:31:12 +00:00
Radosław Kapka
49055acf81
EIP-7549: Attestation packing ( #14238 )
...
* EIP-7549: Attestation packing
* new files
* change var name
* test fixes
* enhance comment
* unit test for Deneb state
2024-07-19 14:08:39 +00:00
terence
fa370724f1
Increase attestation seen cache exp time to two epochs ( #14156 )
2024-06-28 00:20:08 +00:00
Radosław Kapka
b8aad84285
EIP-7549: attestation pool ( #14121 )
...
* implementation
* test fixes
* Electra tests
* remove aggregator tests
* id comments and tests
* make Id equal to [33]byte
2024-06-25 13:18:07 +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
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
Preston Van Loon
2b06dfd4a3
Debugging attestation bitlist issues in minimal spec ( #13997 )
2024-05-14 13:56:00 +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
Nishant Das
fda4589251
Rewrite Pruning Implementation To Handle EIP 7045 ( #13762 )
...
* make it very big
* use new pruning implementation
* handle pre deneb
* revert cache change
* less verbose
* gaz
* Update beacon-chain/operations/attestations/prune_expired.go
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
* gofmt
* be safer
---------
Co-authored-by: Potuz <potuz@prysmaticlabs.com >
2024-03-18 12:57:21 +00:00
Radosław Kapka
0b261cba5e
Unify log fields ( #13654 )
...
* unify fields
* fix tests
2024-02-22 22:40:36 +00:00
terence
0dfe19c3dd
Update aggregate atts t1 bucket values ( #13607 )
2024-02-15 18:36:30 +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
87b53db3b4
Capitalize Aggregated Unaggregated Attestations Log ( #13473 )
2024-01-17 13:30:31 +00:00
Nishant Das
a974627258
Make Aggregating In Parallel The Permanent Default ( #13407 )
...
* make it the permanent default
* gaz
2024-01-06 07:29:06 +00:00
Preston Van Loon
db096488b0
fixing sa4006 ( #13350 )
2023-12-15 16:49:27 +00:00
Nishant Das
705e98e3c3
no need to hash it again ( #13261 )
2023-12-05 07:59:01 -03:00
Preston Van Loon
82640b3d88
Enable profile guided optimization for beacon-chain ( #13035 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-30 05:52:36 +00:00
terencechain
9387a36b66
Refactor Exported Names to Follow Golang Best Practices ( #13075 )
...
* Fix exported names that start with a package name
* A few more renames
* Fix exported names that start with a package name
* A few more renames
* Radek's feedback
* Fix conflict
* fix keymanager test
* Fix comments
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 16:45:33 +00:00
Nishant Das
c7e28908f5
Add Clarification To Sync Committee Cache ( #13067 )
...
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-10-20 13:57:07 +00:00
Potuz
ef1f5e6dbe
remove unused function ( #12920 )
...
* remove unused function
* remove the actual method
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-09-18 21:30:30 +00:00
Preston Van Loon
48f1f69695
Deneb: Implement EIP-7044 ( #12577 )
2023-08-31 08:41:57 -05:00
Potuz
dd14d5cef0
refactor slot tickers with intervals ( #12440 )
...
* refactor slot tickers with intervals
* GoDoc
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-08-03 20:55:16 -03:00
terencechain
8af634a6a0
feat: aggregate atts using fixed pool of go routines ( #12553 )
...
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
* feat: aggregate atts using fixed pool of go routines
* fix: deepsrc complains
* style: comment
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
---------
Co-authored-by: Radosław Kapka <rkapka@wp.pl >
2023-06-22 17:48:42 +00:00
terencechain
75e94120b4
fix(aggregator): remove single bit aggregation ( #12555 )
2023-06-22 09:34:25 -07:00
Potuz
b84dd40ba9
Use forkchoice to validate sync messages faster ( #12430 )
...
* Use forkchoice to validate sync messages faster
* add metric
2023-05-19 14:47:39 +00:00
Potuz
537236e1c9
Add aggregation metrics ( #12417 )
2023-05-17 12:18:59 -07:00
Potuz
be23773924
Don't use max cover on unaggregated atts nor check subgroup of validated signatures ( #12350 )
...
* Don't use max cover on unnaggregated atts
* Do not validate signature on the attestation package
* separate nil error checks
* fix unit tests
2023-05-16 17:06:26 +00:00
Potuz
955a21fea4
revert revert of f6764fe62b ( #12399 )
2023-05-16 11:50:02 +00:00
Preston Van Loon
2c3b3b802a
Revert "Add a new slot ticker and use it on attestation aggregation" ( #12390 )
...
This reverts commit f6764fe62b .
2023-05-12 14:49:37 +00:00
Potuz
f6764fe62b
Add a new slot ticker and use it on attestation aggregation ( #12377 )
...
* Add slot ticker with intervals
* add flags for aggregation duration
* misspelling
* hide flags
* fix flags and default durations
* lint
* wait for initial sync
* deep source
* add log
* Preston's review
* fix error message
---------
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-05-10 12:48:51 +00: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
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
7d82a0510f
Fix typos from bls pool metric PR ( #12155 )
2023-03-17 16:00:07 +00:00
terencechain
2669c93375
Add bls pool metric ( #12133 )
...
* Add metric gauge for bls to exec pool count
* Fix
* Fix
* Gazelle
2023-03-15 14:12:21 +00:00
Radosław Kapka
ac4483417d
Redesign voluntary exits pool ( #11898 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
2023-03-01 17:44:00 +01:00
Radosław Kapka
096cf7b8c1
Test invalid change inclusion in blstoexec pool ( #12037 )
...
Co-authored-by: Nishant Das <nishdas93@gmail.com >
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-02-23 17:18:37 +00:00
Potuz
dc5cf88243
Do not check signatures when packing BLS changes ( #12021 )
...
* Do not check signatures when packing BLS changes
* gaz
* fix test
---------
Co-authored-by: terencechain <terence@prysmaticlabs.com >
2023-02-21 22:18:54 +00:00