aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_invalid_locator.py
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-09-03 17:12:53 +0200
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-09-03 17:20:47 +0200
commit69a13eb2467ae04b001c927fc359d12192199350 (patch)
tree66c3e361960fc53ec2aaec5e32092f5fbb5776b9 /test/functional/p2p_invalid_locator.py
parent4053de04e23962f793303b1e68cd89d82fe14335 (diff)
parent752e6ad5336d5af0db9fe16d24c0c6aa25b74a3f (diff)
Merge #19670: Protect localhost and block-relay-only peers from eviction
752e6ad5336d5af0db9fe16d24c0c6aa25b74a3f Protect localhost and block-relay-only peers from eviction (Suhas Daftuar) Pull request description: 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 have provided us with blocks. Thanks to gmaxwell for suggesting these strategies. ACKs for top commit: laanwj: Code review ACK 752e6ad5336d5af0db9fe16d24c0c6aa25b74a3f Tree-SHA512: dbf089c77c1f747aa1dbbbc2e9c2799c628028b0918d0c336d8d0e5338acedd573b530eb3b689c7f603a17221e557268a9f5c3f585f204bfb12e5d2e76de39a3
Diffstat (limited to 'test/functional/p2p_invalid_locator.py')
0 files changed, 0 insertions, 0 deletions