Bitcoin Forum
June 27, 2024, 12:59:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Address forwarding  (Read 527 times)
TierNolan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1084


View Profile
January 08, 2014, 01:29:14 PM
 #1

I was looking at the "addr" message forwarding rules.

The rule is to randomly select one (or 2) nodes and send them the addr messages.

All peers are sorted based on a deterministic algorithm.  This seed for this sort is changed once a day.  Sort order of the peers is different for each address.

If peers are constant, then the same address will be forwarded to the same peer every time.

However, it only sends the address to 2 peers.  If the address is not reachable, it only sends it to 1.

Is this a security thing?  Eventually if each node sends the address to 2 other nodes, won't it flood fill the network anyway?

1LxbG5cKXzTwZg9mjL3gaRE835uNQEteWF
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!