|
@@ -906,9 +906,9 @@ class RelayChannelManager(ChannelManager):
|
|
|
self.path_selection_key, b'circuit', False, self.perfstats)
|
|
|
|
|
|
logging.debug("RelayChannelManager: Unimplemented! need to translate idx into endive index")
|
|
|
+ logging.debug("RelayChannelManager: Unimplemented! need to pick the next relay using the shared secret between the client and the relay.")
|
|
|
|
|
|
- sys.exit("TODO convert shared secret into integer type modulo alpha")
|
|
|
- nexthop = self.relaypicker.pick_relay_by_uniform_index(idx)
|
|
|
+ nexthop = self.relaypicker.pick_weighted_relay()
|
|
|
if nexthop == None:
|
|
|
logging.debug("WARNING: Unimplemented! Need to validate next hop is not null, if it is, we should send a CLOSE cell.")
|
|
|
|