From 050468a6b7142eb354d3a29a2be533c2af2a0588 Mon Sep 17 00:00:00 2001 From: codeking Date: Sun, 18 Jan 2026 05:20:44 +0100 Subject: [PATCH] Add support for stateful Tor sessions --- cli/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/__main__.py b/cli/__main__.py index dc8f998..fcd7f73 100644 --- a/cli/__main__.py +++ b/cli/__main__.py @@ -49,6 +49,9 @@ if __name__ == '__main__': client_observer.subscribe('updated', lambda event: print('\n')) connection_observer.subscribe('connecting', lambda event: print(f'[{event.subject.get("attempt_count")}/{event.subject.get("maximum_number_of_attempts")}] Performing connection attempt...\n')) + connection_observer.subscribe('tor_bootstrapping', lambda event: print('Bootstrapping Tor...')) + connection_observer.subscribe('tor_bootstrap_progressing', lambda event: print(f'Current progress: {event.meta.get('progress'):.2f}%', flush=True, end='\r')) + connection_observer.subscribe('tor_bootstrapped', lambda event: print('\n')) invoice_observer.subscribe('retrieved', lambda event: print(f'\n{pprint.pp(event.subject)}\n')) invoice_observer.subscribe('processing', lambda event: print('A payment has been detected and is being verified...\n'))