Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 998d61e

Browse files
committed
Fix unused inputs in tx listener
1 parent 43e6e33 commit 998d61e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wallet/listeners/transaction_listener.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func (l *TransactionListener) getOrderDetails(orderID string, address btc.Addres
5656
}
5757

5858
// cleanupOrderState - scan each order to ensure the state in the db matches the state of the contract stored
59-
func (l *TransactionListener) cleanupOrderState(isSale bool, output wallet.TransactionOutput, contract *pb.RicardianContract, state pb.OrderState, funded bool, records []*wallet.TransactionRecord) {
59+
func (l *TransactionListener) cleanupOrderState(isSale bool, contract *pb.RicardianContract, state pb.OrderState) {
6060

6161
orderId, err := calcOrderId(contract.BuyerOrder)
6262
if err != nil {
@@ -97,13 +97,13 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
9797
//contract, state, funded, records, err := l.db.Sales().GetByPaymentAddress(output.Address)
9898
if err == nil && state != pb.OrderState_PROCESSING_ERROR {
9999
l.processSalePayment(cb.Txid, output, contract, state, funded, records)
100-
l.cleanupOrderState(true, output, contract, state, funded, records)
100+
l.cleanupOrderState(true, contract, state)
101101
continue
102102
}
103103
contract, state, funded, records, err = l.getOrderDetails(output.OrderID, output.Address, false)
104104
if err == nil {
105105
l.processPurchasePayment(cb.Txid, output, contract, state, funded, records)
106-
l.cleanupOrderState(false, output, contract, state, funded, records)
106+
l.cleanupOrderState(false, contract, state)
107107
continue
108108
}
109109
}

0 commit comments

Comments
 (0)