option_zeroconf
- accept zeroconf channels only from a single node - fw_info uses get_scid_or_local_alias
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user