diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-18 09:31:49 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-03-23 17:19:13 -0700 |
commit | e6b343d880f50d52390c5af8623afa15fcbc65a2 (patch) | |
tree | db402827c0aeda3350a6f8d2fb0a3c1bfcf3479e /src/json/json_spirit_value.h | |
parent | b23add5521e4207085d41a0266617e94435fc22e (diff) |
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/json/json_spirit_value.h')
0 files changed, 0 insertions, 0 deletions