@@ -37,7 +37,7 @@ def __str__(self):
3737 def start (self , balance_updated_cb ):
3838 self .keep_running = True
3939 _thread .stack_size (mpos .apps .good_stack_size ())
40- _thread .start_new_thread (self .manage_wallet_thread , (balance_updated_cb ,))
40+ _thread .start_new_thread (self .wallet_manager_thread , (balance_updated_cb ,))
4141
4242 def stop (self ):
4343 self .keep_running = False
@@ -52,8 +52,8 @@ def __init__(self, lnbits_url, lnbits_readkey):
5252 self .lnbits_url = lnbits_url
5353 self .lnbits_readkey = lnbits_readkey
5454
55- def manage_wallet_thread (self , balance_updated_cb ):
56- print ("manage_wallet_thread " )
55+ def wallet_manager_thread (self , balance_updated_cb ):
56+ print ("wallet_manager_thread " )
5757 while self .keep_running :
5858 try :
5959 self .last_known_balance = fetch_balance ()
@@ -63,7 +63,7 @@ def manage_wallet_thread(self, balance_updated_cb):
6363 print (f"WARNING: fetch_balance got exception { e } , ignorning." )
6464 print ("Sleeping a while before re-fetching balance..." )
6565 time .sleep (60 )
66- print ("manage_wallet_thread stopping" )
66+ print ("wallet_manager_thread stopping" )
6767
6868 def fetch_balance ():
6969 walleturl = self .lnbits_url + "/api/v1/wallet"
@@ -95,7 +95,7 @@ def __init__(self, nwc_url):
9595 self .nwc_url = nwc_url
9696 self .connected = False
9797
98- def manage_wallet_thread (self , balance_updated_cb ):
98+ def wallet_manager_thread (self , balance_updated_cb ):
9999 self .relay , self .wallet_pubkey , self .secret , self .lud16 = self .parse_nwc_url (self .nwc_url )
100100 self .private_key = PrivateKey (bytes .fromhex (self .secret ))
101101 self .relay_manager = RelayManager ()
0 commit comments