prysm-pulse/beacon-chain/db/slasherkv
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
..
BUILD.bazel Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
kv_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
kv.go db: clear blobs when using --clear-db or --force-clear-db (#13605) 2024-02-10 03:52:30 +00:00
log.go Optimized Slasher Database Methods (#8805) 2021-04-23 12:06:13 -05:00
metrics.go Optimized Slasher Database Methods (#8805) 2021-04-23 12:06:13 -05:00
pruning_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
pruning.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
schema.go Beacon node slasher improvement (#13549) 2024-01-31 09:49:14 +00:00
slasher_test.go Slasher: Fix surrounded votes false negative (#13612) 2024-02-13 15:50:33 +00:00
slasher.go Slasher: Fix surrounded votes false negative (#13612) 2024-02-13 15:50:33 +00:00
slasherkv_test.go Replace ioutil with io and os (#10541) 2022-04-18 20:42:07 +00:00