Closed raedah closed 7 years ago
Also with maxperblock=2 maxinmempool=2 "ownmempooltix": 4
related to #32
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
Tickets are always bought in increments of maxperblock, and buys will exceed maxinmempool. Example: maxperblock = 10, maxinmempool = 12, result, in mempool: 20.