Bitcoin Forum
April 30, 2024, 12:04:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin core, (wallet.dat)  (Read 172 times)
C0r3R3l34$3 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 1


View Profile
January 24, 2024, 07:24:00 PM
 #1

Hi I have came across a few old wallet.dat files on my PC.

After letting Bitcoin Core sync for 24 hours, the program is now ready.

I have a few questions.

I have pasted the file inside of this directory
C:\Users\Admin\AppData\Roaming\Bitcoin

I then opened BTC core and did the following:
File > Restore Wallet > C:\Users\Admin\AppData\Roaming\Bitcoin\wallet.dat

It the asked for "Wallet Name" I just entered anything.

After this I had the error:
Wallet loading failed. Wallet files should not be reused across chains. Restart bitcoind with -walletcrosschain to override.

I'm wondering do I simply just add the this (-walletcrosschain) or am I importing the wallet incorrectly?

Any help is appreciated!
1714478693
Hero Member
*
Offline Offline

Posts: 1714478693

View Profile Personal Message (Offline)

Ignore
1714478693
Reply with quote  #2

1714478693
Report to moderator
1714478693
Hero Member
*
Offline Offline

Posts: 1714478693

View Profile Personal Message (Offline)

Ignore
1714478693
Reply with quote  #2

1714478693
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714478693
Hero Member
*
Offline Offline

Posts: 1714478693

View Profile Personal Message (Offline)

Ignore
1714478693
Reply with quote  #2

1714478693
Report to moderator
1714478693
Hero Member
*
Offline Offline

Posts: 1714478693

View Profile Personal Message (Offline)

Ignore
1714478693
Reply with quote  #2

1714478693
Report to moderator
1714478693
Hero Member
*
Offline Offline

Posts: 1714478693

View Profile Personal Message (Offline)

Ignore
1714478693
Reply with quote  #2

1714478693
Report to moderator
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6371


Looking for campaign manager? Contact icopress!


View Profile
January 24, 2024, 07:29:41 PM
 #2

Are you sure it's a Bitcoin wallet.dat? Because the error message seems to say it's not.
Maybe you've played with testnet and it's from there, or, usually more probably it's from an altcoin, since most of them have their wallets based on various versions of Bitcoin's wallet.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
C0r3R3l34$3 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 1


View Profile
January 24, 2024, 07:35:04 PM
Last edit: January 24, 2024, 07:54:18 PM by C0r3R3l34$3
 #3

Are you sure it's a Bitcoin wallet.dat? Because the error message seems to say it's not.
Maybe you've played with testnet and it's from there, or, usually more probably it's from an altcoin, since most of them have their wallets based on various versions of Bitcoin's wallet.

Hi thankyou for the quick reply.

I've managed to use Bitcoin2john.py and the hash extracted is something like this: $bitcoin$64$

I have also added the flag -walletcrosschain but Bitcoin Core seems to close abruptly when I attempt to restore the wallet.

I'm not 100% sure it's a Bitcoin wallet.dat but maybe the hash extraction confirms it is?

Another potential issue I'm receiving:
"Wallet loading failed. Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again incase of pruned node).

If I want to see my balance, and view historical transactions (years ago) do I still need to store the ENTIRE blockchain? or can I use the prune feature. I think I have only stored 2GB (or whatever the default Bitcoin Core size was).
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2955


Block halving is coming.


View Profile WWW
January 24, 2024, 08:32:20 PM
Merited by NeuroticFish (2), ifarted (1)
 #4

You don't need to reimport the wallet.dat on the GUI since you already placed the wallet.dat file on the wallet directory which is "C:\Users\Admin\AppData\Roaming\Bitcoin"

Look you already opened the Bitcoin core GUI it should show some error if the wallet.dat on the wallet directory is corrupted but it's not and you are still able to go to File > Restore Wallet.

That is why this error comes up because you are attempting to reimport the wallet.dat that is already in the wallet directory.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
C0r3R3l34$3 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 1


View Profile
January 24, 2024, 10:28:27 PM
 #5

You don't need to reimport the wallet.dat on the GUI since you already placed the wallet.dat file on the wallet directory which is "C:\Users\Admin\AppData\Roaming\Bitcoin"

Look you already opened the Bitcoin core GUI it should show some error if the wallet.dat on the wallet directory is corrupted but it's not and you are still able to go to File > Restore Wallet.

That is why this error comes up because you are attempting to reimport the wallet.dat that is already in the wallet directory.

Thanks for your reply.

In the event I want to import an old wallet.dat and see transaction history from possibly 2013.

Do I need to download the entire blockchain?

This is how I installed Bitcoin Core yesterday, and I think I did it incorrectly.
https://imgur.com/afzKvBm

I think the mistake is, I had the "Limit block chain storage" ticked.

Please let me know, thankyou

kuriboh
Sr. Member
****
Offline Offline

Activity: 358
Merit: 285


View Profile
January 25, 2024, 01:27:50 AM
 #6


Do I need to download the entire blockchain?

Obviously you need to download the entire full blockchain. Did you Bitcoin core app few mb but After downloading bitcoin core app than whole file 600gb didn’t download it. You need to download the whole file and then use it.If you don't download the whole file it won't open and work properly.  As far as I know it takes about 14 days to download the entire file.

Am doing it too:

nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5568


Self-proclaimed Genius


View Profile
January 25, 2024, 09:59:49 AM
Merited by NeuroticFish (5)
 #7

Look you already opened the Bitcoin core GUI it should show some error if the wallet.dat on the wallet directory is corrupted but it's not and you are still able to go to File > Restore Wallet.

That is why this error comes up because you are attempting to reimport the wallet.dat that is already in the wallet directory.
"Restore Wallet" menu can go to any directory and see any ".dat" file, even if it's not a wallet file or an already loaded wallet file.
Being able to select a specific wallet.dat doesn't indicate that there's no issue in the file, the issue shows after it tries to restore and load it.

A single wallet.dat that's restored twice isn't an issue, each restore attempt needs to set a different wallet name anyways.

I've managed to use Bitcoin2john.py and the hash extracted is something like this: $bitcoin$64$
It will always output "$bitcoin$" even if it's a similar wallet.dat from an altcoin, Bitcoin testnet, regtest, etc.: github.com/openwall/john/blob/bleeding-jumbo/run/bitcoin2john.py#L248

Another potential issue I'm receiving:
"Wallet loading failed. Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again incase of pruned node).
If I want to see my balance, and view historical transactions (years ago) do I still need to store the ENTIRE blockchain? or can I use the prune feature.
Since you've set your blockchain to be pruned, you'll have to redownload the blockchain.
And since you don't have enough space in your drive, you can't store the entire blockchain, you'll have keep your prune block storage setting.

But only start over once you've successfully loaded the wallet.dat file or you'll have to re-download again if you want to load and scan your wallet later.
Since you're going to re-downloads anyways, try to start with a fresh datadir by renaming your current bitcoin datadir inside %appdata% (use "run" or "windows explorer").
rename it from "bitcoin" to "bitcoin_bk", create a new bitcoin folder and copy your bitcoin.conf (with walletcrosschain=1 setting) and wallet.dat file there.
Then start Bitcoin Core, it'll immediately load the wallet as [default_wallet] and redownload the blockchain.
If you have to scan multiple wallets, it wont be automatically loaded if you pasted more than one in the wallets directory,
instead, you'll have to restore them all immediately or keep network disabled until you're finished restoring all the wallets.

Alternatively, disable pruning and set a custom data directory to a bigger drive in the Welcome menu (start Bitcoin-qt with --choosedatadir arg), then redownload the blockchain to that directory.
That way, you're free to load wallet.dat files without re-downloading the blockchain again and again, it'll only need to rescan the existing blockchain.

Since your mentioned date is 2013, the transactions (if there's any) might show up earlier in the sync process.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
C0r3R3l34$3 (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 1


View Profile
January 25, 2024, 09:54:32 PM
 #8

@nc50lc

Thank you so much for the detailed reply.

To prevent any issues and hopefully have things run smoothly, I've plugged in a 1TB SSD and will just download the entire thing.

I've purged all instances/files related to Bitcoin Core - and then re installed.

I've unchecked all "purged" options, and once fully downloaded/synced.

I'm going to place the .dat directly into the folder instead of trying to restore.

Hopefully I'm following all advice correctly + will have no issues.

nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5568


Self-proclaimed Genius


View Profile
January 26, 2024, 06:17:20 AM
 #9

I'm going to place the .dat directly into the folder instead of trying to restore.
Take note that automatically loading a "wallet.dat" file as default_wallet has these conditions:
if copied in the wallets folder, it will only be automatically loaded after a restart if there are no other wallets already loaded.
if copied in the datadir instead of wallets folder, it will only be automatically loaded after a restart if there are no other loaded wallets or "wallets" folder isn't available.
The Restore option, on the other hand, restores it by creating its own folder (wallet name) inside 'wallets' folder, copy then loads it.

Either option still subject to the same chain check procedure and rescan once Bitcoin Core tries to load it.
So make sure that you have walletcrosschain=1 in your config since it's initially detected as non-mainnet or altcoin wallet.dat.

You can even load it right now so you can see if there are transactions after syncing through year 2013 blocks.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
keychainX
Member
**
Offline Offline

Activity: 374
Merit: 53

Telegram @keychainX


View Profile WWW
January 26, 2024, 08:37:27 AM
 #10

Hi I have came across a few old wallet.dat files on my PC.

After letting Bitcoin Core sync for 24 hours, the program is now ready.

I have a few questions.

I have pasted the file inside of this directory
C:\Users\Admin\AppData\Roaming\Bitcoin

I then opened BTC core and did the following:
File > Restore Wallet > C:\Users\Admin\AppData\Roaming\Bitcoin\wallet.dat

It the asked for "Wallet Name" I just entered anything.

After this I had the error:
Wallet loading failed. Wallet files should not be reused across chains. Restart bitcoind with -walletcrosschain to override.

I'm wondering do I simply just add the this (-walletcrosschain) or am I importing the wallet incorrectly?

Any help is appreciated!

Did you try pywallet an open source Python library?

It can parse your wallet.dat without downloading the entire blockchain and export the private keys

You can find it here
https://github.com/jackjack-jj/pywallet

Good luck!
/KX

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!