From db85efce23271c02ed2faeb00823f05f9eadf28d Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Wed, 29 May 2024 11:19:28 -0500 Subject: [PATCH] revert the log prints for debugging --- e2e/e2etests/test_crosschain_swap.go | 4 ---- e2e/runner/bitcoin.go | 29 ---------------------------- 2 files changed, 33 deletions(-) diff --git a/e2e/e2etests/test_crosschain_swap.go b/e2e/e2etests/test_crosschain_swap.go index 000020a7e2..16f04ab656 100644 --- a/e2e/e2etests/test_crosschain_swap.go +++ b/e2e/e2etests/test_crosschain_swap.go @@ -139,7 +139,6 @@ func TestCrosschainSwap(r *runner.E2ERunner, _ []string) { r.Logger.Info("******* Second test: BTC -> ERC20ZRC20") // Note: the test needs at least 0.1001 BTC utxos := r.ListDeployerUTXOs(1.0) - r.Logger.Print(fmt.Sprintf("There are %d utxos before SendToTSSFromDeployerWithMemo", len(utxos))) r.Logger.Info("#utxos %d", len(utxos)) r.Logger.Info("memo address %s", r.ERC20ZRC20Addr) memo, err := r.ZEVMSwapApp.EncodeMemo(&bind.CallOpts{}, r.ERC20ZRC20Addr, r.DeployerAddress.Bytes()) @@ -149,8 +148,6 @@ func TestCrosschainSwap(r *runner.E2ERunner, _ []string) { memo = append(r.ZEVMSwapAppAddr.Bytes(), memo...) r.Logger.Info("memo length %d", len(memo)) - r.Logger.Print(fmt.Sprintf("SendToTSSFromDeployerWithMemo deploer address: %s\n", r.BTCDeployerAddress)) - r.Logger.Print("SendToTSSFromDeployerWithMemo-1") txID, err := r.SendToTSSFromDeployerWithMemo( r.BTCTSSAddress, 0.01, @@ -199,7 +196,6 @@ func TestCrosschainSwap(r *runner.E2ERunner, _ []string) { memo = append(r.ZEVMSwapAppAddr.Bytes(), memo...) r.Logger.Info("memo length %d", len(memo)) - r.Logger.Print("SendToTSSFromDeployerWithMemo-2") amount := 0.1 txid, err := r.SendToTSSFromDeployerWithMemo( r.BTCTSSAddress, diff --git a/e2e/runner/bitcoin.go b/e2e/runner/bitcoin.go index 13e9993873..19f8796e6a 100644 --- a/e2e/runner/bitcoin.go +++ b/e2e/runner/bitcoin.go @@ -298,35 +298,6 @@ func (runner *E2ERunner) SendToTSSFromDeployerWithMemo( panic(err) } - // print transaction inputs - runner.Logger.Info("SignRawTransactionWithWallet2 input: %+v", inputsForSign) - for _, input := range inputUTXOs { - runner.Logger.Print(" txid: %s", input.TxID) - runner.Logger.Print(" vout: %d", input.Vout) - runner.Logger.Print(" address: %s", input.Address) - runner.Logger.Print(" amount: %f", input.Amount) - runner.Logger.Print(" confirmations: %d", input.Confirmations) - } - - // retry for 10 times if not signed - if !signed { - for i := 0; i < 10; i++ { - runner.Logger.Print(fmt.Sprintf("retrying SignRawTransactionWithWallet2: %d", i+1)) - stx, signed, err = btcRPC.SignRawTransactionWithWallet2(tx, inputsForSign) - if err != nil { - panic(err) - } - if signed { - break - } - time.Sleep(1 * time.Second) - _, err = btcRPC.GenerateToAddress(1, btcDeployerAddress, nil) - if err != nil { - panic(err) - } - } - } - if !signed { panic("btc transaction not signed") }