aboutsummaryrefslogtreecommitdiff
path: root/src/utilmoneystr.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-03-18 09:31:49 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2015-03-23 17:19:13 -0700
commite6b343d880f50d52390c5af8623afa15fcbc65a2 (patch)
treedb402827c0aeda3350a6f8d2fb0a3c1bfcf3479e /src/utilmoneystr.cpp
parentb23add5521e4207085d41a0266617e94435fc22e (diff)
downloadbitcoin-e6b343d880f50d52390c5af8623afa15fcbc65a2.tar.xz
Make addrman's bucket placement deterministic.
Give each address a single fixed location in the new and tried tables, which become simple fixed-size arrays instead of sets and vectors. This prevents attackers from having an advantages by inserting an address multiple times. This change was suggested as Countermeasure 1 in Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman, Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report 2015/263. March 2015. It is also more efficient.
Diffstat (limited to 'src/utilmoneystr.cpp')
0 files changed, 0 insertions, 0 deletions