Bitcoin Forum

Other => Beginners & Help => Topic started by: erpbridge on June 10, 2017, 08:08:10 PM



Title: How can a transaction like this happen before confirming ?
Post by: erpbridge on June 10, 2017, 08:08:10 PM
So I saw this transaction today

https://i.imgur.com/2cX6VT0.png

And the money left the address right after it arrived there without any confirmation .

How is this possible ? Doesn't it need to confirm before that address can send it ?


Title: Re: How can a transaction like this happen before confirming ?
Post by: achow101 on June 10, 2017, 08:51:07 PM
No, a transaction does not need to be confirmed before another one can be created that spends from it. There is no consensus or network rule that prevents you from spending from an unconfirmed output. However, most wallet software will prevent you from doing so as it can potentially lead to a loss of funds. But just because wallet software limits it does not mean that it cannot be done.


Title: Re: How can a transaction like this happen before confirming ?
Post by: erpbridge on June 10, 2017, 09:19:59 PM
No, a transaction does not need to be confirmed before another one can be created that spends from it. There is no consensus or network rule that prevents you from spending from an unconfirmed output. However, most wallet software will prevent you from doing so as it can potentially lead to a loss of funds. But just because wallet software limits it does not mean that it cannot be done.

Well thank you. I always used to think that it was built in. Didn't know it was just the wallets preventing from creating a transaction when there was an unconfirmed one.

So if it turns out to be a double spend, then the whole transaction would disappear i suppose ?



Title: Re: How can a transaction like this happen before confirming ?
Post by: achow101 on June 10, 2017, 09:22:46 PM
Well thank you. I always used to think that it was built in. Didn't know it was just the wallets preventing from creating a transaction when there was an unconfirmed one.

So if it turns out to be a double spend, then the whole transaction would disappear i suppose ?
Yes. If the first transaction is invalidated by a double spend which confirms, then any transaction which spent from it is also invalidated. This can also happen if the first unconfirmed transaction pays too low of a fee and is "forgotten" by the network. The network will "forget" the second transaction too since they don't "remember" the first one.