Skip to content

Commit

Permalink
Remove unused const for ticket purchasing (btcsuite#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlyp authored Jun 28, 2016
1 parent cac22c3 commit c6a592b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions wallet/chainntfns.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ import (
"github.com/decred/dcrwallet/wtxmgr"
)

const (
// ticketPurchaseAttemptsPerBlock is the default number of ticket
// purchase attempts per block.
ticketPurchaseAttemptsPerBlock = 10
)

// handleChainNotifications is the major chain notification handler that
// receives websocket notifications about the blockchain.
func (w *Wallet) handleChainNotifications() {
Expand Down Expand Up @@ -117,10 +111,6 @@ ticketPurchaseLoop:
break
}

if attempts >= ticketPurchaseAttemptsPerBlock {
break
}

_, err := w.CreatePurchaseTicket(minBalance,
maxToPay,
0, // No minconf
Expand Down

0 comments on commit c6a592b

Please sign in to comment.