In my %APPDATA%\Bitcoin folder (in Windows 7) I have a file called wallet.dat.rewrite

It was apparently last modified on 12th May 2011.

I don't think it's a file I created manually, so what is it?


Sometimes the wallet file must be rewritten from scratch entirely (in particular when encrypthing it), to prevent unencrypted material to remain in old never-overwritten areas of the file. To do this, bitcoin writes a new file (wallet.dat.rewrite) and then renames it to wallet.dat. If this process is interrupted, it's possible that the wallet.dat.rewrite file remains. You can delete it safely.

| improve this answer | |
  • 2
    Actually you should delete it, since it possibly contains your unencrypted private keys, and could maybe be used by a thief to gain access to your bitcoins without knowing your wallet password. – Chris Moore Jun 20 '12 at 17:49
  • No, it is the file to which the rewritten version is written. It is not a copy of the old file. – Pieter Wuille Jun 20 '12 at 19:48
  • 1
    Fair enough then. :) So is it possible that OP's wallet.dat file is still unencrypted since wallet.dat.rewrite wasn't renamed over top of it? – Chris Moore Jun 21 '12 at 0:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.