mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 07:35:07 +02:00
multi: fix newly detected linter issues
This commit is contained in:
@@ -529,7 +529,7 @@ func (h *htlcTimeoutResolver) handleCommitSpend(
|
||||
case h.htlcResolution.SignedTimeoutTx != nil:
|
||||
log.Infof("%T(%v): waiting for nursery/sweeper to spend CSV "+
|
||||
"delayed output", h, claimOutpoint)
|
||||
sweep, err := waitForSpend(
|
||||
sweepTx, err := waitForSpend(
|
||||
&claimOutpoint,
|
||||
h.htlcResolution.SweepSignDesc.Output.PkScript,
|
||||
h.broadcastHeight, h.Notifier, h.quit,
|
||||
@@ -539,7 +539,7 @@ func (h *htlcTimeoutResolver) handleCommitSpend(
|
||||
}
|
||||
|
||||
// Update the spend txid to the hash of the sweep transaction.
|
||||
spendTxID = sweep.SpenderTxHash
|
||||
spendTxID = sweepTx.SpenderTxHash
|
||||
|
||||
// Once our sweep of the timeout tx has confirmed, we add a
|
||||
// resolution for our timeoutTx tx first stage transaction.
|
||||
@@ -603,8 +603,8 @@ func (h *htlcTimeoutResolver) report() *ContractReport {
|
||||
|
||||
h.reportLock.Lock()
|
||||
defer h.reportLock.Unlock()
|
||||
copy := h.currentReport
|
||||
return ©
|
||||
cpy := h.currentReport
|
||||
return &cpy
|
||||
}
|
||||
|
||||
func (h *htlcTimeoutResolver) initReport() {
|
||||
|
Reference in New Issue
Block a user