1
0

option_zeroconf

- accept zeroconf channels only from a single node
 - fw_info uses get_scid_or_local_alias
This commit is contained in:
ThomasV
2023-08-08 05:09:58 +02:00
parent 96e143b6c3
commit 816e617aaf
6 changed files with 52 additions and 8 deletions

View File

@@ -1137,7 +1137,7 @@ class Commands:
} for p in lnworker.peers.values()]
@command('wpnl')
async def open_channel(self, connection_string, amount, push_amount=0, public=False, password=None, wallet: Abstract_Wallet = None):
async def open_channel(self, connection_string, amount, push_amount=0, public=False, zeroconf=False, password=None, wallet: Abstract_Wallet = None):
funding_sat = satoshis(amount)
push_sat = satoshis(push_amount)
peer = await wallet.lnworker.add_peer(connection_string)
@@ -1145,6 +1145,7 @@ class Commands:
peer, funding_sat,
push_sat=push_sat,
public=public,
zeroconf=zeroconf,
password=password)
return chan.funding_outpoint.to_str()
@@ -1449,6 +1450,7 @@ command_options = {
'force': (None, "Create new address beyond gap limit, if no more addresses are available."),
'pending': (None, "Show only pending requests."),
'push_amount': (None, 'Push initial amount (in BTC)'),
'zeroconf': (None, 'request zeroconf channel'),
'expired': (None, "Show only expired requests."),
'paid': (None, "Show only paid requests."),
'show_addresses': (None, "Show input and output addresses"),