open_channel_with_peer: return funding tx
(this makes things easier the just_in_time_channels branch)
This commit is contained in:
@@ -1141,7 +1141,7 @@ class Commands:
|
|||||||
funding_sat = satoshis(amount)
|
funding_sat = satoshis(amount)
|
||||||
push_sat = satoshis(push_amount)
|
push_sat = satoshis(push_amount)
|
||||||
peer = await wallet.lnworker.add_peer(connection_string)
|
peer = await wallet.lnworker.add_peer(connection_string)
|
||||||
chan = await wallet.lnworker.open_channel_with_peer(peer, funding_sat, push_sat, password)
|
chan, funding_tx = await wallet.lnworker.open_channel_with_peer(peer, funding_sat, push_sat, password)
|
||||||
return chan.funding_outpoint.to_str()
|
return chan.funding_outpoint.to_str()
|
||||||
|
|
||||||
@command('')
|
@command('')
|
||||||
|
|||||||
@@ -1232,7 +1232,7 @@ class LNWallet(LNWorker):
|
|||||||
funding_sat=funding_sat,
|
funding_sat=funding_sat,
|
||||||
push_sat=push_sat,
|
push_sat=push_sat,
|
||||||
password=password)
|
password=password)
|
||||||
return chan
|
return chan, funding_tx
|
||||||
|
|
||||||
@log_exceptions
|
@log_exceptions
|
||||||
async def _open_channel_coroutine(
|
async def _open_channel_coroutine(
|
||||||
|
|||||||
Reference in New Issue
Block a user