Bitcoin Forum
December 03, 2016, 06:02:49 PM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Bug: "Immature" coins lost in wallet.dat during transaction  (Read 2350 times)
Dybbuk
Newbie
*
Offline Offline

Activity: 16


View Profile
July 30, 2010, 04:39:16 PM
 #1

Howdy,

I am running R119 on a Linux box, and last night was fortunate enough to solve a block and get 50 BTC.  Hooray, right?  Well, I tried to send 30 BTC before they were "mature" (i.e. before the 100+ block mark had passed), and so of course bitcoind reported an error.  However, it also marked those 30 coins as spent, so not only was no transaction created, but the coins aren't usable by me at the moment.

Here is the relevant bit from my debug.log:

ThreadRPCServer method=sendtoaddress
CommitTransaction:
CTransaction(hash=cf3bee, ver=1, vin.size=1, vout.size=2, nLockTime=0)
    CTxIn(COutPoint(e9894c, 0), scriptSig=0x014866DE7A1889014BAC9A)
    CTxOut(nValue=20.00000000, scriptPubKey=OP_DUP OP_HASH160 0x01BA)
    CTxOut(nValue=30.00000000, scriptPubKey=OP_DUP OP_HASH160 0x3F3A)
AddToWallet cf3bee  new
CommitTransaction() : Error: Transaction not validreceived: addr (27 bytes)
07/30/10 15:27:00 Flushing wallet.dat
Flushed wallet.dat 1ms

So my wallet started with 50.01 BTC in it (the 0.01 was just a test I'd run the other day from one machine to another), and now my wallet just has 20.01 BTC in it.  I'm a little sad---I was excited about generating those coins!

Erik


A penny for my thoughts: 19rTXYJXtiXexjS4f1cVeGG5gjBXUhaNjY
BTC Randomizer: http://fxnet.co.cc/?ref=67
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480788169
Hero Member
*
Offline Offline

Posts: 1480788169

View Profile Personal Message (Offline)

Ignore
1480788169
Reply with quote  #2

1480788169
Report to moderator
1480788169
Hero Member
*
Offline Offline

Posts: 1480788169

View Profile Personal Message (Offline)

Ignore
1480788169
Reply with quote  #2

1480788169
Report to moderator
satoshi
Founder
Sr. Member
*
Offline Offline

Activity: 364


View Profile
July 30, 2010, 07:19:05 PM
 #2

I don't get how it let you send if it was not matured.  Your balance would have been lower than the amount.  It would have said balance 0.01, right?  If I try that it says "you don't have enough money" or "Insufficient funds" from the command line.

How many blocks did it say it had left to mature when you sent?

There's a chance it might still go through.

Have you copied or moved your wallet.dat in any way?


Dybbuk
Newbie
*
Offline Offline

Activity: 16


View Profile
July 30, 2010, 07:49:03 PM
 #3

Well, I shut down bitcoind and backed up my wallet immediately, but it never reported that I had more blocks to wait before they matured.  I just assumed that was the problem.  I did start up bitcoind after making the backup, just in case the transaction could still go through.

Using Gavin's bitcoin tools, I can see that the transaction is still in my wallet, and that the coins are still marked as spent, but neither my bitcoin nor the recipient's shows the transaction as having gone through.

A penny for my thoughts: 19rTXYJXtiXexjS4f1cVeGG5gjBXUhaNjY
BTC Randomizer: http://fxnet.co.cc/?ref=67
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!