diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2020-08-05 14:31:50 -0400 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2020-09-02 09:21:33 -0400 |
commit | 752e6ad5336d5af0db9fe16d24c0c6aa25b74a3f (patch) | |
tree | 517f0dbe10c38b3ed16e44a164cb2b8cfbe00bc0 /src/Makefile.test_fuzz.include | |
parent | c157a50694545090cb1c7e69123fe4709bd5a279 (diff) |
Protect localhost and block-relay-only peers from eviction
Onion peers are disadvantaged under our eviction criteria, so prevent eventual
eviction of them in the presence of contention for inbound slots by reserving
some slots for localhost peers (sorted by longest uptime).
Block-relay-only connections exist as a protection against eclipse attacks, by
creating a path for block propagation that may be unknown to adversaries.
Protect against inbound peer connection slot attacks from disconnecting such
peers by attempting to protect up to 8 peers that are not relaying transactions
but appear to be full-nodes, sorted by recency of last delivered block.
Thanks to gmaxwell for suggesting these strategies.
Diffstat (limited to 'src/Makefile.test_fuzz.include')
0 files changed, 0 insertions, 0 deletions