Skip to content

Commit

Permalink
chore: remove go routine of mine empty blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Nov 26, 2024
1 parent 8be6baf commit 9958f45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion itest/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 1 addition & 2 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,6 @@ func (app *App) SendPhase1Transaction(
}

req := newMigrateStakingCmd(stakerAddr, notifierTx, parsedStakingTx, pop)

utils.PushOrQuit[*migrateStakingCmd](
app.migrateStakingCmd,
req,
Expand Down Expand Up @@ -1505,7 +1504,6 @@ func (app *App) handleStakingCommands() {
}

stakingTxHash, err := app.handleStakingCmd(cmd)

if err != nil {
utils.PushOrQuit(
cmd.errChan,
Expand All @@ -1520,6 +1518,7 @@ func (app *App) handleStakingCommands() {
)
}
app.logStakingEventProcessed(cmd)

case cmd := <-app.migrateStakingCmd:
if err := app.txTracker.AddTransactionSentToBTC(
cmd.notifierTx.Tx,
Expand Down

0 comments on commit 9958f45

Please sign in to comment.