lighthouse/beacon_node
Paul Hauner 3fdad38eba Remove penality for duplicate attestation from same validator (#2540)
## Issue Addressed

NA

## Proposed Changes

A Discord user presented logs which indicated a drop in their peer count caused by a variety of peers sending attestations where we'd already seen an attestation for that validator. It's presently unclear how this case came about, but during our investigation I noticed that we are down-voting peers for sending such attestations.

There are three scenarios where we may receive duplicate unagg. attestations from the same validator:

1. The validator is committing a slashable offense.
2. The gossipsub message-deduping functionality is not working as expected.
3. We received the message via the HTTP prior to seeing it via gossip.

Scenario (1) would be so costly for an attacker that I don't think we need to add DoS protection for it.

Scenario (2) seems feasible. Our "seen message" caches in gossipsub might fill up/expire and let through these duplicates. There are also cases involving message ID mismatches with the other peers. In both these cases, I don't think we should be doing 1 attestation == -1 point down-voting.

Scenario (3) is not necessarily a fault of the peer and we shouldn't down-score them for it.

## Additional Info

NA
2021-08-26 08:00:50 +00:00
..
beacon_chain Metrics and DEBG log for late gossip blocks (#2533) 2021-08-23 00:59:14 +00:00
client Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
eth1 Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
eth2_libp2p Increase maximum gossipsub subscriptions (#2531) 2021-08-26 02:01:10 +00:00
genesis Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
http_api Fork schedule api (#2525) 2021-08-24 01:36:27 +00:00
http_metrics Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
network Remove penality for duplicate attestation from same validator (#2540) 2021-08-26 08:00:50 +00:00
operation_pool Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
src Packet filter cli option (#2523) 2021-08-26 00:29:39 +00:00
store Rust 1.54.0 lints (#2483) 2021-07-30 01:11:47 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Upgrade dependencies (#2513) 2021-08-17 01:00:24 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml v1.5.0 (#2535) 2021-08-23 04:27:36 +00:00