nyx icon indicating copy to clipboard operation
nyx copied to clipboard

View consensus weight

Open xrisk opened this issue 3 years ago • 2 comments

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

xrisk avatar Sep 23 '21 03:09 xrisk

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.

atagar avatar Sep 23 '21 21:09 atagar

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.

xrisk avatar Sep 26 '21 15:09 xrisk