prysm-pulse/beacon-chain/slasher
Manu NALEPA 3d13c69ef3
Slasher: Fix surrounded votes false negative (#13612)
* `LastEpochWrittenForValidators`: Use golang if.

* `SaveLastEpochsWrittenForValidators`: Refactor.

* `SaveLastEpochsWrittenForValidators`: Fix when `epochByValIndex` > `batchSize`.

Before this commit, `TestStore_LastEpochWrittenForValidators` works if `validatorsCount <= 10000`
and stops working if `validatorsCount > 10000`.

* Slasher: Detect surrounded votes in multiple batches.

Fixes https://github.com/prysmaticlabs/prysm/issues/13591.
2024-02-13 15:50:33 +00:00
..
types Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
BUILD.bazel Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
chunks_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
chunks.go Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
detect_attestations_test.go Slasher: Fix surrounded votes false negative (#13612) 2024-02-13 15:50:33 +00:00
detect_attestations.go Slasher: Fix surrounded votes false negative (#13612) 2024-02-13 15:50:33 +00:00
detect_blocks_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
detect_blocks.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
doc.go Enable dupword linter & fix findings (#12271) 2023-04-18 22:01:27 +00:00
helpers_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
helpers.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
log.go Slasher Simulator Code for Testing Optimized Slasher Behavior (#9695) 2021-09-29 02:27:21 +00:00
metrics.go Slasher Min/Max Chunk Logic (#9673) 2021-09-28 02:04:32 +00:00
params_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
params.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
process_slashings_test.go Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
process_slashings.go Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
queue_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
queue.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
receive_test.go Slasher: Refactor and add tests (#13589) 2024-02-09 21:02:18 +00:00
receive.go Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
service_test.go Slasher: Remove unused RPC. (#13594) 2024-02-07 21:11:58 +00:00
service.go Slasher: Remove unused RPC. (#13594) 2024-02-07 21:11:58 +00:00