Bitcoin Forum
May 08, 2024, 01:27:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Is it possible to recover a new address from an old copy of the wallet file?  (Read 88 times)
CollettD (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 5


View Profile
December 13, 2020, 11:57:18 AM
Merited by Jet Cash (5)
 #1

Hi,

I have an old wallet.dat file that I was checking and found that it was an old format, and so had to download the full core client. Having downloaded the blockchain I then transferred a copy of the old wallet.dat file by overwriting the default one. Then I generated a new address and sent some funds to it.

The plan was to back-up this file, but as I did so I had a drive crash and somehow lost the file. I have a copy of the old wallet.dat file still.

Unfortunatly, I won't be able to get a copy of that file before Monday.

Have I lost the bitcoin in the new address or is there a way to recover the funds from that last transaction?
1715174854
Hero Member
*
Offline Offline

Posts: 1715174854

View Profile Personal Message (Offline)

Ignore
1715174854
Reply with quote  #2

1715174854
Report to moderator
1715174854
Hero Member
*
Offline Offline

Posts: 1715174854

View Profile Personal Message (Offline)

Ignore
1715174854
Reply with quote  #2

1715174854
Report to moderator
1715174854
Hero Member
*
Offline Offline

Posts: 1715174854

View Profile Personal Message (Offline)

Ignore
1715174854
Reply with quote  #2

1715174854
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715174854
Hero Member
*
Offline Offline

Posts: 1715174854

View Profile Personal Message (Offline)

Ignore
1715174854
Reply with quote  #2

1715174854
Report to moderator
1715174854
Hero Member
*
Offline Offline

Posts: 1715174854

View Profile Personal Message (Offline)

Ignore
1715174854
Reply with quote  #2

1715174854
Report to moderator
khaled0111
Legendary
*
Offline Offline

Activity: 2520
Merit: 2853


Top Crypto Casino


View Profile WWW
December 13, 2020, 03:00:19 PM
Last edit: December 13, 2020, 03:17:09 PM by khaled0111
 #2

Have I lost the bitcoin in the new address or is there a way to recover the funds from that last transaction?
No, you didn't lose anything as long as you have another copy of the wallet.dat file.
Just import the file into bitcoin core and you will be able to generate the same address to which you sent your coins.
All you can do now, is to wait for monday to get the original file  Smiley

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
CollettD (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 5


View Profile
December 13, 2020, 03:50:37 PM
 #3

Seems like there are two different answers here, hopefully the first answer is right.

How would I generate the new address from the old wallet file when I import it? Would the new address be generated from the old wallet's private keys?
ranochigo
Legendary
*
Offline Offline

Activity: 2968
Merit: 4168



View Profile
December 13, 2020, 04:10:15 PM
Merited by Jet Cash (5)
 #4

Seems like there are two different answers here, hopefully the first answer is right.

How would I generate the new address from the old wallet file when I import it? Would the new address be generated from the old wallet's private keys?
My apologies. I mis-read your question and I understood after I read it again. Deleted the misleading message.

I assume by old, you mean that the wallet was generated prior to 0.13.0? If that is so, the upgraded wallet will mean that the old keypool has been flushed during the upgrade and the new keypool was created following the upgrade. The new address has likely been generated from the HD seed for which the addresses are not within your old walllet due to the upgradewallet behavior.

Your best bet is to recover the new wallet. I don't think there's any harm in trying your old wallet, given that there's still a slight chance that somehow the address is in your old wallet. Addresses are shown sequentially when you generate a new receiving address from the receiving tab and there is a pool of 100 addresses which are not displayed to you in the wallet.dat. So, if you import the wallet into a new client and click generate, the receiving address could be the one that you've sent the funds to.

This is if the keypool has not been flushed by the upgrade wallet.

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

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

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

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

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

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











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











▄▄▄▄█
CollettD (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 5


View Profile
December 13, 2020, 04:49:16 PM
 #5

Ok that's what I thought. I don't remember exactly which version the wallet file was from, but it was probably generated in 2013, but used last before now in 2017. So that probably means a new keypool was generated for  the new address given that it was in the new format? I also noticed that the "new" wallet file had a different size than the old. I guess I'll have to wait and see...
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
December 13, 2020, 08:08:08 PM
Merited by Jet Cash (5)
 #6

It will depend on a couple of things...

1. Was your wallet "HD" (if created in 2013, then it's likely that it wasn't)
2. Whether the address was from a fresh keypool or the keypool that's already in the "old" wallet.dat

If you wallet was HD, then you're likely fine... when you load the old copy, it should give you the same address when you generate a new receive address.

If your wallet isn't an "HD" wallet, then it depends on the keypool status. Non-HD wallets just randomly generate private keys, they're not related to each other and there is no way to regenerate the same keys if they're lost. Thankfully, the wallet tends to hold an "internal keypool" of pre-generated keys... it used to be 100 (for very old versions of Bitcoin Core), and was then extended to 1000 in the last year or three.

Chances are that the address you generated was from the keypool, so your old wallet copy should hopefully be able to recreate the address you used. Fingers crossed!

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!