Skip to content

Commit

Permalink
skip some more recent garbage outTx trackers
Browse files Browse the repository at this point in the history
  • Loading branch information
ws4charlie committed Oct 27, 2023
1 parent 655db43 commit 0a45114
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions x/emissions/types/events.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions zetaclient/evm_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,9 @@ func (ob *EVMChainClient) IsSendOutTxProcessed(sendHash string, nonce uint64, co

// The lowest nonce we observe outTx for each chain
var lowestOutTxNonceToObserve = map[int64]uint64{
5: 70000, // Goerli
97: 95000, // BSC testnet
80001: 120000, // Mumbai
5: 110900, // Goerli
97: 102200, // BSC testnet
80001: 153000, // Mumbai
}

// FIXME: there's a chance that a txhash in OutTxChan may not deliver when Stop() is called
Expand Down Expand Up @@ -556,7 +556,7 @@ func (ob *EVMChainClient) queryTxByHash(txHash string, nonce uint64) (*ethtypes.
receipt, err := ob.EvmClient.TransactionReceipt(ctxt, ethcommon.HexToHash(txHash))
if err != nil {
if err != ethereum.NotFound {
logger.Warn().Err(err).Msg("TransactionReceipt/TransactionByHash error")
logger.Warn().Err(err).Msgf("TransactionReceipt/TransactionByHash error, txHash %s", txHash)
}
return nil, nil, err
}
Expand Down

0 comments on commit 0a45114

Please sign in to comment.