lnwallet: for rbf coop close, log the close tx

This commit is contained in:
Olaoluwa Osuntokun committed 2024-12-10 23:07:02 +01:00
1 parent b94ce6fa08
commit b8cf5ae98f
7 files changed
+11 -21

No files matched your search

+3 -3
View File
@@ -8264,7 +8264,7 @@ func WithCustomLockTime(lockTime uint32) ChanCloseOpt {
// returned.
func (lc *LightningChannel) CreateCloseProposal(proposedFee btcutil.Amount,
localDeliveryScript []byte, remoteDeliveryScript []byte,
closeOpts ...ChanCloseOpt) (input.Signature, *chainhash.Hash,
closeOpts ...ChanCloseOpt) (input.Signature, *wire.MsgTx,
btcutil.Amount, error) {
lc.Lock()
@@ -8364,8 +8364,8 @@ func (lc *LightningChannel) CreateCloseProposal(proposedFee btcutil.Amount,
}
}
closeTXID := closeTx.TxHash()
return sig, &closeTXID, ourBalance, nil
return sig, closeTx, ourBalance, nil
}
// CompleteCooperativeClose completes the cooperative closure of the target