lnwallet: make fundingTxIn not depend on LightningWallet

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

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(),
)