Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dht): monitor and display warning for min ratio for TCPv4 nodes #3953

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Mar 24, 2022

Description

  • monitors TCPv4/other connection ratios and displays warning if below minimum
  • adds common.dht_minimum_desired_tcpv4_node_ratio config

Motivation and Context

Display warning if node does not meet a configured minimum ratio. This is to warn about the potential for sybil attacks because of very low (TCPv6) or zero (Tor) cost for creating new network addresses.

How Has This Been Tested?

Manually, log warning is emitted

@sdbondi sdbondi force-pushed the dht-warn-for-too-many-tor-nodes branch from f85b007 to 1577bcf Compare March 24, 2022 06:56
@sdbondi sdbondi force-pushed the dht-warn-for-too-many-tor-nodes branch from 1577bcf to e2ed3e0 Compare March 24, 2022 06:58
@aviator-app aviator-app bot merged commit c4070ff into tari-project:development Mar 24, 2022
@sdbondi sdbondi deleted the dht-warn-for-too-many-tor-nodes branch March 24, 2022 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants