Should I Let Bitcoin Core Finish Scanning My Old Wallet?

15 replies 403 views
calmgasFull Member
Posts: 46 · Reputation: 285
#1Sep 14, 2021, 07:02 PM
Hey folks, So, I was chatting with a buddy the other day about Bitcoin, and we were laughing about how we first discovered it 13 years ago. We were both super into the internet and tech back then, but honestly, we didn't take it seriously. My friend insists that I was nerdy enough to have bought some, maybe around 20 or 30 bucks' worth. I can't remember doing that at all, but who knows, maybe I just bought some on a whim and forgot about it. Totally possible. Anyway, I decided to dig out my old laptop from those days. Surprise, it won’t turn on anymore. I took out the hard drive and went to get a USB enclosure for it. Once I connected it to my PC, I started poking around in old files like "My Documents" (found some cringy photos of my younger self). Didn't see anything about Bitcoin there. So, I did a search in File Explorer for "bitcoin". After a short wait, it led me to a Bitcoin folder in AppData. Opened it up and found a bunch of files that were definitely Bitcoin-related, all created or modified between June 22 and June 25, 2011. Not super shocking; I probably installed it back then without really looking into it. But one file caught my eye: wallet.dat. Tried to open it directly (lol), but of course, that didn’t work. I googled its name, and that’s when it clicked... I went to the official site, downloaded Bitcoin Core client version 25, opened it up, and imported my wallet.dat file. It took it without a hitch and started syncing.
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#2Sep 14, 2021, 09:00 PM
How exactly did you "threw in" your wallet.dat file to Bitcoin Core v25.0? Please describe the steps that you did. Depending on how you did it and its timing, if it rescanned or not, the blocks with the transactions may have been skipped. (BTW, having no unverified transaction history at all isn't promising) Letting it finish is still recommended since you can rescan later, that's only if you didn't enabled "prune block storage" setting which would prevent you from scanning those old blocks without redownloading the entire blockchain. If you want to finish it, I'd recommend to disable the setting if it's enabled and start over. Otherwise, if you don't have the disk space, make sure that the wallet is properly loaded (use "Restore Wallet") before starting over initial block download again. On a side note, the latest release version is v26.0 as you can see above the forum menu, but it didn't affected the result. There's no "official Bitcoin website" BTW.
6 Reply Quote Share
humbleledgerLegendary
Posts: 1027 · Reputation: 6554
#3Sep 14, 2021, 11:33 PM
If your wallet is loaded and you expected transactions made in 2011, there's no point letting it sync all the way since you're at 2016 already.
4 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#4Sep 15, 2021, 03:40 PM
Thank you much for your answer and information. I was surprised too. I read everywhere that Bitcoin Core 25 can't read the old wallet.dat files, but for me it works. I just clicked on file > open a wallet :   https://i.ibb.co/GtTX7Jq/bitcoincore-open-a-wallet.png The file has been created in 2011 : https://i.ibb.co/kySmf5f/files-2011.png I just close Bitcoin Core and my Pc and I reopened them. I wanted to repeat the process but Bitcoin Core continues where it stopped earlier. It remains 4 years and 21 weeks : https://i.ibb.co/dgjGM0r/bitcoin-core-reste-4-ans.png But it reaches 2019 so I don't think it is useful to go on https://i.ibb.co/N7DsWzK/bitcoin-core-reste-4-ans-informations.png The "prune block storage" setting is enabled from the beginning (up to 2Go). Should I disable it now during the scan process? Or should I wait the end and then I do a new scan the the setting disabled? Thank you again
1 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#5Sep 17, 2021, 06:41 AM
Yes, I want to be sure. I read on the forum that the Bitcoin Core client may not see certain transactions even though they actually exist on the blockchain.
4 Reply Quote Share
mike777Member
Posts: 44 · Reputation: 242
#6Sep 18, 2021, 11:48 PM
You can use the following command to get the first address of your wallet (where 'X' your wallet name). I'm just saying this to save you time from syncing a wallet that contains no funds.  If the first address does not contain any coins, try with the second, third and so on.  Use a block explorer to check.  Maybe he received dust.  Spammers like picking old addresses to spread their spam.
0 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#7Sep 19, 2021, 05:16 AM
Thank you Medusah I am sorry to be so ignorant but i don't know the wallet name. where does i find it? and I write this command in the Bitcoin Core console (Window > Console) right? I hope that a lot of spammers sent a lot of dusts
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#8Sep 20, 2021, 04:06 PM
You've properly loaded it, good. If you want to double-check, you don't have to repeat IBD if the blocks are intact, just rescan from block 0 and it'll scan those available blocks. Go to "Console" (Window->Console) and type rescanblockchain to rescan with default args. Old wallet.dat files don't have a specific wallet name. In the new versions, the wallet name is equivalent to the folder where it's located: ...\bitcoin\wallets\<wallet_name>\wallet.dat As for "dusts", it's usually those old addresses with large amount of Bitcoins are being targeted.
0 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#9Sep 21, 2021, 07:26 PM
Thank you for your help. I entered the command rescanblockchain and I got this : "Can't rescan beyond pruned data. Use RPC call getblockchaininfo to determine your pruned height. (code -1)" But you know what is worst? I think that actually the Bitcoin Core 25 cannot open my 2011 wallet.dat file... I'm sorry to have misled you. (I was misleading because of the text at the bottom of the video "sync with the network...3 years and 27 weeks" which made me think that the software use my file to sync it with the blockchain (while it's not)). Here is a video https://www.youtube.com/watch?v=recqagQ0Hss The error message which appear in the window : "Wallet file verification failed. "C:/Users/imwon/AppData/Roaming/Bitcoin/wallets/my old wallet 2011/wallet.dat is corrupted. Try the tool bitcoin-wallet to fix it or restore a backup." Conclusion, I need to open the wallet.dat file with the good Bitcoin Core client... And I can't find it
1 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#10Sep 23, 2021, 02:36 AM
That was the "prune block storage" setting that I was talking about in my first reply. You may stop the sync process now and disable the said setting; or if disabling isn't possible due to storage issue, only restart the sync once the target wallet is already loaded. Read that post for more info. That error has nothing to do with the Bitcoin Core version since old wallets can still be loaded to the latest version without issues. Bitcoin Core simply detected that it's corrupted. As per the message, you can try to use bitcoin-wallet tool to salvage "a copy" of it. (make sure to keep an original backup) Here's the instructions: Notes: Depending on the binary, Bitcoin Core's bitcoin-wallet tool can be in "daemon" folder instead of "bin".In Windows11, in the step that mentioned "terminal", use PowerShell.To expand the "cd" step; "cd" means "change directory", here's an example to cd: cd "C:\Program Files\Bitcoin\daemon"
4 Reply Quote Share
degen2016Member
Posts: 10 · Reputation: 109
#11Sep 23, 2021, 05:56 AM
Did you try extracting the addresses/wallets in it? I saw you can open it with a simple text editor or using a tool that do that automatically, there are existing (but be careful choosing/using a tool, it can be harming)! Do Bitcoin Core don't gave you the list of your wallets ?   You can just check the balances manually!
0 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#12Sep 23, 2021, 06:50 AM
Thank you for your help, i'm going to try to do that. edit : indeed, it doesn't return with any response but it doesn't create the new salvaged wallet.dat.xxxxx.bak file : https://youtu.be/e4dC6526KCg
4 Reply Quote Share
calmgasFull Member
Posts: 46 · Reputation: 285
#13Sep 25, 2021, 01:19 PM
I try to extract the addresses/wallets and the balance through the Bitcoin Core client. but for now it doesn't accept the wallet.dat file   you can't open the file with a simple text editor, it's shows unreadable encrypted information. A tool for that? I don't know yet which tool but good idea! No : https://www.youtube.com/watch?v=recqagQ0Hss I don't know how but i think the may be corrupted according Bitcoin Core, so the first step is to salvage it. Thank you for your help
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#14Sep 25, 2021, 01:42 PM
I checked the video and it seems salvage didn't do anything to the target wallet at all. Try moving the wallet file to a folder inside your C: drive with your wallet.dat file, e.g.: "C:/temp/wallet.dat" Try "info" just to check if bitcoin-wallet is actually working, command: bitcoin-wallet --wallet="C:/temp/wallet.dat" info The expected result should be: The use salvage. If nothing works or salvage failed, try another tool like "pywallet". But you must create a separate topic for that.
2 Reply Quote Share
degen2016Member
Posts: 10 · Reputation: 109
#15Sep 25, 2021, 04:53 PM
- Is your wallet.dat password encrypted ? https://www.publish0x.com/cryptokyo/got-walletdat-files-but-dont-know-addresses-or-even-coins-xyvlmqe  (Got wallet.dat files but don't know addresses or even coins!!!!)   About tools the most recognized seems to be Pywallet (it's need Python 2, not 3!)..  you can also check if something here may help you! It is by looking on a block explorer like this: https://blockchair.com/bitcoin/address/1CrMWr46rUVxKgWGB1N5MmWCoHy3u6UAEK   .. But the easier would be by this tool :https://bitcoindata.science/bitcoin-balance-check
4 Reply Quote Share
gr3g.0rbitHero Member
Posts: 1025 · Reputation: 2646
#16Sep 25, 2021, 08:06 PM
Encrypted or not, the text editor method that you've suggested should work if the user previously used any address from his wallet. Even if the file looks like jumbled text (due to the text editor's encoding of the binary data), there are still human-readable parts mixed in there. The trick is to find "name" strings using a simple "CTRL+F" find command. If there's a match, an address should follow it. But I do not recommend relying on it when it comes with getting the balance since it can be an outdated state of the wallet and addresses that you see may only be a portion of the actual amount.
0 Reply Quote Share

Related topics