mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
sweep: remove unused param testSpendChan
This commit is contained in:
parent
fd922942a7
commit
124d1764f7
@ -302,8 +302,6 @@ type UtxoSweeper struct {
|
||||
// requested to sweep.
|
||||
pendingInputs pendingInputs
|
||||
|
||||
testSpendChan chan wire.OutPoint
|
||||
|
||||
currentOutputScript []byte
|
||||
|
||||
relayFeeRate chainfee.SatPerKWeight
|
||||
@ -1534,11 +1532,6 @@ func (s *UtxoSweeper) handleExistingInput(input *sweepInputMessage,
|
||||
// handleInputSpent takes a spend event of our input and updates the sweeper's
|
||||
// internal state to remove the input.
|
||||
func (s *UtxoSweeper) handleInputSpent(spend *chainntnfs.SpendDetail) {
|
||||
// For testing purposes.
|
||||
if s.testSpendChan != nil {
|
||||
s.testSpendChan <- *spend.SpentOutPoint
|
||||
}
|
||||
|
||||
// Query store to find out if we ever published this tx.
|
||||
spendHash := *spend.SpenderTxHash
|
||||
isOurTx, err := s.cfg.Store.IsOurTx(spendHash)
|
||||
|
Loading…
x
Reference in New Issue
Block a user