@@ -56,7 +56,7 @@ func (l *TransactionListener) getOrderDetails(orderID string, address btc.Addres
56
56
}
57
57
58
58
// 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 ) {
60
60
61
61
orderId , err := calcOrderId (contract .BuyerOrder )
62
62
if err != nil {
@@ -97,13 +97,13 @@ func (l *TransactionListener) OnTransactionReceived(cb wallet.TransactionCallbac
97
97
//contract, state, funded, records, err := l.db.Sales().GetByPaymentAddress(output.Address)
98
98
if err == nil && state != pb .OrderState_PROCESSING_ERROR {
99
99
l .processSalePayment (cb .Txid , output , contract , state , funded , records )
100
- l .cleanupOrderState (true , output , contract , state , funded , records )
100
+ l .cleanupOrderState (true , contract , state )
101
101
continue
102
102
}
103
103
contract , state , funded , records , err = l .getOrderDetails (output .OrderID , output .Address , false )
104
104
if err == nil {
105
105
l .processPurchasePayment (cb .Txid , output , contract , state , funded , records )
106
- l .cleanupOrderState (false , output , contract , state , funded , records )
106
+ l .cleanupOrderState (false , contract , state )
107
107
continue
108
108
}
109
109
}
0 commit comments