Bitcoin Forum
May 05, 2024, 06:36:05 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Transaction that depends on unconfirmed transaction  (Read 1289 times)
gst (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
June 15, 2011, 02:22:39 PM
 #1

So i just did something stupid while playing around with the client. Essentially I did several things, but I guess the combination of those two things triggered the problem:

I've sent the smallest possible amount of Bitcoins to myself - without paying a transaction fee. So this transaction is currently unconfirmed and most likely never will get confirmed.

At some later point I've sent all the Bitcoins I have minus the required transaction fee to myself. Luckily I don't have that many Bitcoins. So I paid a transaction fee for this second transaction but it doesn't get confirmed.

I think the reason for this problem is that the second transaction depends on the first transaction (as it needs to use all available inputs), but the other clients consider the second transaction invalid because they have not seen the first transaction yet. As long as this is the case, all further transactions will also stay unconfirmed.

So what is the best way to get my Bitcoins back? Can I just start over from yesterday's wallet backup? Or does this just make things worse?

And can I remove the unconfirmed transactions from my .bitcoin directory without removing the whole blockchain? Or should I remove everything and just copy back the wallet?
1714934165
Hero Member
*
Offline Offline

Posts: 1714934165

View Profile Personal Message (Offline)

Ignore
1714934165
Reply with quote  #2

1714934165
Report to moderator
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
gst (OP)
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
June 15, 2011, 03:04:53 PM
Last edit: June 15, 2011, 03:35:18 PM by gst
 #2

Ok - so I just did exactly what I've written in my previous post: Restored the old wallet.dat and moved all my coins to one of my own addresses to invalidate the unconfirmed transactions (in case they get forwarded to a miner).

This new transaction now made it into the blockchain, but according to my client the transaction is still unconfirmed: "5/unconfirmed". Should I just wait some time, or does my own client not accept the transaction as it has already seen (and somewhere cached) the unconfirmed transactions?

EDIT: Transaction seems to be confirmed now - so it worked.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!