I have a problem with my bitcoin wallet recovery process. I have a wallet with thousand of address attached created with RPC method 'getnewaddress'.
I would like to have a recovery process for this wallet and address.
For that, I try to remove the wallet from the node, and import it again by RPC with 'importprivkey'.
The RPC call work, and if I check the main wallet address with 'getaddressinfo', I can see that the address is well realted to the imported wallet.
But, if I do the same with address previously created (before delete and reimported wallet), the 'getaddressinfo' does not link me these address to my wallet.
I think I miss a step on the process, someone of you already made this type of recovery ?
My current process is :
Generating walelt with RPC "createwallet"
Generating hundreds of address with RPC "getnewaddress"
Backup private key of wallet with RPC "dumpprivkey"
Remove wallet dat file from node
Import the previously backuped key with RPC "importprivkey" :
{ "method": "importprivkey", "params": [ "cPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXM", "dev_wallet", true ] }
It takes one hour to synchronize because of rescan param to true.
After that, I check the first generated wallet address with RPC "getaddressinfo"
He find the address and link it to my imported wallet.
If I do the same "getaddressinfo" RPC call with another wallet address generated previously generated with RPC "getaddressinfo" (step 2), the node didn't find it.
Thank you in advance,