Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Bacchusm on May 02, 2018, 10:33:23 PM



Title: Upgrading to Bitcoin Core 0.16
Post by: Bacchusm on May 02, 2018, 10:33:23 PM
I used to use a old Bitcoin Core and it crash.  I kept the wallet.dat file.  It is only 88 Bytes.  

So I d/l the new Bitcoin Core 0.16.0 and
when I try to replace the wallet.bat in .16 it crash with

file: wallet/wallet.cpp, Line 550

Expression: copyFrom && "Oldest wallet transaction in range assumed to have been found."

then it says

'Abort', retry ignore.

Any help would be appreciated.

1. Ignore crash the programs
2. Retry 'this Application has requested the Runtime to Terminate it in an unusual way'  Contact support.


Thank

Bacchusm


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: achow101 on May 03, 2018, 03:08:55 AM
I used to use a old Bitcoin Core and it crash.  I kept the wallet.dat file.  It is only 88 Bytes.  
Your wallet.dat file is most definitely corrupt and does not contain any key data if it is only 88 bytes. An individual key is much longer than 88 bytes. The keys don't even exist in this file so there really isn't anything for you to even attempt to recover.


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Bacchusm on May 03, 2018, 07:17:33 AM
I used to use a old Bitcoin Core and it crash.  I kept the wallet.dat file.  It is only 88 Bytes.  88.0 KB (90,112 bytes)
Your wallet.dat file is most definitely corrupt and does not contain any key data if it is only 88 bytes. An individual key is much longer than 88 bytes. The keys don't even exist in this file so there really isn't anything for you to even attempt to recover.



Sorry this is the size of the file.


88.0 KB (90,112 bytes)

Thanks


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: bob123 on May 03, 2018, 09:59:28 AM
I think 88 kb are still too small for a wallet.dat file. I guess the correct size would be around ~200kb.
You might try out pywallet (https://github.com/jackjack-jj/pywallet). Even tho it is no longer maintained it still works pretty well with old wallet files.
Pywallet will try to dump all private keys inside your wallet.dat.


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Bacchusm on May 04, 2018, 07:07:06 PM
I think 88 kb are still too small for a wallet.dat file. I guess the correct size would be around ~200kb.
You might try out pywallet (https://github.com/jackjack-jj/pywallet). Even tho it is no longer maintained it still works pretty well with old wallet files.
Pywallet will try to dump all private keys inside your wallet.dat.

I tried pywallet and didn't get it working, when trying to figure it out I came across this : wallet-key-tool.  that had a good GUI, so I dumped my wallet.dat , and I can export it to  MultiBit.key, multibit.Wallet or bitcoin-core Dumpwallet.txt   I have exported it to all three.  I like using Bitcoin-Core.  How can I import any of these to it.


Thanks Again!


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Xynerise on May 04, 2018, 07:46:26 PM
How can I import any of these to it.


Thanks Again!
The private keys should start with 5, K or L.
Open bitcoin core
Go to Help -> Debug -> Console
Unlock your wallet.dat (if there's a passphrase)
Code:
 walletpassphrase passphrase 600
Where "passphrase" is your password .
Then
Code:
importprivkey "5Privatekey"
Replace "5privatekey" with your private key.


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Bacchusm on May 04, 2018, 07:58:22 PM
How can I import any of these to it.


Thanks Again!
The private keys should start with 5, K or L.
Open bitcoin core
Go to Help -> Debug -> Console
Unlock your wallet.dat (if there's a passphrase)
Code:
 walletpassphrase passphrase 600
Where "passphrase" is your password .
Then
Code:
importprivkey "5Privatekey"
Replace "5privatekey" with your private key.

The Importprivkey,  there are about 100 lines in the txt file all starting with K or L   Do I start at top or bottom?  Sorry , thank you for answering so quick.


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Aura on May 04, 2018, 09:02:39 PM

The Importprivkey,  there are about 100 lines in the txt file all starting with K or L   Do I start at top or bottom?  Sorry , thank you for answering so quick.
It should be 51 or 52 characters long.


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: Xynerise on May 04, 2018, 10:28:34 PM

The Importprivkey,  there are about 100 lines in the txt file all starting with K or L   Do I start at top or bottom?  Sorry , thank you for answering so quick.
You can import all of them at once by following the  instructions here (https://bitcointalk.org/index.php?topic=775881.msg9002563#msg9002563)


Title: Re: Upgrading to Bitcoin Core 0.16
Post by: HCP on May 05, 2018, 08:29:11 AM
Start at top or bottom of the list, it isn't that important... the import thing if you're going to import multiple keys at once, is to use the "false" parameter after every importprivkey command except the last one... like this:
Code:
importprivkey "KpriVatEyKeyNumBer1" "" false
importprivkey "KpriVatEyKeyNumBer2" "" false
importprivkey "LpriVatEyKeyNumBer3" "" false
importprivkey "KpriVatEyKeyNumBer4" "" false
...
importprivkey "LtheLastPrivKeyInTheList" ""
Note: format of command is importprivkey <bitcoinPrivKey> <label> <rescan?>

Adding the false parameter stops Bitcoin Core from automatically rescanning the blockchain for transactions related to the newly imported key... this can take quite a few minutes (if not hours) to complete, so you only want to do it after you've imported the last key... otherwise you'll have the long wait after EVERY importprivkey!