move dht_flood.py into tools. only reveal 3 bits passed the shared target prefix when doing obfuscated dht lookups

This commit is contained in:
Arvid Norberg 2013-10-16 23:19:18 +00:00
parent 8fe1dc5754
commit 17d276e060
2 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ bool obfuscated_get_peers::invoke(observer_ptr o)
// now, obfuscate the bits past shared_prefix + 5
node_id obfuscated_target = generate_random_id();
obfuscated_target >>= shared_prefix + 6;
obfuscated_target >>= shared_prefix + 3;
obfuscated_target^= m_target;
a["target"] = obfuscated_target.to_string();