drop asshole peers #346

Closed
wowario wants to merge 73 commits from <deleted>:ahps into master
Owner
There is no content yet.
wowario added 9 commits 4 years ago
50b3032f3c
p2p: use /16 filtering on IPv4-within-IPv6 addresses
adbfd2ec0e
protocol: detect and drop asshole peers
9f0ff1c551
protocol: drop peers which repeatedly don't reply to chain requests
c4da9b4efd
protocol: prefer cycling low score peers
selsta reviewed 4 years ago
{
MINFO(context << "Peer " << context.m_connection_id << " relayed the block we were waiting on");
context.m_score += 1;
if (context.m_score > 10) // prevent a node from being all nice for a while then switching to asshole
selsta commented 4 years ago

Switch back to 5, 10 makes it less aggressive

Switch back to 5, 10 makes it less aggressive
wowario marked this conversation as resolved
selsta reviewed 4 years ago
#define LAST_ACTIVITY_STALL_THRESHOLD (2.0f) // seconds
#define WAIT_FOR_BLOCK_TIME (20) // seconds
#define DROP_PEERS_ON_SCORE -1
#define DROP_PEERS_ON_SCORE -1
selsta commented 4 years ago

Double define

Double define
wowario marked this conversation as resolved
wowario force-pushed ahps from d301c8db15 to cee2587645 4 years ago
wowario closed this pull request 4 years ago
wowario deleted branch ahps 4 years ago
All checks were successful
continuous-integration/drone/pr Build is passing
This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#346
Loading…
There is no content yet.