<p>Thanks in advance for any light you can shed on my problem..</p>

<ol>
<li>I think I sent bitcoins from an online wallet to my offline wallet BitcoinQT(0.81) in august.</li>
<li>The transaction has been confirmed, but not redeemed, (due to my offline wallet not being synced i believe)</li>
<li>I encrypted today, before bitcoinqt had completed initial sync.</li>
<li>Now i've just realised <a href="http://www.reddit.com/r/Bitcoin/comments/1bhky4/i_recovered_my_lost_bitcoins/" rel="nofollow">that</a> I've probably lost the associated change address in the unencrypted wallet. as the address it was sent to was not the same as the receive address that showed in bitcoinQTfrom the unencrypted wallet.</li>
<li>i have no backup of the unencrypted wallet.dat</li>
</ol>

<p>Questions:</p>

<p>Q1. Am I correct that i've lost my bitcoins?<br>
Q2. Does bitcoinqt overwrite the wallet.dat file when it encrypts the wallet? or does it create a new copy, such that I may be able to recover the old wallet.dat using recovery sw like testdisk?<br>
Q3. If answer to Q2 is not overwritten, what is the likelihood of being able to retrieve the unencrypted wallet.dat or change addresses considering the bitcoinqt client was syncing/processing blocks for about 20mins before i shutdown?<br>
Q4. Would it be possible to recover the wallet.dat from the app data folder in a system restore (winxp)?   </p>

<p>Thanks again,</p>

<p>22/11/2013  </p>

<p>Update Q1: Looks likely that i've either sent them to a different wallet - or my blockchain.info account (with 2FA) was hacked. :(<br>
Update Q2: Bitcoinqt does not immediately overwrite the unencrypted wallet.dat after encrypting the file.<br>
Update: Q4: It may have been possible to recover the walllet.app from the app data folder in system restore (but i didn't have this enabled)<br>
Lesson learnt? too early to say, but always keep a backup...</p>

CC BY-SA 3.0
2013-11-21T04:00:29.960Z
Why wouldn't the key be in your encrypted wallet?
David Schwartz
CC BY-SA 3.0
2013-11-21T23:01:55.973Z
hey david, thanks for the comment, because it was a private key for a change address?
user9054
CC BY-SA 3.0
2013-11-21T23:38:54.663Z
The (public?) address that the bitcoins currently reside at shows in blockchain explorer is different to the receive address I saw in bitcoinqt with the unencrypted wallet, so i guessed it was a change address (one of the 100 pregenereated that is only kept with my unencrypted wallet, and reset/removed when i encrypted?)
user9054
CC BY-SA 3.0
2013-11-21T23:43:11.327Z
I sent coins from an online wallet to an offline unencrypted wallet, and then encrypted the offline (w/out backup, hence discarded) without either of them having completed initial sync on bitcoinqt
user9054
CC BY-SA 3.0
2013-11-21T23:46:25.243Z
because the address it was sent to wasn't the same as the receive address on bitcoinqt?
user9054
CC BY-SA 3.0
2013-11-21T23:50:57.203Z
Didn't you pick the address to send it to when you requested the send from the online wallet? Where did you get that address from?
David Schwartz
CC BY-SA 3.0
2013-11-21T23:54:57.947Z
I can't remember.. I can remember wanting to put it in cold storage, but i don't remember the actual transaction. it's not been spent though?
user9054
CC BY-SA 3.0
2013-11-22T00:57:28.363Z
The public address where the bitcoins currently are is not in the encrypted wallet, but I think it would be in the unencrypted wallet, can i use the transaction log to find it?
user9054
CC BY-SA 3.0
2013-11-22T01:05:58.457Z
*(10mb transaction log) /rebuild it using the dbprintlog (works) or dbrecover (failed)?
user9054
<bitcoin-core><synchronization><wallet.dat><change><address-generation>
Sent bitcoins to my unencrypted wallet and encrypted the wallet before file synced, is there any way i can get them back?
user9054
# Sent bitcoins to my unencrypted wallet and encrypted the wallet before file synced, is there any way i can get them back?

(Asked by: username_0 on 2013-11-21)

Thanks in advance for any light you can shed on my problem..

1. I think I sent bitcoins from an online wallet to my offline wallet BitcoinQT(0.81) in august.
2. The transaction has been confirmed, but not redeemed, (due to my offline wallet not being synced i believe)
3. I encrypted today, before bitcoinqt had completed initial sync.
4. Now i've just realised [that](http://www.reddit.com/r/Bitcoin/comments/1bhky4/i_recovered_my_lost_bitcoins/) I've probably lost the associated change address in the unencrypted wallet. as the address it was sent to was not the same as the receive address that showed in bitcoinQTfrom the unencrypted wallet.
5. i have no backup of the unencrypted wallet.dat

Questions:

Q1. Am I correct that i've lost my bitcoins?  
Q2. Does bitcoinqt overwrite the wallet.dat file when it encrypts the wallet? or does it create a new copy, such that I may be able to recover the old wallet.dat using recovery sw like testdisk?  
Q3. If answer to Q2 is not overwritten, what is the likelihood of being able to retrieve the unencrypted wallet.dat or change addresses considering the bitcoinqt client was syncing/processing blocks for about 20mins before i shutdown?  
Q4. Would it be possible to recover the wallet.dat from the app data folder in a system restore (winxp)?

Thanks again,

22/11/2013

Update Q1: Looks likely that i've either sent them to a different wallet - or my blockchain.info account (with 2FA) was hacked. :(  
Update Q2: Bitcoinqt does not immediately overwrite the unencrypted wallet.dat after encrypting the file.  
Update: Q4: It may have been possible to recover the walllet.app from the app data folder in system restore (but i didn't have this enabled)  
Lesson learnt? too early to say, but always keep a backup...

**Tags:** bitcoin-core, synchronization, wallet.dat, change, address-generation

> **Comments:**
> **username_1**: Why wouldn't the key be in your encrypted wallet?  
> **username_0**: hey username_1, thanks for the comment, because it was a private key for a change address?  
> **username_0**: The (public?) address that the bitcoins currently reside at shows in blockchain explorer is different to the receive address I saw in bitcoinqt with the unencrypted wallet, so i guessed it was a change address (one of the 100 pregenereated that is only kept with my unencrypted wallet, and reset/removed when i encrypted?)  
> **username_0**: I sent coins from an online wallet to an offline unencrypted wallet, and then encrypted the offline (w/out backup, hence discarded) without either of them having completed initial sync on bitcoinqt  
> **username_0**: because the address it was sent to wasn't the same as the receive address on bitcoinqt?  
> **username_1**: Didn't you pick the address to send it to when you requested the send from the online wallet? Where did you get that address from?  
> **username_0**: I can't remember.. I can remember wanting to put it in cold storage, but i don't remember the actual transaction. it's not been spent though?  
> **username_0**: The public address where the bitcoins currently are is not in the encrypted wallet, but I think it would be in the unencrypted wallet, can i use the transaction log to find it?  
> **username_0**: *(10mb transaction log) /rebuild it using the dbprintlog (works) or dbrecover (failed)?  

---

## 0 answers

