|
|
|
@ -1159,8 +1159,8 @@ class Commands: |
|
|
|
invoice = Invoice.from_bech32(invoice) |
|
|
|
invoice = Invoice.from_bech32(invoice) |
|
|
|
return invoice.to_debug_json() |
|
|
|
return invoice.to_debug_json() |
|
|
|
|
|
|
|
|
|
|
|
@command('wnl') |
|
|
|
@command('wnpl') |
|
|
|
async def lnpay(self, invoice, timeout=120, wallet: Abstract_Wallet = None): |
|
|
|
async def lnpay(self, invoice, timeout=120, password=None, wallet: Abstract_Wallet = None): |
|
|
|
lnworker = wallet.lnworker |
|
|
|
lnworker = wallet.lnworker |
|
|
|
lnaddr = lnworker._check_invoice(invoice) |
|
|
|
lnaddr = lnworker._check_invoice(invoice) |
|
|
|
payment_hash = lnaddr.paymenthash |
|
|
|
payment_hash = lnaddr.paymenthash |
|
|
|
@ -1255,8 +1255,8 @@ class Commands: |
|
|
|
async def import_channel_backup(self, encrypted, wallet: Abstract_Wallet = None): |
|
|
|
async def import_channel_backup(self, encrypted, wallet: Abstract_Wallet = None): |
|
|
|
return wallet.lnworker.import_channel_backup(encrypted) |
|
|
|
return wallet.lnworker.import_channel_backup(encrypted) |
|
|
|
|
|
|
|
|
|
|
|
@command('wnl') |
|
|
|
@command('wnpl') |
|
|
|
async def get_channel_ctx(self, channel_point, iknowwhatimdoing=False, wallet: Abstract_Wallet = None): |
|
|
|
async def get_channel_ctx(self, channel_point, password=None, iknowwhatimdoing=False, wallet: Abstract_Wallet = None): |
|
|
|
""" return the current commitment transaction of a channel """ |
|
|
|
""" return the current commitment transaction of a channel """ |
|
|
|
if not iknowwhatimdoing: |
|
|
|
if not iknowwhatimdoing: |
|
|
|
raise UserFacingException( |
|
|
|
raise UserFacingException( |
|
|
|
|