From 9958f45de8fd2bed543b4bb8c3f8540ad31595d2 Mon Sep 17 00:00:00 2001 From: RafilxTenfen Date: Mon, 25 Nov 2024 21:44:20 -0300 Subject: [PATCH] chore: remove go routine of mine empty blocks --- itest/e2e_test.go | 2 +- staker/stakerapp.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/itest/e2e_test.go b/itest/e2e_test.go index c995f68..232c49f 100644 --- a/itest/e2e_test.go +++ b/itest/e2e_test.go @@ -967,7 +967,7 @@ func TestStakeFromPhase1(t *testing.T) { params, err := cl.Params() require.NoError(t, err) - go tm.mineNEmptyBlocks(t, params.ConfirmationTimeBlocks, true) + tm.mineNEmptyBlocks(t, params.ConfirmationTimeBlocks, true) tm.waitForStakingTxState(t, txHash, proto.TransactionState_SENT_TO_BABYLON) pend, err := tm.BabylonClient.QueryPendingBTCDelegations() diff --git a/staker/stakerapp.go b/staker/stakerapp.go index edb13ec..d1940ab 100644 --- a/staker/stakerapp.go +++ b/staker/stakerapp.go @@ -544,7 +544,6 @@ func (app *App) SendPhase1Transaction( } req := newMigrateStakingCmd(stakerAddr, notifierTx, parsedStakingTx, pop) - utils.PushOrQuit[*migrateStakingCmd]( app.migrateStakingCmd, req, @@ -1505,7 +1504,6 @@ func (app *App) handleStakingCommands() { } stakingTxHash, err := app.handleStakingCmd(cmd) - if err != nil { utils.PushOrQuit( cmd.errChan, @@ -1520,6 +1518,7 @@ func (app *App) handleStakingCommands() { ) } app.logStakingEventProcessed(cmd) + case cmd := <-app.migrateStakingCmd: if err := app.txTracker.AddTransactionSentToBTC( cmd.notifierTx.Tx,