1
0

use mktx_for_open_channel in commands module. fix indentation

This commit is contained in:
ThomasV
2021-03-12 19:05:25 +01:00
parent 7c2b7ca5c0
commit 018f09f2af
3 changed files with 26 additions and 16 deletions

View File

@@ -984,8 +984,11 @@ class LNWallet(LNWorker):
self.remove_channel(chan.channel_id)
raise
def mktx_for_open_channel(self, *, coins: Sequence[PartialTxInput], funding_sat: int,
fee_est=None) -> PartialTransaction:
def mktx_for_open_channel(
self, *,
coins: Sequence[PartialTxInput],
funding_sat: int,
fee_est=None) -> PartialTransaction:
dummy_address = ln_dummy_address()
outputs = [PartialTxOutput.from_address_and_value(dummy_address, funding_sat)]
tx = self.wallet.make_unsigned_transaction(