Author

Topic: Warning: wallet.dat corrupt, data salvaged! (Read 4950 times)

newbie
Activity: 25
Merit: 0
March 06, 2014, 02:46:13 AM
#7
So it's not so easy to transfer the wallet from windows to linux?
hero member
Activity: 826
Merit: 1000
see my profile
February 26, 2014, 08:32:13 PM
#6
FYI:

I solved my problem with the 2000 tiny transactions.
Here's today's logbook ... what an interesting day, problems are great:
https://bitcointalksearch.org/topic/m.5396066

and below that I will publish my script that solved it.

hero member
Activity: 826
Merit: 1000
see my profile
February 26, 2014, 02:09:08 PM
#5
even easier, solution found

Code:
cd ~/.c-note
rm -R blocks chainstate database debug.log peers.dat .lock db.log wallet.dat

cp wallet.1393438556.bak wallet.dat

~/C-Note/c-noted &
~/C-Note/c-noted getinfo

After waiting a while, the thing is sync'ed, the balance is here, all good.


Note to self:
If I transfer a wallet.dat to another machine, I need to re-download the blockchain!

:-)

hero member
Activity: 826
Merit: 1000
see my profile
February 26, 2014, 01:47:22 PM
#4
I have a hypothesis now.

The windows wallet.dat is from the original -Qt client: https://bitcointalksearch.org/topic/c-note-4-years-old-and-still-alive-397916
The linux wallet daemon I have compiled myself using these exact steps: https://bitcointalksearch.org/topic/m.5100231

Because of the instructions in the sourcecode \c-note1.2\C-Note\doc\build-unix.md I used db4.8 in the linux daemon.


Which db version might the windows-qt dev have used? How can I find out?


Windows c-note-qt.exe says in getinfo:

Code:
"version" : 1010000,
"protocolversion" : 70005,
"walletversion" : 60000,

Sourcecode c-notes-qt.pro also says to use db4.8 as fallback:

Code:
isEmpty(BDB_INCLUDE_PATH) {
    macx:BDB_INCLUDE_PATH = /opt/local/include/db48
}

isEmpty(BDB_LIB_PATH) {
    macx:BDB_LIB_PATH = /opt/local/lib/db48
}

hero member
Activity: 826
Merit: 1000
see my profile
February 26, 2014, 01:46:18 PM
#3
try: windows-blockchain-linux, perhaps not the most high tech solution, but it works.

What do you mean by that?
windows wallet.dat export- import to blockchain.info online wallet - export - import to linux ?

I can see you point, and why it might work - if it was the bitcoin altcoin daemon.

But I am working with a descendant bitcoin --> litecoin --> quark --> C-Notes.

Still, I am almost sure, the problem is already the same even with the greatgrandmother bitcoin, that's why I am posting here.


newbie
Activity: 14
Merit: 0
February 26, 2014, 01:35:50 PM
#2
try: windows-blockchain-linux, perhaps not the most high tech solution, but it works.
hero member
Activity: 826
Merit: 1000
see my profile
February 26, 2014, 01:28:03 PM
#1
(am I in the correct subforum for this?)

I transfered a wallet from windows to linux, and there I got:

Code:
Warning: Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in /root/.c-note; if your balance or transactions are incorrect you should restore from a backup.
Warning: Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.

When I query the wallet daemon with

Code:
~/C-Note/c-noted &
~/C-Note/c-noted getinfo
ps gaux | grep c-noted

it results in

Code:
error: no response from server
Segmentation fault      ~/C-Note/c-noted

The windows wallet.dat is from the original -Qt client: https://bitcointalksearch.org/topic/c-note-4-years-old-and-still-alive-397916
The linux wallet daemon I have compiled myself using these exact steps: https://bitcointalksearch.org/topic/m.5100231



I need to transfer that wallet from windows to linux, because I don't have a headless CLI client in windows, and I want to script a large amount of transactions in order to funnel 1942 transactions into one.

Thanks!
Jump to: