CAddrMan: stochastic address manager
authorPieter Wuille <pieter.wuille@gmail.com>
Wed, 4 Jan 2012 22:39:45 +0000 (23:39 +0100)
committerPieter Wuille <pieter.wuille@gmail.com>
Fri, 24 Feb 2012 12:41:04 +0000 (13:41 +0100)
commit5fee401fe14aa6459428a26a82f764db70a6a0b9
tree7920219dabcdd335a7432aa05081d168c98dbf06
parent8c12851ed497797684588e09637d80a5abd5725e
CAddrMan: stochastic address manager

Design goals:
 * Only keep a limited number of addresses around, so that addr.dat does not grow without bound.
 * Keep the address tables in-memory, and occasionally write the table to addr.dat.
 * Make sure no (localized) attacker can fill the entire table with his nodes/addresses.

See comments in addrman.h for more detailed information.
17 files changed:
bitcoin-qt.pro
src/addrman.cpp [new file with mode: 0644]
src/addrman.h [new file with mode: 0644]
src/db.cpp
src/db.h
src/init.cpp
src/irc.cpp
src/main.cpp
src/makefile.linux-mingw
src/makefile.mingw
src/makefile.osx
src/makefile.unix
src/net.cpp
src/net.h
src/netbase.cpp
src/protocol.h
src/uint256.h