Why is utxo time a priority for miners?

2

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?

Haddar Macdasi

Posted 2015-05-08T17:36:13.323

Reputation: 930

Answers

3

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.

Nate Eldredge

Posted 2015-05-08T17:36:13.323

Reputation: 22 182

One more thing: Isn't the coin age the best deterrent against the free spamming the blockchain? – linhares – 2015-05-09T00:23:17.057

@linhares Yes and no. You're assuming that spamming the blockchain is "impulsive": a little planning would circumvent this. – Wizard Of Ozzie – 2015-05-09T01:56:01.773