Skip to content

Commit

Permalink
swap: remove Receiving nodes label attempts
Browse files Browse the repository at this point in the history
Receiving nodes should not attempt to apply a label to this transaction
that is not being tracked by the receiving node
  • Loading branch information
YusukeShimizu committed Feb 15, 2024
1 parent 22c7144 commit 143f487
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions swap/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,15 +734,6 @@ func (p *ValidateTxAndPayClaimInvoiceAction) Execute(services *SwapServices, swa
if !ok {
return swap.HandleError(errors.New("tx is not valid"))
}
txId, err := validator.TxIdFromHex(swap.OpeningTxHex)
if err != nil {
return swap.HandleError(err)
}
err = wallet.LabelTransaction(txId, labels.Opening(swap.GetId().Short()))
if err != nil {
log.Infof("Error labeling transaction. txid: %s, label: %s, error: %v",
txId, labels.Opening(swap.GetId().Short()), err)
}

var retryTime time.Duration = 120 * time.Second
var interval time.Duration = 10 * time.Second
Expand Down

0 comments on commit 143f487

Please sign in to comment.