Skip to content

Commit

Permalink
adjusted code to for nosec
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Oct 4, 2023
1 parent e2b72f7 commit 0d38643
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zetaclient/bitcoin_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,10 +667,9 @@ func (ob *BitcoinChainClient) refreshPendingNonce() {
pendingNonce := ob.pendingNonce
ob.mu.Unlock()

// #nosec G701 always positive
// #nosec G701 always non-negative
nonceLow := uint64(p.NonceLow)

if nonceLow > 0 && nonceLow > pendingNonce {
if nonceLow > pendingNonce {
// get the last included outTx hash
txid, err := ob.getOutTxidByNonce(nonceLow-1, false)
if err != nil {
Expand Down

0 comments on commit 0d38643

Please sign in to comment.