talaia-labs / rust-teos

The Eye of Satoshi - Lightning Watchtower
https://talaia-labs.github.io/talaia.watch/
MIT License
135 stars 63 forks source link

Persists Tor secret key to disk #95

Closed sr-gi closed 2 years ago

sr-gi commented 2 years ago

Persists the Tor secret to to <teos_data_dir>/<network_dir>/onion_v3_sk as suggested in #70.

Adds an additional trigger to the Tor task to signal when the service is ready. Otherwise the logs may show the tower being ready before the hidden service is reported:

[...]
2022-08-17T12:12:21.887Z INFO [teosd] Starting up hidden tor service
2022-08-17T12:12:21.887Z INFO [teosd] Tower ready
2022-08-17T12:12:21.888Z INFO [teos::api::tor] Loading Tor secret key from disk
2022-08-17T12:12:21.951Z INFO [teos::api::tor] onion service: 5ofdkbxqtfoerrqu2nh4h2zfkvpkvhompsrxgqxyowkdwegq2s5eqmyd.onion:2121

Close #70

sr-gi commented 2 years ago

@tee8z @meryacine this should fix the Tor hidden service issue

sr-gi commented 2 years ago

Addressed review comments in 3b7842a