mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
p2p: add a reference to Cao, Tong et al. for the last_seen changes
"Exploring the Monero Peer-to-Peer Network". https://eprint.iacr.org/2019/411
This commit is contained in:
parent
6335509727
commit
3768db227c
1 changed files with 3 additions and 0 deletions
|
@ -278,6 +278,9 @@ namespace nodetool
|
||||||
// was moved to the gray list (if it's not accessibe, which the attacker can check if
|
// was moved to the gray list (if it's not accessibe, which the attacker can check if
|
||||||
// the address accepts incoming connections) or it was the oldest to still fit in the 250 items,
|
// the address accepts incoming connections) or it was the oldest to still fit in the 250 items,
|
||||||
// so its last_seen is old.
|
// so its last_seen is old.
|
||||||
|
//
|
||||||
|
// See Cao, Tong et al. "Exploring the Monero Peer-to-Peer Network". https://eprint.iacr.org/2019/411
|
||||||
|
//
|
||||||
const uint32_t pick_depth = anonymize ? depth + depth / 5 : depth;
|
const uint32_t pick_depth = anonymize ? depth + depth / 5 : depth;
|
||||||
bs_head.reserve(pick_depth);
|
bs_head.reserve(pick_depth);
|
||||||
for(const peers_indexed::value_type& vl: boost::adaptors::reverse(by_time_index))
|
for(const peers_indexed::value_type& vl: boost::adaptors::reverse(by_time_index))
|
||||||
|
|
Loading…
Reference in a new issue