lighthouse/validator_client
Paul Hauner 6a620a31da Fix starting-epoch check in doppelganger (#2491)
## Issue Addressed

NA

## Proposed Changes

Fixes a bug in Doppelganger Protection which would cause false-positives when a VC is restarted in the same epoch where it has already produced a signed message.

It could also cause a false-negative in the scenario where time skips forward (perhaps due to host suspend/wake). The new `time_skips_forward_with_doppelgangers` test covers this case.

This was a simple (and embarrassing, on my behalf) `>=` instead of `<=` bug that was missed by my tests but detected during manual testing by @michaelsproul (🙏). Regression tests have been added.

## Additional Info

NA

## TODO

- [x] Add test for doppelganger in epoch > next_check_epoch
2021-08-04 00:03:47 +00:00
..
slashing_protection Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
src Fix starting-epoch check in doppelganger (#2491) 2021-08-04 00:03:47 +00:00
Cargo.toml Doppelganger detection (#2230) 2021-07-31 03:50:52 +00:00