comparison tests/test-setdiscovery.t @ 23812:db58186dd8e3

setdiscovery: directly run '_updatesample' The heads and exponential sample are going to end up in the same set before any extra processing happens. We simplify the code by directly updating a set with heads. Changes in the order the set is built lead to small changes in the random sampling output. But after double checking, I can confirm the input data to the random sampling is consistent.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 07 Jan 2015 17:23:21 -0800
parents b681d3a2bf04
children 932f814bf016
comparison
equal deleted inserted replaced
23811:e2b262e2ee73 23812:db58186dd8e3
324 sampling from both directions 324 sampling from both directions
325 searching: 6 queries 325 searching: 6 queries
326 query 6; still undecided: 540, sample size is: 200 326 query 6; still undecided: 540, sample size is: 200
327 sampling from both directions 327 sampling from both directions
328 searching: 7 queries 328 searching: 7 queries
329 query 7; still undecided: 37, sample size is: 37 329 query 7; still undecided: 46, sample size is: 46
330 7 total queries 330 7 total queries
331 common heads: 3ee37d65064a 331 common heads: 3ee37d65064a
332 332
333 Test actual protocol when pulling one new head in addition to common heads 333 Test actual protocol when pulling one new head in addition to common heads
334 334