Bitshala / BitcoinCore-PR-Review-Club

Bitcoin Core PR Review Organising repo
10 stars 2 forks source link

p2p: skip netgroup diversity of new connections for tor/i2p/cjdns #27374 #23

Closed rajarshimaitra closed 1 year ago

rajarshimaitra commented 1 year ago

Session Details

Notes

Conceptual Questions

  1. What are different types of outbound connections? Can you point region in code where these connections are established? hint: look in ThreadOpenConnections()
  2. What's a netgroup? Why is netgroup diversity important when making an outbound connection?
  3. How is netgroup diversity maintained when establishing outbound connections? hint: #27264

PR related Questions

  1. Did you review the PR? Concept ACK, approach ACK, tested ACK, or NACK? What was your review approach?
  2. What problem does this PR solve?
  3. Why skip netgroup diversity checks when establishing outbound connections to Tor/I2P/CJDNS networks?
  4. What does fCountFailure do?
  5. What would happen if outbound_privacy_network_peers was absent in the code?
  6. optional: why increasing 4 bits to 5 bits in GetGroup() logic (to increase total number of possible netgroups for Tor/I2P/CJDNS from 16 possibilities to 2**5 possibilities) isn't desirable.

Learning