1
0

lnworker: make calc_routing_hints_for_invoice and create_invoice non-async

This commit is contained in:
ThomasV
2022-03-29 17:42:04 +02:00
parent 634611272a
commit cb39bbbd94
3 changed files with 25 additions and 37 deletions

View File

@@ -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')