prysm-pulse/testing/slasher/simulator
Manu NALEPA 06a5548424
Slasher: Fixes double votes false positive and attester slashings duplication. (#13596)
* `Test_processAttestations`: Remove duplicated tests.

* Sort indexed attestations by data root.

* `processAttestations`: Don't return duplicate slashings anymore.

Fix https://github.com/prysmaticlabs/prysm/issues/13592.

* `AttesterDoubleVote`: Rename fields.

* Detect double votes in different batches.

In order to do that:
1. Each attestation of the batch is tested against the other attestations of the batch.
2. Each attestation of the batch is tested against the content of the database.
2. Attestations are saved into the database.

Fixes https://github.com/prysmaticlabs/prysm/issues/13590.
2024-02-12 17:35:22 +00:00
..
attestation_generator_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
attestation_generator.go Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
block_generator_test.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
block_generator.go Update to V4 🚀 (#12134) 2023-03-17 18:52:56 +00:00
BUILD.bazel Slasher: Fixes double votes false positive and attester slashings duplication. (#13596) 2024-02-12 17:35:22 +00:00
simulator_test.go Refactor Exported Names to Follow Golang Best Practices (#13075) 2023-10-20 16:45:33 +00:00
simulator.go Replace statefeed Initialize (#12285) 2023-05-03 04:34:01 +00:00