From 259d9117b13aabd283361f1594a31d5b9940e5d5 Mon Sep 17 00:00:00 2001 From: Steve Miskovetz Date: Fri, 23 Aug 2024 11:11:53 -0600 Subject: [PATCH] increase wait time for the first 100 gaia txs to reduce flakiness --- examples/thorchain/chainspec_thorchain.go | 5 ----- examples/thorchain/helper.go | 5 ++++- examples/thorchain/setup.go | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/thorchain/chainspec_thorchain.go b/examples/thorchain/chainspec_thorchain.go index 11b8b0f8c..de750d711 100644 --- a/examples/thorchain/chainspec_thorchain.go +++ b/examples/thorchain/chainspec_thorchain.go @@ -165,11 +165,6 @@ var ( "BIFROST_CHAINS_AVAX_BLOCK_SCANNER_MAX_GAS_LIMIT=80000", "BIFROST_CHAINS_BSC_BLOCK_SCANNER_MAX_GAS_LIMIT=80000", - // enable bsc - //"BIFROST_CHAINS_BSC_DISABLED=false", // todo change to false once brought in - //"BIFROST_CHAINS_BSC_RPC_HOST: ${BSC_HOST:-http://binance-smart:8545} - //"BIFROST_CHAINS_BSC_BLOCK_SCANNER_RPC_HOST: ${BSC_HOST:-http://binance-smart:8545} - // set fixed gas rate for evm chains "BIFROST_CHAINS_ETH_BLOCK_SCANNER_FIXED_GAS_RATE=30000000000", // 30 gwei "BIFROST_CHAINS_AVAX_BLOCK_SCANNER_FIXED_GAS_RATE=100_000_000_000", // 100 navax diff --git a/examples/thorchain/helper.go b/examples/thorchain/helper.go index d279944d2..9b5a0479d 100644 --- a/examples/thorchain/helper.go +++ b/examples/thorchain/helper.go @@ -25,5 +25,8 @@ func GetEthAddressFromStdout(stdout string) (string, error) { func sendFunds(ctx context.Context, keyName string, toAddr string, amount ibc.WalletAmount, val0 *cosmos.ChainNode) { memo := strings.Repeat("Hello World ", 10) command := []string{"bank", "send", keyName, toAddr, fmt.Sprintf("%s%s", amount.Amount.String(), amount.Denom), "--note", memo} - _, _, _ = val0.Exec(ctx, val0.TxCommand(keyName, command...), val0.Chain.Config().Env) + _, _, err := val0.Exec(ctx, val0.TxCommand(keyName, command...), val0.Chain.Config().Env) + if err != nil { + fmt.Println("Gaia send funds err:", err) + } } diff --git a/examples/thorchain/setup.go b/examples/thorchain/setup.go index bda4ad2b6..49d13f67c 100644 --- a/examples/thorchain/setup.go +++ b/examples/thorchain/setup.go @@ -296,7 +296,7 @@ func SetupGaia(t *testing.T, ctx context.Context, exoChain *ExoChain) *errgroup. toUser := exoChain.genWallets[(j+1)%len(exoChain.genWallets)] go sendFunds(ctx, genWallet.KeyName(), toUser.FormattedAddress(), amount, val0) } - err := testutil.WaitForBlocks(ctx, 1, gaia) + err := testutil.WaitForBlocks(ctx, 2, gaia) if err != nil { return err }