lnworker: make calc_routing_hints_for_invoice and create_invoice non-async
This commit is contained in:
@@ -920,7 +920,7 @@ class Commands:
|
||||
@command('wnl')
|
||||
async def add_lightning_request(self, amount, memo='', expiration=3600, wallet: Abstract_Wallet = None):
|
||||
amount_sat = int(satoshis(amount))
|
||||
key = await wallet.lnworker._add_request_coro(amount_sat, memo, expiration)
|
||||
key = wallet.lnworker.add_request(amount_sat, memo, expiration)
|
||||
return wallet.get_formatted_request(key)
|
||||
|
||||
@command('w')
|
||||
|
||||
Reference in New Issue
Block a user