From b209d09c1e10f4ab33c5e077f4e8c5becb06a46a Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Tue, 8 Oct 2024 13:29:27 +0200 Subject: [PATCH] commands: require wallet password for lnpay, get_channel_ctx commands --- electrum/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/electrum/commands.py b/electrum/commands.py index 68c1c7fdb..5d2cab67d 100644 --- a/electrum/commands.py +++ b/electrum/commands.py @@ -1159,8 +1159,8 @@ class Commands: invoice = Invoice.from_bech32(invoice) return invoice.to_debug_json() - @command('wnl') - async def lnpay(self, invoice, timeout=120, wallet: Abstract_Wallet = None): + @command('wnpl') + async def lnpay(self, invoice, timeout=120, password=None, wallet: Abstract_Wallet = None): lnworker = wallet.lnworker lnaddr = lnworker._check_invoice(invoice) payment_hash = lnaddr.paymenthash @@ -1255,8 +1255,8 @@ class Commands: async def import_channel_backup(self, encrypted, wallet: Abstract_Wallet = None): return wallet.lnworker.import_channel_backup(encrypted) - @command('wnl') - async def get_channel_ctx(self, channel_point, iknowwhatimdoing=False, wallet: Abstract_Wallet = None): + @command('wnpl') + async def get_channel_ctx(self, channel_point, password=None, iknowwhatimdoing=False, wallet: Abstract_Wallet = None): """ return the current commitment transaction of a channel """ if not iknowwhatimdoing: raise UserFacingException(