lnwallet: make fundingTxIn not depend on LightningWallet

This commit is contained in:
Johan T. Halseth committed 2020-01-06 11:42:03 +01:00
1 parent 83e0d47ba3
commit 13a108e578
2 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -213,13 +213,13 @@ func (lc *LightningChannel) createCommitmentTx(c *commitment,
// out HTLCs.
if c.isOurs {
commitTx, err = CreateCommitTx(
lc.fundingTxIn(), keyRing, &lc.channelState.LocalChanCfg,
fundingTxIn(lc.channelState), keyRing, &lc.channelState.LocalChanCfg,
&lc.channelState.RemoteChanCfg, ourBalance.ToSatoshis(),
theirBalance.ToSatoshis(),
)
} else {
commitTx, err = CreateCommitTx(
lc.fundingTxIn(), keyRing, &lc.channelState.RemoteChanCfg,
fundingTxIn(lc.channelState), keyRing, &lc.channelState.RemoteChanCfg,
&lc.channelState.LocalChanCfg, theirBalance.ToSatoshis(),
ourBalance.ToSatoshis(),
)