mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 03:01:52 +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.
|
// requested to sweep.
|
||||||
pendingInputs pendingInputs
|
pendingInputs pendingInputs
|
||||||
|
|
||||||
testSpendChan chan wire.OutPoint
|
|
||||||
|
|
||||||
currentOutputScript []byte
|
currentOutputScript []byte
|
||||||
|
|
||||||
relayFeeRate chainfee.SatPerKWeight
|
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
|
// handleInputSpent takes a spend event of our input and updates the sweeper's
|
||||||
// internal state to remove the input.
|
// internal state to remove the input.
|
||||||
func (s *UtxoSweeper) handleInputSpent(spend *chainntnfs.SpendDetail) {
|
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.
|
// Query store to find out if we ever published this tx.
|
||||||
spendHash := *spend.SpenderTxHash
|
spendHash := *spend.SpenderTxHash
|
||||||
isOurTx, err := s.cfg.Store.IsOurTx(spendHash)
|
isOurTx, err := s.cfg.Store.IsOurTx(spendHash)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user