Author

Topic: HD wallet technicals (Read 242 times)

newbie
Activity: 35
Merit: 0
April 28, 2019, 09:30:03 PM
#5
I was able to make it work, thank you.

I am unsure what the issue was but I somehow fixed it.

staff
Activity: 3458
Merit: 6793
Just writing some code
April 28, 2019, 01:21:08 AM
#4
Nevermind, I misread your question.

What version of Bitcoin Core are you using? If you do open the debug console and do getwalletinfo for both wallets, do they show the same thing for hdseedid? If you do getaddressinfo where is the address that was generated for each copy of the wallet file respectively, do you see the same thing for hdkeypath?

You should see the same thing, regardless of HD or not, due to the keypool. It is likely that you simply made an error somewhere or the wrong wallet file was loaded.
newbie
Activity: 35
Merit: 0
April 28, 2019, 12:21:29 AM
#3
I am not sure to follow.

My goal is to use hd.dat wallet for production, do all the important operations such as receiving funds etc and keep hd1.dat as a backup in case the original wallet file gets corrupted or lost.

Per your reply, should I create a new HD wallet, make a duplicate THEN generate new addresses ?

Thank you for your help.
staff
Activity: 3458
Merit: 6793
Just writing some code
April 28, 2019, 12:08:13 AM
#2
This is completely expected. You copied the wallet after generating addresses. and opened the copy. This is the same as opening the original wallet file itself because the wallet file (and thus the one you copied) contains all of the information about the addresses already generated.

If instead you had copied the wallet file before generating addresses, you would see the addresses repeated in the copy.

Regardless, both the copy and the original will generate the same addresses, and you should be able to observe that.
newbie
Activity: 35
Merit: 0
April 27, 2019, 10:51:34 PM
#1
Hello people, I have a couple questions about bitcoin core HD wallet.


I created an HD wallet as follow :

Code:
./bitcoin-qt -usehd -wallet=hd.dat

I generated 4 receiving btc addresses on that wallet then closed the bitcoin core client.
I made a duplicate file of that hd.dat wallet and named it hd1.dat

I open hd.dat wallet with bitcoin core and generate a new incoming btc address, I do the same with hd1.dat wallet but the address generated is different.

Is this normal or there is an issue with the wallet ?

Jump to: