Skip to content

Commit

Permalink
pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 20, 2024
1 parent f7c4a7c commit 4133833
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions submitter/relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,8 @@ func (rl *Relayer) resendSecondTxOfCheckpointToBTC(tx2 *types.BtcTxInfo, bumpedF
}

// No need to resend, transaction already confirmed
if status != btcclient.TxInMemPool && status != btcclient.TxNotFound {
rl.logger.Debugf("Transaction %v is already confirmed or has an unexpected state: %v",
rl.lastSubmittedCheckpoint.Tx2.TxId, status)
if status == btcclient.TxInChain {
rl.logger.Debugf("Transaction %v is already confirmed", rl.lastSubmittedCheckpoint.Tx2.TxId)
return nil, nil
}

Expand Down

0 comments on commit 4133833

Please sign in to comment.