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 2ce98c1
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions swap/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ type ValidateTxAndPayClaimInvoiceAction struct{}

func (p *ValidateTxAndPayClaimInvoiceAction) Execute(services *SwapServices, swap *SwapData) EventType {
lc := services.lightning
onchain, wallet, validator, err := services.getOnChainServices(swap.GetChain())
onchain, _, validator, err := services.getOnChainServices(swap.GetChain())
if err != nil {
return swap.HandleError(err)
}
Expand All @@ -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 2ce98c1

Please sign in to comment.