@jy-p @davecgh @moo1337 My dcrwallet reads (ticket) max price wrong. I start dcrwallet with (among the rest flags): --ticketbuyer.maxpriceabsolute=56.1 --ticketbuyer.balancetomaintainabsolute=0 --ticketbuyer.balancetomaintainrelative=0 and I get this message: [INF] TKBY: Not buying because max price exceeded: (max price: 53.13271588 DCR, ticket price: 54.08115247 DCR) Then I start it with: --ticketbuyer.maxpriceabsolute=60.1 --ticketbuyer.balancetomaintainabsolute=0 --ticketbuyer.balancetomaintainrelative=0 and I get this message: [INF] TKBY: Not buying because max price exceeded: (max price: 53.13xxxxxx DCR, ticket price: 54.08115247 DCR) - xxxxxx: a little different value than the previous one. Do I miss something or there is a problem with dcrwallet? I am running v1.0.1 on Windows 10 x64. A couple days ago I didn't have such problem with the same setup and version. (max price: = was the exact --ticketbuyer.maxpriceabsolute I set).
You need to set parameter ticketbuyer.maxpricerelative=1.6 or higher. I set it to 2, by default is 1.25. This factor is scaling factor for setting the maximum price, multiplies by the average price so usually need to be over default. But when the maxpricescaling will be adequate you will stumble upon fee problems. I found out that at least ticketbuyer.feetargetscaling and ticketbuyer.minfee need to be seted. If ticketbuyer.minfee stays default 0.01, ticketbuyer will begin to buy new tickets in the first next block when price drops and it was no tickets in mempool before so avareage ticket fee is 0, but it will buy with minfee, that mean tickets would not be mined and they expire after 16 blocks (default value). I useed to buy tickets manualy now since v1.0.1 because ticketbuyer is real PITA and I was not able to tweak it enough to buy tickets automaticaly.