torproject / nyx

Command-line monitor for Tor.
https://nyx.torproject.org/
GNU General Public License v3.0
123 stars 26 forks source link

View consensus weight #42

Open xrisk opened 3 years ago

xrisk commented 3 years ago

Is there perhaps any way to view one’s consensus weight (preferably both the raw value and the fraction)?

atagar commented 3 years ago

Hi xrisk. No, Nyx does not present consensus weights and doing so would be confusing for users. Consensus weights reside within router status entries, for example...

r moria1 lpXfw1/+uGEym58asExGOXAgzjE iiukB+Ua+P+ePeHtX0d0LhIqj18 2021-09-23 18:39:12 128.31.0.34 9101 9131
s Authority Fast HSDir Running Stable V2Dir Valid
w Bandwidth=480

That value (480) is an arbitrary heuristic derived by the bandwidth authorities. The number itself is meaningless except as a weight when compared with other eligible relays for path selection.

If you can think of a good way to present this that doesn't cause confused inquiries I'd be happy to look at a patch.

xrisk commented 3 years ago

Hi yes, I was thinking of a graph of the fractional consensus weight in the same vein as Onionoo. I am not sure of how accurately we can represent a line graph in the terminal though. I will take a stab at it.

EDIT: although now that I think of it, I’m not sure how useful or interesting that graph is once the initial 14 day period is over.