Skip to content

Commit

Permalink
fix: lint removed unused func
Browse files Browse the repository at this point in the history
  • Loading branch information
RafilxTenfen committed Nov 27, 2024
1 parent d0a1c86 commit 5e096b1
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -2044,26 +2044,6 @@ func (app *App) ListUnspentOutputs() ([]walletcontroller.Utxo, error) {
return app.wc.ListOutputs(false)
}

func (app *App) waitForTrackedTransactionState(
txHash chainhash.Hash,
minState proto.TransactionState,
interval time.Duration,
tries uint,
) (storedTx *stakerdb.StoredTransaction, err error) {
err = retry.Do(func() error {
storedTx, err = app.GetStoredTransaction(&txHash)
if err != nil {
return err
}

if storedTx.State < minState {
return fmt.Errorf("txHash %s is at state %s, should be at least %s", txHash.String(), storedTx.State.String(), minState.String())
}
return nil
}, retry.Attempts(tries), retry.Delay(interval))
return storedTx, err
}

func (app *App) waitForSpendConfirmation(stakingTxHash chainhash.Hash, ev *notifier.ConfirmationEvent) {
// check we are not shutting down
select {
Expand Down

0 comments on commit 5e096b1

Please sign in to comment.