Which inputs will be spent?

5

1

Say someone holds 100,000 btc. Over time, this address has been spammed with dust by numerous parties.

Now, the oldest funds come from the previous large transaction. If the dust is, say 0.0000101 btc, can someone send this exact amount elsewhere and get rid of the dust? Or will the client get the oldest inputs and spend the dust from there?

linhares

Posted 2015-11-10T03:49:00.800

Reputation: 391

Why the bitcoin-xt tag? AFAIK, coin selection is the same between XT/Core. – Nick ODell – 2015-11-10T03:57:35.043

I figure some people might be looking at that tag specifically. – linhares – 2015-11-10T05:09:47.497

Answers

5

Bitcoin Core doesn't use an oldest-first selection but a more complex solver, it will probably end up spending outputs you don't want to in this particular case. You can do manual selection of the outputs you want to spend using the Coin Control section of the advanced GUI, which will let you ignore the dust if you don't want to spend it.

Bitcoin Core Output Selection

Anonymous

Posted 2015-11-10T03:49:00.800

Reputation: 12 846

I'm new to bitcoin, but the question is about which inputs will be spent, so I think you have to change the 'outputs' with 'inputs', or is it interchangeable in this context? – croraf – 2017-10-21T12:02:43.847

They’re two words for the same thing, inputs are outputs being spent. – Anonymous – 2017-10-22T08:44:10.597

Inputs of the current transaction are some of the unspent outputs from previous transactions? In the picture the list is the list of unspent outputs, and checked ones will be used as inputs for current transaction? – croraf – 2017-10-22T08:56:10.500

That is correct. – Anonymous – 2017-10-22T09:18:16.770

1

Depends on the software. You can construct a transaction that spends whichever utxos you want, so yes, you can send someone the exact amount of the sum of dust transactions. As for the transaction fee, the network may or may not relay, but even there, you may be able to get a friendly miner to mine it.

Jimmy Song

Posted 2015-11-10T03:49:00.800

Reputation: 7 330

2The question seems to be specifically asking about the behavior of Bitcoin Core and/or XT. – Nate Eldredge – 2015-11-10T04:34:01.017