Opened 2 months ago

Last modified 8 weeks ago

#29716 new defect

Change the way the consensus is received

Reported by: juga Owned by:
Priority: Medium Milestone: sbws: unspecified
Component: Core Tor/sbws Version: sbws: unspecified
Severity: Normal Keywords: tech-debt, refactor, scanner, relays
Cc: juga Actual Points:
Parent ID: #28684 Points: 1
Reviewer: Sponsor:

Description

Currently it receives the new consensuses using https://stem.torproject.org/api/control.html#stem.control.Controller.get_network_statuses, which uses the cached-consensus and might not be updated.
It should probably receive the new consensuses as soon as they arrive using an event listener https://stem.torproject.org/api/control.html#stem.control.Controller.add_event_listener, instead of every x time.

Child Tickets

Change History (4)

comment:1 Changed 2 months ago by juga

Correct version

comment:2 in reply to:  description Changed 2 months ago by juga

Replying to juga:

It should probably receive the new consensuses as soon as they arrive using an event listener https://stem.torproject.org/api/control.html#stem.control.Controller.add_event_listener, instead of every x time.

This is #28667

comment:3 Changed 2 months ago by juga

Keywords: tech-debt refactor added

Add keywords

comment:4 Changed 8 weeks ago by juga

Keywords: scanner relays added
Note: See TracTickets for help on using tickets.