1
0

open_channel_with_peer: return funding tx

(this makes things easier the just_in_time_channels branch)
This commit is contained in:
ThomasV
2023-10-09 16:54:14 +02:00
parent 2f8325ca09
commit 57c9059cab
2 changed files with 2 additions and 2 deletions

View File

@@ -1141,7 +1141,7 @@ class Commands:
funding_sat = satoshis(amount)
push_sat = satoshis(push_amount)
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()
@command('')

View File

@@ -1232,7 +1232,7 @@ class LNWallet(LNWorker):
funding_sat=funding_sat,
push_sat=push_sat,
password=password)
return chan
return chan, funding_tx
@log_exceptions
async def _open_channel_coroutine(