When a new transaction is made, the client seems to prefer older coins in the wallet.

What is the rationale for this? Are there any cases where it doesn't make sense to strictly collect coins by age?

2 Answers 2


The Bitcoin.org client only cares about age when a coin is real recent (like in the last day). Any coins older than about a day are all treated equally.

The reason recent coins matter is because the client wants to lessen the chance that legitimate spending would be considered as being spam or a denial of service attack.

If coins were recently received and then are being spent fairly quickly right after the network can't know if that is someone trying to grief the network or if that is a legitimate transaction. But a transaction made with older coins is almost certainly not being used for the purpose of griefing the Bitcoin network.

So then by requiring fees for "spam-like" transactions, if an attacker is griefing the Bitcoin network it is going to have a cost.

That's the extent of it -- a way to make attacking bitcoin expensive while allowing normal, legitimate use to remain low cost or free.

  • I think the client only prefers coins with 6 or more confirmations, which means roughly "an hour or more". In my opinion the client should priorities older coins, but doesn't in fact other than checking for 6 confirmations. It does penalise the use of newer coins by imposing a fee, but doesn't try to avoid the use of such new coins. See the calls of SelectCoinsMinConf() in src/wallet.cpp. Dec 4, 2012 at 4:51

The older a coin is, the less its ownership is disputed.

  • 3
    It's important to note that the notion of a coin as a physical object doesn't really exist. The ownership of a balance is less disputable as the age of the transactions which built it increases.
    – Colin Dean
    Dec 3, 2012 at 1:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.