[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #2461 [Tor Weather]: Notify people about relays that recently qualified for a Tor t-shirt
#2461: Notify people about relays that recently qualified for a Tor t-shirt
-------------------------+--------------------------------------------------
Reporter: karsten | Owner: kaner
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Tor Weather | Version:
Keywords: | Parent:
Points: | Actualpoints:
-------------------------+--------------------------------------------------
Comment(by StalkR):
Oops, reading the spec
(https://gitweb.torproject.org/torspec.git/blob/HEAD:/dir-spec.txt)
uptime, unlike bandwidth, is not part of the consensus, so we need to
calculate it differently and it's not immediate (we need a list of
consensuses as arma said).
Knowing:
* we cannot rely on router descriptors for uptime as they can be faked
* a node marked Running in consensus can be considered up
* node bandwidth in consensus can be trusted
* we do not want to reset uptime if a router is down, we want to resume
increasing uptime next time it is up
I propose we can calculate the uptime of a given node by adding delays
between consecutive consensuses in which we have seen the node was up.
Also when incrementing the uptime, maintain node average bandwidth using
node bandwidth in consensus (as done currently).
That way, we can calculate if a node owned a t-shirt by importing old
consensuses.
Now do we prefer a script? (a)
+ can be run offline, on an archive of consensuses
- need to run it manually/cron somewhere and some logic to distinguish
which ones are new
or a quick solution integrated to TOR weather? (b)
+ automated
+ can easily have a page "did I win a t-shirt" #8999
- no uptime accounting if weather is down/not maintaining its database,
delaying t-shirts
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2461#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs