GambleCoin-Project / GambleCoin

GambleCoin (GMCN) Official Core Project
http://www.gamblecoin-info.com/
MIT License
5 stars 6 forks source link

Autocombine "Defrag" #26

Closed CaveSpectre11 closed 5 years ago

CaveSpectre11 commented 5 years ago

Changed the autocombine functionality to redefine the behavior when the threshold is set to zero. Instead of a zero threshold combining two small specs of dust; it now will combine the whole wallet, up to the transaction limit.

In other words; if there's 2000 UTXOs in the wallet, it will combine the first 630ish. On subsequent passes it will combine the next set, and the next set; until it's all combined.

If using it as a single shot: setautocombinerewards true 0 0 It will run it once and combine what it can, and then run it every time you start the wallet.

If you want to set it to combine once per day (presuming the wallet is open when the block occurs): setautocombinerewards true 0 800

Or once per week: setautocombinerewards true 0 5600

This change also increases the max limit from 100k bytes to 200k bytes.