decred / dcrticketbuyer

An automated smart ticket purchaser.
0 stars 7 forks source link

buy tickets in the first possible block #66

Open raedah opened 7 years ago

raedah commented 7 years ago

Referencing this comment that suggested it, https://github.com/decred/dcrd/issues/394#issuecomment-251827150

"The way to fix this would be to make a new ticket buying mode in wallet that slightly overpays and creates a number of outputs based on the max estimated ticket difficulty before the new difficulty block is mined, and then spends those outputs immediate and gives change back to the wallet."

raedah commented 7 years ago

Another consequence of the current behavior is that dcrticketbuyer is not actually bidding for slots in the next block, but for the block after the next. This is because it will always take 2 blocks for a ticket purchase to go through.