decred / dcrticketbuyer

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

exceeding max allowed in mempool #24

Closed raedah closed 7 years ago

raedah commented 8 years ago

Tickets are always bought in increments of maxperblock, and buys will exceed maxinmempool. Example: maxperblock = 10, maxinmempool = 12, result, in mempool: 20.

raedah commented 8 years ago

Also with maxperblock=2 maxinmempool=2 "ownmempooltix": 4

raedah commented 8 years ago

related to #32

raedah commented 8 years ago

Off by one bug. "Currently waiting for 1 tickets to enter the blockchain before buying more tickets (in mempool: 10, max allowed in mempool 9)"

If 10 tickets are in the mempool, and the max allows is 10, then it should still be waiting since we are at the max. What would it say? Waiting for 0 tickets?

https://github.com/decred/dcrticketbuyer/blob/master/buyer.go#L531