shadow test: arti doesn't register onion service until it's used as a socks proxy
Here's the beginning of arti's log when I have a dummy socks client start making requests at 20m. Note that arti doesn't appear to try to register its HS descriptor until then:
2000-01-01T00:15:00Z INFO arti: Starting Arti 1.1.11 in SOCKS proxy mode on 127.0.0.1:9000 ...
2000-01-01T00:15:00Z DEBUG arti::process: Increased process file limit to 1048576
2000-01-01T00:15:00Z INFO arti_client::client: Using keystore from "./keystore"
2000-01-01T00:15:00Z DEBUG arti_client::client: It appears we have the lock on our state files.
2000-01-01T00:15:00Z DEBUG arti::reload_cfg: Entering FS event loop
2000-01-01T00:15:00Z INFO tor_dirmgr: Didn't get usable directory from cache.
2000-01-01T00:15:00Z INFO arti::socks: Listening on 127.0.0.1:9000.
2000-01-01T00:20:00Z DEBUG arti_client::status: 0%: connecting to the internet; not downloading
2000-01-01T00:20:00Z DEBUG arti_client::status: 0%: connecting to the internet; not downloading
2000-01-01T00:20:00Z DEBUG arti_client::status: 0%: connecting to the internet; not downloading
2000-01-01T00:20:00Z INFO tor_hsservice::ipt_mgr: HS service tgen_hs failed to select IPT relay: error: bad or insufficient netdir: No directory informatio
n available
2000-01-01T00:20:00Z DEBUG tor_hsservice::ipt_mgr: HS service tgen_hs: no good IPTs
2000-01-01T00:20:00Z INFO tor_hsservice::ipt_mgr: HS service tgen_hs failed to select IPT relay: error: bad or insufficient netdir: No directory informatio
n available
2000-01-01T00:20:00Z DEBUG tor_hsservice::ipt_mgr: HS service tgen_hs: no good IPTs
2000-01-01T00:20:00Z DEBUG tor_hsservice::svc::publish::reactor: starting descriptor publisher reactor nickname=tgen_hs
2000-01-01T00:20:00Z INFO tor_dirmgr::bootstrap: 1: Looking for a consensus. attempt=1
2000-01-01T00:20:00Z DEBUG tor_chanmgr::factory: Attempting to open a new channel to [100.0.0.1:9111 ed25519:4ngwAxQ6Zw2VJB241CenzfrVtT6omCDOf9yGB1XAqTs $a5
2ca5b56c64d864f6ae43e56f29acbd5706dda1]
...
Here's the complete log if I remove the dummy socks client:
2000-01-01T00:15:00Z INFO arti: Starting Arti 1.1.11 in SOCKS proxy mode on 127.0.0.1:9000 ...
2000-01-01T00:15:00Z DEBUG arti::process: Increased process file limit to 1048576
2000-01-01T00:15:00Z INFO arti_client::client: Using keystore from "./keystore"
2000-01-01T00:15:00Z DEBUG arti_client::client: It appears we have the lock on our state files.
2000-01-01T00:15:00Z DEBUG arti::reload_cfg: Entering FS event loop
2000-01-01T00:15:00Z INFO tor_dirmgr: Didn't get usable directory from cache.
2000-01-01T00:15:00Z INFO arti::socks: Listening on 127.0.0.1:9000.
cc @gabi-250