<div dir="ltr">Makes sense.. So with that said, I&#39;d propose the following criteria for selecting UTXOs:<div><br></div><div>1. Select the smallest possible set of addresses that can be linked in order to come up with enough BTC to send to the payee.</div><div>2. Given multiple possible sets, select the one that has the largest number of UTXOs.</div><div>3. Given multiple possible sets, choose the one that contains the largest amount of total BTC.</div><div>4. Given multiple possible sets, select the one that destroys the most bitcoin days.</div><div>5. If there&#39;s still multiple possible sets, just choose one at random.</div><div><br></div><div>Once the final set of addresses has been identified, use ALL UTXOs from that set, sending appropriate outputs to the recipient(s), a new change address, and a mining fee.</div><div><br></div><div>Miners should be cognisant of and reward the fact that the user is making an effort to consolidate UTXOs. They can easily spot these transactions by looking at whether all possible UTXOs from each input addresses have been used. Since most miners use Bitcoin Core, and its defaults, this test can be built into Bitcoin Core&#39;s logic for determining which transactions to include when mining a block.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div>--<div><b>James G. Phillips IV</b> <a href="https://plus.google.com/u/0/113107039501292625391/posts" style="font-size:x-small" target="_blank"><img src="https://ssl.gstatic.com/images/icons/gplus-16.png"></a> <a href="http://www.linkedin.com/in/ergophobe" target="_blank"><img src="http://developer.linkedin.com/sites/default/files/LinkedIn_Logo16px.png"></a></div></div><div><font size="1"><i>&quot;Don&#39;t bunt. Aim out of the ball park. Aim for the company of immortals.&quot; -- David Ogilvy<br></i></font><div><font size="1"><br></font></div></div><div><font size="1"><img src="http://findicons.com/files/icons/1156/fugue/16/leaf.png"> <em style="background-color:rgb(255,255,255);font-family:verdana,geneva,sans-serif;line-height:16px;color:green">This message was created with 100% recycled electrons. Please think twice before printing.</em></font></div></div></div>
<br><div class="gmail_quote">On Sat, May 9, 2015 at 3:38 PM, Pieter Wuille <span dir="ltr">&lt;<a href="mailto:pieter.wuille@gmail.com" target="_blank">pieter.wuille@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Miners do not care about the age of a UTXO entry, apart for two exceptions. It is also economically irrelevant.<br>
* There is a free transaction policy, which sets a small portion of block space aside for transactions which do not pay sufficient fee. This is mostly an altruistic way of encouraging Bitcoin adoption. As a DoS prevention mechanism, there is a requirement that these free transactions are of sufficient priority (computed as BTC-days-destroyed per byte), essentially requiring these transactions to consume another scarce resource, even if not money.<br>
* Coinbase transaction outputs can, as a consensus rule, only be spent after 100 confirmations. This is to prevent random reorganisations from invalidating transactions that spend young coinbase transactions (which can&#39;t move to the new chain). In addition, wallets also select more confirmed outputs first to consume, for the same reason.</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On May 9, 2015 1:20 PM, &quot;Raystonn&quot; &lt;<a href="mailto:raystonn@hotmail.com" target="_blank">raystonn@hotmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">That policy is included in Bitcoin Core.  Miners use it because it is the default.  The policy was likely intended to help real transactions get through in the face of spam.  But it favors those with more bitcoin, as the priority is determined by amount spent multiplied by age of UTXOs.  At the very least the amount spent should be removed as a factor, or fees are unlikely to ever be paid by those who can afford them.  We can reassess the role age plays later.  One change at a time is better.<br>
</p>
<div class="gmail_quote">On 9 May 2015 12:52 pm, Jim Phillips &lt;<a href="mailto:jim@ergophobia.org" target="_blank">jim@ergophobia.org</a>&gt; wrote:<br type="attribution"><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>On Sat, May 9, 2015 at 2:43 PM, Raystonn <span dir="ltr">&lt;<a href="mailto:raystonn@hotmail.com" target="_blank">raystonn@hotmail.com</a>&gt;</span> wrote:<br></div></div></div><div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(80,0,80);font-size:12.8000001907349px">How about this as a happy medium default policy: Rather than select UTXOs based solely on age and limiting the size of the transaction, we select as many UTXOs as possible from as few addresses as possible, prioritizing which addresses to use based on the number of UTXOs it contains (more being preferable) and how old those UTXOs are (in order to reduce the fee)? </span></blockquote><p dir="ltr">If selecting older UTXOs gives higher priority for a lesser (or at least not greater) fee, that is an incentive for a rational user to use the older UTXOs.  Such policy needs to be defended or removed.  It doesn&#39;t support privacy or a reduction in UTXOs.</p></blockquote><div>Before starting this thread, I had completely forgotten that age was even a factor in determining which UTXOs to use. Frankly, I can&#39;t think of any reason why miners care how old a particular UTXO is when determining what fees to charge. I&#39;m sure there is one, I just don&#39;t know what it is. I just tossed it in there as homage to Andreas who pointed out to me that it was still part of the selection criteria.</div></div></div></div>
</blockquote></div></blockquote></div>
</div></div></blockquote></div><br></div>