sweep: remove unused param testSpendChan

This commit is contained in:
yyforyongyu 2024-01-10 02:43:34 +08:00
parent fd922942a7
commit 124d1764f7
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -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)