Autore: Amir Taaki Data: To: Peter Todd CC: gmaxwell, libbitcoin Oggetto: [Libbitcoin] Bitcoin DoS protection
Hey instead of the hacks and workarounds, bitcoin should use swarming
techniques:
# hash(ip addr, port) % N = swarm_id
# index node address list db by hash(ip addr, port)
# N = total number of nodes in address list
# when connecting, progressively try swarm_ids closest to ours and move
outwards.
# when a connection is dropped, repeat the above steps.
this would allow efficient routing and broadcast of messages in bitcoin
while maintaining a resilient network that is not a victim of shaping.
if we're always doing getaddr (as we should) and N is unpredictable
(rather can't be predicted precisely- you could be 2028 or 2029 but it
changes your swarm_id completely.