<p>First of all, this is a slight oversimplification: after taking transactions with fees, the standard policy is that priorities of remaining transactions are weighted by age and amount transacted.  For each input to the transaction, the age of the input being spent (counted by number of confirmations) is multiplied by the bitcoin amount of the input, and the result is summed over all inputs to get the priority of the transaction.  So a large-value transaction spending a fairly recent input might get higher priority than a very small-value transaction spending an old input.</p>

<p>There's certainly no requirement for any given miner to follow this policy (miners have complete freedom as to which valid transactions they include in their blocks), nor is there any direct financial incentive for them to do so.  However, there are a few indirect incentives.</p>

<ul>
<li><p>The policy described above is the default behavior of Bitcoin Core.  A miner who is willing to use this policy can use Bitcoin Core for their transaction processing, rather than having to spend time and money to find or develop some other software.</p></li>
<li><p>Since miners are out to earn bitcoins, they have an incentive to behave in ways that help make the currency convenient and desirable for people to use, since that should increase adoption of the currency and ultimately increase the value of a bitcoin.  So if they believe this policy is helpful to the community as a whole, it is in their interest to use it.  Even if they are not sure this policy is inherently the best, there is some benefit in using it simply because it is standard; it is good for the currency's transaction processing to behave consistently, so that users know what to expect.</p></li>
</ul>

CC BY-SA 3.0
2015-05-09T00:23:17.057Z
One more thing:  Isn't the coin age the best deterrent against the free spamming the blockchain?
linhares
CC BY-SA 3.0
2015-05-09T01:56:01.773Z
@linhares Yes and no. You're assuming that spamming the blockchain is "impulsive": a little planning would circumvent this.
Wizard Of Ozzie
CC BY-SA 3.0
2015-05-08T18:45:51.463Z
2015-05-08T18:45:51.463Z
Nate Eldredge
<p>I've understood (maybe mistakenly) that once free transactions arrived to be collected into new block the miner will prioritize them by fee, then by maturity, meaning will take the transaction with the oldest inputs. Why?<br>
What kind of incentive does the miner have to do so?</p>

<utxo><transaction-selection><coin-age-priority>
Why is utxo time a priority for miners?
Haddar Macdasi
# Why is utxo time a priority for miners?

(Asked by: username_0 on 2015-05-08)

I've understood (maybe mistakenly) that once free transactions arrived to be collected into new block the miner will prioritize them by fee, then by maturity, meaning will take the transaction with the oldest inputs. Why?  
What kind of incentive does the miner have to do so?

**Tags:** utxo, transaction-selection, coin-age-priority


---

## 1 answers

### Answer by username_1 on 2015-05-08. Score: 3 | Accepted answer

First of all, this is a slight oversimplification: after taking transactions with fees, the standard policy is that priorities of remaining transactions are weighted by age and amount transacted. For each input to the transaction, the age of the input being spent (counted by number of confirmations) is multiplied by the bitcoin amount of the input, and the result is summed over all inputs to get the priority of the transaction. So a large-value transaction spending a fairly recent input might get higher priority than a very small-value transaction spending an old input.

There's certainly no requirement for any given miner to follow this policy (miners have complete freedom as to which valid transactions they include in their blocks), nor is there any direct financial incentive for them to do so. However, there are a few indirect incentives.

* The policy described above is the default behavior of Bitcoin Core. A miner who is willing to use this policy can use Bitcoin Core for their transaction processing, rather than having to spend time and money to find or develop some other software.
* Since miners are out to earn bitcoins, they have an incentive to behave in ways that help make the currency convenient and desirable for people to use, since that should increase adoption of the currency and ultimately increase the value of a bitcoin. So if they believe this policy is helpful to the community as a whole, it is in their interest to use it. Even if they are not sure this policy is inherently the best, there is some benefit in using it simply because it is standard; it is good for the currency's transaction processing to behave consistently, so that users know what to expect.

> **Comments:**
> **username_2**: One more thing:  Isn't the coin age the best deterrent against the free spamming the blockchain?  
> **username_3**: @username_2 Yes and no. You're assuming that spamming the blockchain is "impulsive": a little planning would circumvent this.  

---

