[tor-bugs] #20218 [Core Tor/Tor]: Fix and refactor and redocument routerstatus_has_changed
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Jan 24 05:05:31 UTC 2018
#20218: Fix and refactor and redocument routerstatus_has_changed
-------------------------------------------------+-------------------------
Reporter: nickm | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: 029-proposed, tor-control, easy, | Actual Points:
spec-conformance |
Parent ID: | Points: .1
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by aruna1234):
Then this check would be the right one, I suppose:
/* Function to check for new descriptors. Returns 0 if changed, else 1 */
static int check_tiemstamp(const routerstatus_t *a)
{
if(a->published_on == a->now)
return 1;
else
return 0;
}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20218#comment:17>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list