diff options
| author | Pieter Wuille <[email protected]> | 2015-03-18 09:31:49 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-03-23 17:19:13 -0700 |
| commit | e6b343d880f50d52390c5af8623afa15fcbc65a2 (patch) | |
| tree | db402827c0aeda3350a6f8d2fb0a3c1bfcf3479e /src/rpcserver.cpp | |
| parent | Switch addrman key from vector to uint256 (diff) | |
| download | discoin-e6b343d880f50d52390c5af8623afa15fcbc65a2.tar.xz discoin-e6b343d880f50d52390c5af8623afa15fcbc65a2.zip | |
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/rpcserver.cpp')
0 files changed, 0 insertions, 0 deletions