Show More
@@ -105,10 +105,7 b' def _takequicksample(dag, nodes, size):' | |||||
105 | return sample |
|
105 | return sample | |
106 |
|
106 | |||
107 | def _takefullsample(dag, nodes, size): |
|
107 | def _takefullsample(dag, nodes, size): | |
108 | always = dag.headsetofconnecteds(nodes) |
|
108 | sample = always = dag.headsetofconnecteds(nodes) | |
109 | if size <= len(always): |
|
|||
110 | return always |
|
|||
111 | sample = always |
|
|||
112 | # update from heads |
|
109 | # update from heads | |
113 | _updatesample(dag, nodes, sample, always) |
|
110 | _updatesample(dag, nodes, sample, always) | |
114 | # update from roots |
|
111 | # update from roots |
@@ -317,17 +317,14 b' One with >200 heads, which used to use u' | |||||
317 | query 3; still undecided: 1140, sample size is: 200 |
|
317 | query 3; still undecided: 1140, sample size is: 200 | |
318 | sampling from both directions |
|
318 | sampling from both directions | |
319 | searching: 4 queries |
|
319 | searching: 4 queries | |
320 |
query 4; still undecided: |
|
320 | query 4; still undecided: 592, sample size is: 200 | |
321 | sampling from both directions |
|
321 | sampling from both directions | |
322 | searching: 5 queries |
|
322 | searching: 5 queries | |
323 |
query 5; still undecided: |
|
323 | query 5; still undecided: 292, sample size is: 200 | |
324 | sampling from both directions |
|
324 | sampling from both directions | |
325 | searching: 6 queries |
|
325 | searching: 6 queries | |
326 |
query 6; still undecided: 5 |
|
326 | query 6; still undecided: 51, sample size is: 51 | |
327 | sampling from both directions |
|
327 | 6 total queries | |
328 | searching: 7 queries |
|
|||
329 | query 7; still undecided: 46, sample size is: 46 |
|
|||
330 | 7 total queries |
|
|||
331 | common heads: 3ee37d65064a |
|
328 | common heads: 3ee37d65064a | |
332 |
|
329 | |||
333 | Test actual protocol when pulling one new head in addition to common heads |
|
330 | Test actual protocol when pulling one new head in addition to common heads |
General Comments 0
You need to be logged in to leave comments.
Login now