lnwallet: remove unused initiator param to CreateCooperativeCloseTx
This commit is contained in:
parent
2c46640dd0
commit
f0019006a7
@ -5910,10 +5910,11 @@ func (lc *LightningChannel) CreateCloseProposal(proposedFee btcutil.Amount,
|
||||
theirBalance = theirBalance - proposedFee + commitFee
|
||||
}
|
||||
|
||||
closeTx := CreateCooperativeCloseTx(lc.fundingTxIn(),
|
||||
lc.localChanCfg.DustLimit, lc.remoteChanCfg.DustLimit,
|
||||
ourBalance, theirBalance, localDeliveryScript,
|
||||
remoteDeliveryScript, lc.channelState.IsInitiator)
|
||||
closeTx := CreateCooperativeCloseTx(
|
||||
lc.fundingTxIn(), lc.localChanCfg.DustLimit,
|
||||
lc.remoteChanCfg.DustLimit, ourBalance, theirBalance,
|
||||
localDeliveryScript, remoteDeliveryScript,
|
||||
)
|
||||
|
||||
// Ensure that the transaction doesn't explicitly violate any
|
||||
// consensus rules such as being too big, or having any value with a
|
||||
@ -5980,10 +5981,11 @@ func (lc *LightningChannel) CompleteCooperativeClose(localSig, remoteSig []byte,
|
||||
// Create the transaction used to return the current settled balance
|
||||
// on this active channel back to both parties. In this current model,
|
||||
// the initiator pays full fees for the cooperative close transaction.
|
||||
closeTx := CreateCooperativeCloseTx(lc.fundingTxIn(),
|
||||
lc.localChanCfg.DustLimit, lc.remoteChanCfg.DustLimit,
|
||||
ourBalance, theirBalance, localDeliveryScript,
|
||||
remoteDeliveryScript, lc.channelState.IsInitiator)
|
||||
closeTx := CreateCooperativeCloseTx(
|
||||
lc.fundingTxIn(), lc.localChanCfg.DustLimit,
|
||||
lc.remoteChanCfg.DustLimit, ourBalance, theirBalance,
|
||||
localDeliveryScript, remoteDeliveryScript,
|
||||
)
|
||||
|
||||
// Ensure that the transaction doesn't explicitly validate any
|
||||
// consensus rules such as being too big, or having any value with a
|
||||
@ -6272,8 +6274,7 @@ func CreateCommitTx(fundingOutput wire.TxIn,
|
||||
// transaction in full.
|
||||
func CreateCooperativeCloseTx(fundingTxIn wire.TxIn,
|
||||
localDust, remoteDust, ourBalance, theirBalance btcutil.Amount,
|
||||
ourDeliveryScript, theirDeliveryScript []byte,
|
||||
initiator bool) *wire.MsgTx {
|
||||
ourDeliveryScript, theirDeliveryScript []byte) *wire.MsgTx {
|
||||
|
||||
// Construct the transaction to perform a cooperative closure of the
|
||||
// channel. In the event that one side doesn't have any settled funds
|
||||
|
Loading…
Reference in New Issue
Block a user