Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
juga
sbws
Commits
61a1cfeb
Commit
61a1cfeb
authored
6 years ago
by
Matt Traudt
Browse files
Options
Downloads
Patches
Plain Diff
Log what exit was picked to help measure a relay
Also the consensus weight of each GH: closes
#142
parent
848abbc5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbws/core/scanner.py
+3
-0
3 additions, 0 deletions
sbws/core/scanner.py
with
3 additions
and
0 deletions
sbws/core/scanner.py
+
3
−
0
View file @
61a1cfeb
...
...
@@ -148,6 +148,9 @@ def measure_relay(args, conf, destinations, cb, rl, relay):
return
None
exit
=
rng
.
choice
(
exits
)
# Build the circuit
log
.
debug
(
'
We selected exit %s %s (cw=%d) to help measure %s %s (cw=%d)
'
,
exit
.
nickname
,
exit
.
fingerprint
[
0
:
8
],
exit
.
bandwidth
,
relay
.
nickname
,
relay
.
fingerprint
[
0
:
8
],
relay
.
bandwidth
)
our_nick
=
conf
[
'
scanner
'
][
'
nickname
'
]
circ_fps
=
[
relay
.
fingerprint
,
exit
.
fingerprint
]
circ_id
=
cb
.
build_circuit
(
circ_fps
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment