follow-up db invoice unification:
- fix command line - deprecate add_lightning_request
This commit is contained in:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user