[Wallet] keep HD seed during salvagewallet#8324
Conversation
|
This feels like a bug fix, which should be release as part of 0.13.0... Am I wrong? |
|
I agree this is a bug fix. I don't think |
You can find the test in #8319 |
At the moment, the private key itself will not be dropped, only the information which of the private keys is used as HD seed. Without that information, current masters wallet will create another private key and uses this one as the HD seed. This will result in two different HD chains once you call Yes. It's a bugfix and It probably should go into 0.13, though I think #8323 is more important. |
|
utACK b993671 |
b993671 [Wallet] keep HD seed during salvagewallet (Jonas Schnelli)
|
code review ACK b993671 |
Calling
-salvagewallet(CWalletDB::Recover in keys only mode) will result in dropping the information which private key is used for hd key derivation (and also loses the child key counter).This simple PR would try to keep the
hdchainrecord if it was available during the time when-salvagewalletwas called.