mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 01:03:40 +00:00
Fix gossip verification of duplicate attester slashings (#5385)
* Fix gossip verification of duplicate attester slashings
This commit is contained in:
@@ -153,6 +153,11 @@ impl<T: ObservableOperation<E>, E: EthSpec> ObservedOperations<T, E> {
|
||||
self.current_fork = head_fork;
|
||||
}
|
||||
}
|
||||
|
||||
/// Reset the cache. MUST ONLY BE USED IN TESTS.
|
||||
pub fn __reset_for_testing_only(&mut self) {
|
||||
self.observed_validator_indices.clear();
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: ObservableOperation<E> + VerifyOperationAt<E>, E: EthSpec> ObservedOperations<T, E> {
|
||||
|
||||
Reference in New Issue
Block a user