Closed fr3aker closed 7 years ago
If I understand you correctly you don't have a tor proxy?
This is all intended behaviour. If you don't have a tor proxy tor peers will have been dropped as they are unreachable. So testing if you've opened a Tor proxy since the last test uses well known tor peers from the coin list. The idea of the code is that if you start a tor proxy you shouldn't have to restart electrumx, it will notice itself with occasional retries.
I do have a tor proxy configured.
Ok then tie proxy port is set, and there is no need to keep trying to discover one (the last tor retry time). I'm not really sure what the issue is saying is wrong.
When you have a tor proxy last_tor_retry_time
is never updated and stays always 0
.
Sure. Why is that a problem?
This makes the if at peers.py#L443 always evaluate to True
Ah yes that isn't intended.
That should probably be testing if your proxy port is None instead. Do you agree? If so please submit a PR and I'll merge it.
While running with some debugging output for #135 I noticed that coin onion peers are always selected to retry connecting/verify availability. If
tor_proxy.port
is notNone
thenlast_tor_retry_time
is never updated.