Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Sep 20, 2024
1 parent 7753e04 commit f7c4a7c
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions submitter/relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/lightningnetwork/lnd/kvdb"
"math"
"strconv"
"strings"
"time"

"github.com/babylonlabs-io/babylon/btctxformatter"
Expand Down Expand Up @@ -298,20 +297,6 @@ func (rl *Relayer) resendSecondTxOfCheckpointToBTC(tx2 *types.BtcTxInfo, bumpedF
return tx2, nil
}

func (rl *Relayer) inMempool() (bool, error) {
_, err := rl.GetRawTransaction(rl.lastSubmittedCheckpoint.Tx2.TxId)
if err != nil {
if strings.Contains(err.Error(), TxNotFoundErr.Error()) {
return false, nil
}
// Return the error if it's not a "not found" error
return false, err
}

// the transaction is in the mempool
return true, nil
}

// calcMinRelayFee returns the minimum transaction fee required for a
// transaction with the passed serialized size to be accepted into the memory
// pool and relayed.
Expand Down

0 comments on commit f7c4a7c

Please sign in to comment.