Post
Topic
Board Announcements (Altcoins)
Re: [ANN][XCN] Cryptonite | 1st mini-blockchain coin | M7 PoW | No Premine
by
ltcnim
on 07/08/2014, 10:33:20 UTC
win7 x64 problem:

i had a fresh install of the wallet, started syncing and used the initial address for mining @ 1gh. the wallet got stuck at some "trie" stuff (for over 6h) so I restarted the qt-wallet. Now it says my wallet.dat is corrupted, and can't be repaired. the wallet.dat file is getting renamed and a new one is created. all my mined coins are gone. there are generally a lot of runtime exceptions and messages when operating the wallet.

how can I get my coins back? looks like there is no checkwallet/repairwallet implemented.

Code:
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
file unknown has LSN 1/3132, past end of log at 1/1076
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment

looks like a critical bug in the QT wallet which kills the wallet.dat

Edit: salvagewallet did not work either

i'm still looking for a solution. lost around 120 coins that way. i don't want to think about someone losing thousands due to that bug.

All you need is the private key of your receiving address.

You can try the following. ALWAYS keep a backup of your wallet.

1. Take a note of your address.
2. Go to 'help > debug > console'
3. Type:

Code:
dumpprivkey YOURRECEIVINGADDRESS

4. Store the private key in a safe location.
5. Repeat for all your receiving addresses (if you have more than one)

Now, do whatever you want with the wallets. As soon as you have a working wallet, import your private key for each of your receiving addresses with the command:

Code:
importprivkey YOURPRIVATEKEYFORADDRESS "My Address Label"

Hope this helps.


I can't do that, as I can't load the wallet.dat file. One second after starting the QT wallet with the corrupted wallet.dat file, it says the wallet.dat is corrupted. and then the wallet.dat file is beeing renamed. I'll post more debug messages in a min.

There is a 'checkwallet' command and a 'repairwallet' command. Is it possible to run them?

there is no checkwallet/repairwallet command (like I stated somewhere before), at least not in the rpc command list. but even if they were available, I could not run them, because I can't load my wallet.dat in the first place. from debug and db.log:

Code:
file unknown has LSN 1/3132, past end of log at 1/28
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
Page 0: metadata page corrupted
Page 0: could not check metadata page
wallet.dat: DB_VERIFY_BAD: Database verification failed
file unknown has LSN 1/3132, past end of log at 1/1076
Commonly caused by moving a database from one database environment
to another without clearing the database LSNs, or by removing all of
the log files from a database environment
wallet.1407407212.bak: DB_VERIFY_BAD: Database verification failed

Code:
2014-08-07 10:26:52 Renamed wallet.dat to wallet.1407407212.bak
2014-08-07 10:26:52 CDBEnv::Salvage : Database salvage found errors, all data may not be recoverable.
2014-08-07 10:26:52 Salvage(aggressive) found no records in wallet.1407407212.bak.
2014-08-07 10:26:56 Initialization result: 0
2014-08-07 10:26:56 Requesting shutdown
2014-08-07 10:26:56 Running Shutdown in thread
2014-08-07 10:26:56 Shutdown : In progress...
2014-08-07 10:26:56 StopNode()
2014-08-07 10:26:56 Shutdown : done
2014-08-07 10:26:56 Shutdown finished
2014-08-07 10:26:56 Shutdown result: 1
2014-08-07 10:26:56 Stopping thread
2014-08-07 10:26:56 Stopped thread

I will happily provide the wallet.dat file to the devs so they can take a look.