1
0

follow-up db invoice unification:

- fix command line
 - deprecate add_lightning_request
This commit is contained in:
ThomasV
2022-03-29 14:07:53 +02:00
parent 7102fb732e
commit bf4455ef30
3 changed files with 16 additions and 22 deletions

View File

@@ -913,15 +913,10 @@ class Commands:
return False
amount = satoshis(amount)
expiration = int(expiration) if expiration else None
req = wallet.create_request(amount, memo, expiration, addr, False)
key = wallet.create_request(amount, memo, expiration, addr, True)
req = wallet.get_request(key)
return wallet.export_request(req)
@command('wnl')
async def add_lightning_request(self, amount, memo='', expiration=3600, wallet: Abstract_Wallet = None):
amount_sat = int(satoshis(amount))
key = wallet.lnworker.add_request(amount_sat, memo, expiration)
return wallet.get_formatted_request(key)
@command('w')
async def addtransaction(self, tx, wallet: Abstract_Wallet = None):
""" Add a transaction to the wallet history """